[libvirt-users] Graphical framebuffers confuse, XML format about spice

Laine Stump laine at laine.org
Thu Sep 8 19:20:08 UTC 2011


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.





More information about the libvirt-users mailing list