[virt-tools-list] how virt-manager get hostname of vm
Richard W.M. Jones
rjones at redhat.com
Fri Mar 28 21:40:14 UTC 2014
On Thu, Mar 27, 2014 at 10:33:16PM +0800, 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?
In addition to Cole's answer, here is the API:
http://libguestfs.org/guestfs.3.html#inspection
and here is the implementation:
https://github.com/libguestfs/libguestfs/blob/master/src/inspect-fs-unix.c#L768
https://github.com/libguestfs/libguestfs/blob/master/src/inspect-fs-windows.c#L502
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
More information about the virt-tools-list
mailing list