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

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



On Fri, 2 Mar 2012, Fantu wrote:
> Stefano Stabellini-3 wrote
> > 
> > On Fri, 2 Mar 2012, Fantu wrote:
> >> Stefano Stabellini-3 wrote
> >> > 
> >> > On Wed, 29 Feb 2012, Fantu wrote:
> >> >> Now I search for other options, found and tried with -global
> >> >> qxl-vga.vram_size=4194304 but same problem...
> >> >> 
> >> >> 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
> >> > 
> >> > You are going in the right direction but I think QXL might be doing
> >> > other allocations other than the main vga videoram.
> >> > Now that I think about it, another way around the memory allocation
> >> > problem would be to add "maxmem=MEMORY" in your VM config file, where
> >> > MEMORY is equal to the amount of memory you assign to the VM plus the
> >> > videram.
> >> > 
> >> > So if you have:
> >> > 
> >> > memory=1024
> >> > 
> >> > then you could try adding:
> >> > 
> >> > maxmem=1088
> >> > 
> >> With only maxmem add not work but also with videoram and high value start
> >> and give other error.
> >> With videoram=64:
> >> qemu: hardware error: xen: failed to populate ram at 44002000
> >> With videoram=128 start qemu and spice is working but system not.
> >> 
> >> The actual domU configuration files:
> >> ----------------------------------------------------
> >> name='PRECISEHVM'
> >> builder="hvm"
> >> memory=1024
> >> maxmem=1536
> >> vcpus=2
> >> #hap=1
> >> #pae=1
> >> #acpi=1
> >> #apic=1
> >> #nx=1
> >> vif=['bridge=xenbr0']
> >> #vfb=['vnc=1,vncunused=1,vnclisten="0.0.0.0",keymap="it"']
> >> disk=['/mnt/vm/disks/PRECISEHVM.disk1.xm,raw,hda,rw',
> >> '/dev/sr0,raw,hdb,ro,cdrom']
> >> boot='c'
> >> #xen_platform_pci=1
> >> device_model_version='qemu-xen'
> >> vnc=0
> >> #vncunused=1
> >> #vnclisten="0.0.0.0"
> >> #keymap="it"
> >> #stdvga=1
> >> #videoram=16
> >> #sdl=0
> >> spice=1
> >> spicehost='0.0.0.0'
> >> spiceport=6000
> >> spicedisable_ticketing=1
> >> #spicepasswd='test'
> >> device_model_override="/usr/lib/xen/bin/qemu-debug.sh"
> >> #device_model_args=["-global qxl-vga.vram_size=8388308"]
> >> #on_crash='preserve'
> >> videoram=128
> >> ----------------------------------------------------
> >> 
> >> Starting QEMU with: -xen-domid 45 -chardev
> >> socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-45,server,nowait -mon
> >> chardev=libxl-cmd,mode=control -name PRECISEHVM -vga qxl -spice
> >> port=6000,tls-port=0,addr=0.0.0.0,disable-ticketing,agent-mouse=on -boot
> >> order=c -smp 2,maxcpus=3 -device
> >> rtl8139,id=nic0,netdev=net0,mac=00:16:3e:56:77:cd -netdev
> >> type=tap,id=net0,ifname=tap45.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
> >> 
> >> 
> >> The xl dmesg PRECISEHVM: 
> >> http://xen.1045712.n5.nabble.com/file/n5530386/xl-dmesg-PRECISEHVM
> >> xl-dmesg-PRECISEHVM 
> >> 
> >> Connect to domU with spice work but qemu show Boot failed: could not read
> >> the boot disk.
> >> 
> >> If you need more data require and I will post.
> > 
> > I think this might be just a disk configuration issue.
> > If you want to boot from the cdrom you need:
> > 
> > boot='dc' in the vm config file and as command line option to qemu
> > instead of just 'c'.
> > 
> > If that doesn't work, please post QEMU's logs and the output of
> > xenstore-ls once the VM is started.
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@.xen
> > http://lists.xen.org/xen-devel
> > 
> 
> Tried with boot='dc', same result.

I hope you remembered to update QEMU's argument as well with -boot order=dc


> Qemu log: 
> http://xen.1045712.n5.nabble.com/file/n5531045/qemu-dm-PRECISEHVM.log
> qemu-dm-PRECISEHVM.log 
> Xenstore-ls:  http://xen.1045712.n5.nabble.com/file/n5531045/xenstore-ls
> xenstore-ls 

There is nothing on the logs but SPICE, unfortunately.
You might have to add few printf to QEMU to see how far it is able to
go. For example block.c:bdrv_open.

_______________________________________________
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®.