[virt-tools-list] how virt-manager get hostname of vm

Cole Robinson crobinso at redhat.com
Thu Mar 27 15:23:36 UTC 2014

On 03/27/2014 10:33 AM, longguang.yue wrote:
> hi,all
> i recently notice that virt-manager show the hostname of vm, i am curious
> about that, what is the implementation?

It shows the hostname of the VM if you have python-libguestfs installed.
libguestfs will actually access the VM disk image and read the hostname from
their. There isn't any libvirt API that does it, but guestfish has a command

- Cole

More information about the virt-tools-list mailing list