Red Hat Bugzilla – Bug 431895
API lacks equivalent to "virsh vncdisplay"
Last modified: 2008-02-07 13:16:26 EST
Description of problem:
The API for libvirt appears to lack an equivalent to the "virsh vncdisplay"
command to obtain the VNC details of a guest VM. I am using the Python
bindings, and while it is possible to get this via a shell command, e.g.
os.popen('virsh vncdisplay emulator_red').read(), this is rather inelegant.
Version-Release number of selected component (if applicable):
its available in the XML description
char * virDomainGetXMLDesc (virDomainPtr domain,
With xpath expression of /domain/devices/graphics[@type='vnc']