[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.

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@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.

On 09/07/2011 11:13 PM, huachao yao wrote:
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
Unless you actually have a network defined in libvirt that is named "rednet", this configuration makes no sense. I can say with 99% certainty that you don't want a listen type of "network" - this is really only useful for large installations where guests are migrating between multiple hosts.
what should i do to achieve graphical interaction with the guest OS ??
1) leave this part of the guest's configuration at its default as created by virt-manager or virt-install. 2) either use virt-manager and double click on the guest's icon, or (as root) run "virt-viewer guestname" from a shell on the host.

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?
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.
participants (2)
-
huachao yao
-
Laine Stump