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

Re: [Xen-devel] Spice in unstable



On Fri, 10 Feb 2012, Fantu wrote:
> I have try Precise PV on HVM with qemu upstream and spice but not work.
> Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version
> 2.6.32-41, xen from xen-unstable.hg changeset 24709:8ba7ae0b070b 
> 
> DomU xl configuration file:
> ----------------------------------------------------------------
> name='PRECISEHVM'
> builder="hvm"
> memory=1024
> 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,xvda,rw',
> '/dev/scd0,raw,xvdb,ro,cdrom']

You shouldn't use xvda/xvdb in HVM guests config file unless you want a
PV only disk, that is OK for a secondary disk but you are not going to
be able to boot from it.
So at least your primary disk should be hda.


> boot='c'
> xen_platform_pci=1
> device_model_version="qemu-xen"
> vnc=1
> vncunused=1
> vnclisten="0.0.0.0"
> keymap="it"
> stdvga=0
> sdl=0
> spice=1
> spicehost="0.0.0.0"
> spiceport=6000
> spicepasswd="test"
> ----------------------------------------------------------------
> 
> Without spice the domU starts but vnc is unusable and network doesn't work.

Those are quite a serious issues, what kind of guest is this?
I suggest you try to get network and vnc to work without spice before
proceeding any further.
I use upstream qemu with xen rather regularly and I haven't seen these
problems. Could you please post your qemu logs? Does the guest work
correctly with the old qemu?


> With spice it doesn't start:
> xl create /etc/xen/PRECISEHVM.cfg
> Parsing config file /etc/xen/PRECISEHVM.cfg
> xc: info: VIRTUAL MEMORY ARRANGEMENT:
>   Loader:        0000000000100000->000000000019bc70
>   TOTAL:         0000000000000000->000000003f800000
>   ENTRY ADDRESS: 0000000000100000
> xc: info: PHYSICAL MEMORY ALLOCATION:
>   4KB PAGES: 0x0000000000000200
>   2MB PAGES: 0x00000000000001fb
>   1GB PAGES: 0x0000000000000000
> libxl: error: libxl_qmp.c:636:libxl__qmp_initialize: Connection error: No
> such file or directory
> libxl: error: libxl_exec.c:200:libxl__wait_for_offspring: Device Model died
> during startup
> libxl: error: libxl_create.c:602:do_domain_create: device model did not
> start: -1
> 
> And on log:
> qemu-system-i386: -spice
> port=6000,tls-port=0,addr=0.0.0.0,password=test,agent-mouse=on: there is no
> option group "spice"
> spice is not supported by this qemu build.
> 
> Is there something wrong on configuration file or are there some bugs?
> Thanks for any reply and sorry for bad english.

Your QEMU build doesn't support spice. You might have to compile
upstream QEMU yourself, passing the right option to configure to enable
spice.
The QEMU tree is cloned in tools/qemu-xen-dir by default, give a look at
tools/Makefile:subdir-all-qemu-xen-dir to see the configure options used
by the Xen build system.
Something like this should work:

./configure --enable-xen --target-list=i386-softmmu 
--extra-cflags="-I$(XEN_ROOT)/tools/include -I$(XEN_ROOT)/tools/libxc 
-I$(XEN_ROOT)/tools/xenstore" --extra-ldflags="-L$(XEN_ROOT)/tools/libxc 
-L$(XEN_ROOT)/tools/xenstore" --disable-kvm --enable-spice

provided that you have all the dependencies to build qemu+spice on your
system and that XEN_ROOT points to the xen-unstable directory.
I have to warn you that spice requires lots of libraries in order to
compile succesfully, see:

http://people.adams.edu/~cdmiller/posts/Ubuntu-Lucid-server-qemu-kvm-spice/

Once you manage to do this, maybe you would like to volunteer to update
the wiki with more detailed instructions on how to compile and use SPICE
on Xen? ;-)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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