Re: virt-manager: show guest IP

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

 



On 02.02.2016 17:16, Matwey V. Kornilov wrote:
> 2016-02-01 16:19 GMT+03:00 Michal Privoznik <mprivozn@xxxxxxxxxx>:
>> On 30.01.2016 17:10, Matwey V. Kornilov wrote:
>>> Hello,
>>>
>>> Is it possible to configure virt-manager to show guest IP somewhere?
>>>
>>> I am running qemu with qemu-guest tools and the following command works
>>> good:
>>>
>>> virsh # qemu-agent-command 5 '{"execute":"guest-network-get-interfaces"}'
>>> {"return":[{"name":"lo","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":8},{"ip-address-type":"ipv6","ip-address":"::1","prefix":128}],"hardware-address":"00:00:00:00:00:00"},{"name":"eth0","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.185.188","prefix":24},{"ip-address-type":"ipv6","ip-address":"fe80::5054:ff:fecc:cfc3","prefix":64}],"hardware-address":"52:54:00:cc:cf:c3"}]}
>>>
>>> But I would like to see this information in virt-manager GUI like in
>>> some proprietary hypervisor clients.
>>
>> Currently, there is no such option. Patches are welcome :)
>>
> 
> Where is the best place in UI to put networking info in your opinion?
> 
>> But as a libvirt developer, I'd like to advertise 'virsh domifaddr'
>> command which does basically the same as you are doing in your example
>> but has one possible data source more.
> 
> Am I right that domifaddr uses same mechanism to fetch the data (when
> qemu:/// is used)?

Yes and no. There are two modes right now in which domifaddr can
operate. The first one is asking guest agent (*) the second one is
asking dnsmasq (well, consulting a database that is updated on each dhcp
transaction, but no need to get too technical in here).

* - the problem with guest agent is that guest can rename it's
interfaces as it likes. Not only that, it can create other interface
structure as seen from the outside, e.g. join two devices into a
bonding, or create a virtual interface over "physical" one. Therefore it
can be hard to find matching between an interface as seen from the guest
and interface as seen from the host.

Michal

_______________________________________________
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