huachao yao
2011-Sep-08 03:03 UTC
[libvirt-users] Graphical framebuffers confuse, XML format about spice
Hello, i want to start a guest OS in the server, and use spice to achieve graphical interaction with the guest OS. But when i config the XML file, i was confuse by spice . The graphic node is : <graphics type='spice' port='5990' ><listen type='address' address='127.0.0.1'/></graphics> but is has such error as below : libvir: QEMU error : internal error process exited while connecting to monitor: qemu-spice: -spice port=5990,addr=127.0.0.1,disable-ticketing: Invalid parameter 'addr' parse error: port=5990,addr=127.0.0.1,disable-ticketing What is the meaning of <listen type='address' address='*****'/>, If the localhost IP is A and the spice-server IP is B. what should i set the listen type ? to start the Domain and to achieve graphical interaction with the guest OS. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110908/256f76c7/attachment.htm>
huachao yao
2011-Sep-08 03:13 UTC
[libvirt-users] Graphical framebuffers confuse, XML format about spice
When i set the Graphic node as : <graphics type='spice'> <listen type='network' network='rednet'/> </graphics> the Error is : libvir: QEMU error : XML error: listen network 'rednet' had no usable address what should i do to achieve graphical interaction with the guest OS ?? 2011/9/8 huachao yao <yao.d.hc at gmail.com>> Hello, i want to start a guest OS in the server, and use spice to achieve > graphical interaction with the guest OS. But when i config the XML file, i > was confuse by spice . > The graphic node is : > <graphics type='spice' port='5990' ><listen type='address' > address='127.0.0.1'/></graphics> > > but is has such error as below : > libvir: QEMU error : internal error process exited while connecting to > monitor: qemu-spice: -spice port=5990,addr=127.0.0.1,disable-ticketing: > Invalid parameter 'addr' > parse error: port=5990,addr=127.0.0.1,disable-ticketing > > What is the meaning of <listen type='address' address='*****'/>, If the > localhost IP is A and the spice-server IP is B. what should i set the listen > type ? to start the Domain and to achieve graphical interaction with the > guest OS. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110908/6324e3c8/attachment.htm>
Laine Stump
2011-Sep-08 19:20 UTC
[libvirt-users] Graphical framebuffers confuse, XML format about spice
On 09/07/2011 11:03 PM, huachao yao wrote:> Hello, i want to start a guest OS in the server, and use spice to > achieve graphical interaction with the guest OS. But when i config > the XML file, i was confuse by spice . > The graphic node is : > <graphics type='spice' port='5990' ><listen type='address' > address='127.0.0.1'/></graphics> > > but is has such error as below : > libvir: QEMU error : internal error process exited while connecting to > monitor: qemu-spice: -spice > port=5990,addr=127.0.0.1,disable-ticketing: Invalid parameter 'addr' > parse error: port=5990,addr=127.0.0.1,disable-ticketingApparently your "qemu-spice" binary supports the -spice option, but doesn't support the addr option. That seems very strange. What is the origin of "qemu-spice", and what version does it display?> > What is the meaning of <listen type='address' address='*****'/>,This is a new syntax starting in libvirt 0.9.4 that allows describing the address to listen on either as an IP address/domain name, or as a network name ("network name" referring to one of the virtual networks defined by libvirt)> If the localhost IP is A and the spice-server IP is B. what should > i set the listen type ? to start the Domain and to achieve > graphical interaction with the guest OS.You can leave it at the default of localhost (127.0.0.1) as long as your spice client (e.g. virt-manager) is running on the same machine. You would only want to change the address to something else if you needed to connect directly to the guest's spice server from a different physical machine, and in that case you would set the address to one of the physical interfaces on the host (*not* the guest). However, this is not the cause of your original problem - your qemu binary doesn't like the -spice option as constructed by libvirt; there is something old / non-standard about this qemu.
Laine Stump
2011-Sep-09 15:50 UTC
[libvirt-users] Graphical framebuffers confuse, XML format about spice
(please reply to the list rather than personal mail) On 09/08/2011 11:23 PM, huachao yao wrote:> > > 2011/9/9 Laine Stump <laine at laine.org <mailto:laine at laine.org>> > > On 09/07/2011 11:03 PM, huachao yao wrote: > > Hello, i want to start a guest OS in the server, and use spice > to achieve graphical interaction with the guest OS. But when > i config the XML file, i was confuse by spice . > The graphic node is : > <graphics type='spice' port='5990' ><listen type='address' > address='127.0.0.1'/></graphics> > > but is has such error as below : > libvir: QEMU error : internal error process exited while > connecting to monitor: qemu-spice: -spice > port=5990,addr=127.0.0.1,disable-ticketing: Invalid parameter > 'addr' > parse error: port=5990,addr=127.0.0.1,disable-ticketing > > > Apparently your "qemu-spice" binary supports the -spice option, > but doesn't support the addr option. That seems very strange. What > is the origin of "qemu-spice", and what version does it display? > > The qemu-spice version is : > version 0.13.50 (qemu-kvm-devel), copy-right 2003-2008 > and the host OS is Fedora 13 , x86_64 > I think that "qemu-spice" binary supports the -spice option, but > doesn't support the addr option." is a good reason to explain to > problem. But how can i get the latest qemu-spice ? > It is suit fedora 13?Where did the original "qemu-spice" come from? That's not an official Fedora13 package, and in later versions of Fedora, spice support is included in the standard qemu-kvm package. It sounds like you either built qemu + a spice patch from source, or found a prebuilt package like that somewhere. I've only used the spice support that is integrated into the qemu-kvm package of Fedora 14 and RHEL (the qemu-kvm in Fedora 13 is too old to have spice support, and Fedora 13 is now officially out of support mode) I would do one of these things: 1) try getting a source tarball for a more recent qemu-kvm release and build/install that on your F13 machine. 2) upgrade to F14 or F15 (if you upgrade to F14, add the virt-preview repo to your yum configuration (just copy http://repos.fedorapeople.org/repos/jforbes/virt-preview/fedora-virt-preview.repo into /etc/yum.repos.d) 3) Decide that you maybe don't *really* need spice support, but that the VNC-based guest displays are adequate for your needs - this will work with the stock qemu-kvm on F13 and is just fine for most uses. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110909/7f0ca095/attachment.htm>