Spice in unstable
I see there is spice support in unstable, seem to be a very good vdi and we want use it on server with xen but I not found documentation about in xen, only about kvm.
Someone can tell me anything about it please?
Thanks for any reply and sorry for bad english.
--
View this message in context: http://xen.1045712.n5.nabble.com/Spice-in-unstable-tp5467907p5467907.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
Quoted 3 lines · Fantu
I see there is spice support in unstable, seem to be a very good vdi and we want use it on server with xen but I not found documentation about in xen, only about kvm.
usage here:
Thanks,
Todd
Signature · 4 lines
Todd Deshane http://www.linkedin.com/in/deshantm http://blog.xen.org/ http://wiki.xen.org/
Quoted 9 lines · Todd Deshane
Quoted 3 lines · Fantu
I see there is spice support in unstable, seem to be a very good vdi and we want use it on server with xen but I not found documentation about in xen, only about kvm.
usage here:
The syntax is also documented in the xl.cfg(5) manpage which is available online at
http://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html#spice_graphics_support
I suspect it needs device_model_version="qemu-xen" (i.e. upstream qemu) as well.
Ian.
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']
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.
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.
--
View this message in context: http://xen.1045712.n5.nabble.com/Spice-in-unstable-tp5467907p5472477.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
Quoted 4 lines · Fantu
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
Quoted 15 lines
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.
Quoted 15 lines
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"
----------------------------------------------------------------
Quoted 1 line
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?
Quoted 18 lines
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
Quoted 8 lines
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? ;-)
I have redo...
Install precise daily build 64 bit with this config:
------------------------------------------------------------------------------
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,hda,rw', '/dev/scd0,raw,hdb,ro,cdrom']
boot='d'
xen_platform_pci=1
device_model_version='qemu-xen'
vnc=1
vncunused=1
vnclisten="0.0.0.0"
keymap="it"
stdvga=0
sdl=0
------------------------------------------------------------------------------
Vnc is working but have refresh heavy lag and and some partial refresh problem (I not know good english for explain good), , is near unusable, network now seem to be working.
After I change boot to 'c', vnc same problem.
Nothing on log about, and vnc on PV domU work correctly.
I tried also with qemu traditional and the mouse is not working (is lock on center), performance problem persist but there aren't partial image refresh problem.
About spice need compiled as default, I'll try to do the patch for the missing parts in build and xl and xen requirements in readme.
Thanks for any reply and sorry for bad english.
--
View this message in context: http://xen.1045712.n5.nabble.com/Spice-in-unstable-tp5467907p5473881.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
Quoted 5 lines · Fantu
I have redo...
Install precise daily build 64 bit with this config:
------------------------------------------------------------------------------
name='PRECISEHVM'
I take you are talking about Ubuntu 12.04?
Quoted 26 lines
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,hda,rw', '/dev/scd0,raw,hdb,ro,cdrom']
boot='d'
xen_platform_pci=1
device_model_version='qemu-xen'
vnc=1
vncunused=1
vnclisten="0.0.0.0"
keymap="it"
stdvga=0
sdl=0
------------------------------------------------------------------------------
Vnc is working but have refresh heavy lag and and some partial refresh problem (I not know good english for explain good), , is near unusable, network now seem to be working.
Quoted 1 line
After I change boot to 'c', vnc same problem.
Try to disable Compiz in the guest and/or set stdvga=1 in the config file. Does it help?
Thanks for reply, stdvga=1 seem to solve some of the more important problem but not all and not performance/refresh, also try with add videoram=16 but not improve.
I tried also with compiz disabled and gnome classic instead of unity but nothing changed.
--
View this message in context: http://xen.1045712.n5.nabble.com/Spice-in-unstable-tp5467907p5481990.html
Sent from the Xen - Dev mailing list archive at Nabble.com.