Re: how virt-manager get hostname of vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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#)

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux