[libvirt-users] aliases for graphic devices

Daniel P. Berrange berrange at redhat.com
Wed May 14 17:23:28 UTC 2014


On Wed, May 14, 2014 at 11:47:16AM -0400, Francesco Romani wrote:
> Hello,
> 
> AFAIK, aliases cannot be set for Graphics devices. I tried this very simple experiment
> with libvirt 1.2.4 (from virt-preview on F20)
> 
> relevant part of the input xml:
> 
>     <graphics type='spice' port='-1' autoport='yes' listen='127.0.0.1'>
>       <listen type='address' address='127.0.0.1'/>
>       <alias name='display.0'/>
>     </graphics>
>     <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
>       <listen type='address' address='127.0.0.1'/>
>       <alias name='display.1'/>
>     </graphics>
> 
> 
> # virsh -c qemu:///system
> virsh # create testdom_spice_vnc_aliases.xml  # see attachment
> Domain fedora19 created from testdom_spice_vnc_aliases.xml
> 
> virsh # dumpxml fedora19  # only relevant part, see attachment for full output
> [...]
>     <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
>       <listen type='address' address='127.0.0.1'/>
>     </graphics>
>     <graphics type='vnc' port='5901' autoport='yes' listen='127.0.0.1'>
>       <listen type='address' address='127.0.0.1'/>
>     </graphics>
> [...]
> 
> So, are really aliases not allowed for the Graphics Devices or am I doing something wrong?
> If aliases aren't allowed, any plans to support them?

Note that in addition to what Eric said, the <graphics> tags don't represent
actual guest devices, so the concept of device aliases doesn't really apply
here.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list