OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.19k stars 472 forks source link

Gather network information using qemu-guest-agent #1279

Open OpenNebulaProject opened 6 years ago

OpenNebulaProject commented 6 years ago

Author Name: OpenNebula Systems Support Team (OpenNebula Systems Support Team) Original Redmine Issue: 5255, https://dev.opennebula.org/issues/5255 Original Date: 2017-07-19


Use a system similar to vCenter to gather network information for VMs that do not use IPs generated by OpenNebula.

rsmontero commented 6 years ago

Related to #1529

vholer commented 4 years ago

Example use:

virsh # domifaddr one-291532 --source agent --full
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------
 lo         00:00:00:00:00:00    ipv4         127.0.0.1/8
 lo         00:00:00:00:00:00    ipv6         ::1/128
 eth0       02:00:0a:0a:02:01    ipv4         10.10.2.1/8
 eth0       02:00:0a:0a:02:01    ipv6         fe80::aff:fe0a:201/64
rightkick commented 3 weeks ago

+1 for this. It is convenient to retrieve such IP details in this way. This will cover cases such as having deployed VMs with or without context. At the first case one verifies that contextualization is working while at the later one can access IP details even when no contextualization is configured.