[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Need help with qemu args debug



On Wed, 29 Feb 2012, Fantu wrote:
> Fantu wrote
> > 
> > 
> > Ian Campbell-10 wrote
> >> 
> >> That should be possible, but you haven't shown your code so I can't say
> >> where you have gone wrong.
> >> 
> >> What I often do is create qemu-debug.sh:
> >>    #!/bin/sh
> >>    echo "Starting QEMU with: $*" >> /tmp/qemu-dbg.log
> >>    exec /usr/lib/xen/bin/qemu-system-i386 $@
> >> 
> >> And then using device_model_override to call this instead of calling
> >> qemu directly.
> >> 
> > 
> > Thanks for reply
> > 
> > Qxl graphic is needed for many things with spice, I start to try add it
> > following this: http://spice-space.org/docs/spice_user_manual.pdf
> > 
> > On libxl_dm.c add this line:
> > flexarray_append(dm_args, "-qxl 1");
> > before this:
> > flexarray_append(dm_args, "-spice");
> > 
> > With dm override give:
> > Starting QEMU with: -xen-domid 22 -chardev
> > socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-22,server,nowait -mon
> > chardev=libxl-cmd,mode=control -name PRECISEHVM -vnc 127.0.0.1:0,to=99
> > -qxl 1 -spice
> > port=6000,tls-port=0,addr=0.0.0.0,password=test,agent-mouse=on -boot
> > order=c -smp 2,maxcpus=3 -device
> > rtl8139,id=nic0,netdev=net0,mac=00:16:3e:6b:81:89 -netdev
> > type=tap,id=net0,ifname=tap22.0,script=no -M xenfv -m 1024 -drive
> > file=/mnt/vm/disks/PRECISEHVM.disk1.xm,if=ide,index=0,media=disk,format=raw
> > -drive file=/dev/sr0,if=ide,index=1,media=cdrom,format=raw
> > 
> > And on /var/log/xen/qemu-dm-PRECISEHVM.log:
> > qemu-system-i386: -qxl: invalid option
> > 
> > There isn't other -vga or -nographic options, I not undestand the problem,
> > without qxl work but on spice connect and load see the cirrus video card,
> > video performance is not good and is impossible resize resolution, qxl
> > graphic is needed.
> > I have also try -vga qxl but same problem.
> > 
> > Before i try to add permant dm_args debug on log with:
> > On libxl_dm.c add this line:
> > LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "dm_args: ", flexarray_contents(dm_args)
> > );
> > before this:
> > return (char **) flexarray_contents(dm_args);
> > 
> > Show:
> > libxl_dm.c: In function Ãlibxl__build_device_model_args_newÃ:
> > libxl_dm.c:582:2: error: too many arguments for format
> > [-Werror=format-extra-args]
> > cc1: all warnings being treated as errors
> > 
> 
> See only now how -vga qxl try to start but give other error...
> 
> Starting QEMU with: -xen-domid 25 -chardev
> socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-25,server,nowait -mon
> chardev=libxl-cmd,mode=control -name PRECISEHVM -vga qxl -spice
> port=6000,tls-port=0,addr=0.0.0.0,password=test,agent-mouse=on -boot order=c
> -smp 2,maxcpus=3 -device rtl8139,id=nic0,netdev=net0,mac=00:16:3e:38:be:1d
> -netdev type=tap,id=net0,ifname=tap25.0,script=no -M xenfv -m 1024 -drive
> file=/mnt/vm/disks/PRECISEHVM.disk1.xm,if=ide,index=0,media=disk,format=raw
> -drive file=/dev/sr0,if=ide,index=1,media=cdrom,format=raw
> 
> do_spice_init: starting 0.10.1
> spice_server_add_interface: SPICE_INTERFACE_MIGRATION
> spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
> spice_server_add_interface: SPICE_INTERFACE_MOUSE
> qemu: hardware error: xen: failed to populate ram at 40000000
> 
> The full log: 
> http://xen.1045712.n5.nabble.com/file/n5524897/qemu-dm-PRECISEHVM.log
> qemu-dm-PRECISEHVM.log 

Try adding videoram=32 to the VM config file, I think the issue is that
the default videoram size for QXL is much larger (32MB) than the default
videoram size for Cirrus (8MB).
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.