[libvirt] [RFC] Unify KVM kernel-space and user-space code into a single project

Antoine Martin antoine at nagafix.co.uk
Fri Apr 9 14:31:37 UTC 2010


[snip]
>> * not everything is exposed via libvirt:
>> virsh can retrieve vncdisplay
>> but libvirt (or at least the python bindings) does not. How come?
>> This happens to be one thing I need for writing a libvirt backend for my
>> virtual desktop software.
> 
> The 'virsh vncdisplay' command is simply fetching the XML doc for the
> guest and then extracting the VNC port using a xpath expression
> 
>    /domain/devices/graphics[@type='vnc']/@port
> 
> So for python you'd want to just get an XML handling module and do similar.
Yes, I saw that in the virsh code.
Shouldn't this be part of the libvirt api proper??
Isn't it supposed to shield us from dealing with files and XML?

Cheers
Antoine




More information about the libvir-list mailing list