mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
22f7ceb695
So far the NSS module looks up only hostnames as provided by guests themselves. However, there are some cases where this is not enough: e.g. when there's a fresh new guest being installed (with some generic hostname) say from a live ISO image; or some (older) systems don't advertise their hostname in DHCP transactions at all. In cases like that it would be helpful if we translate domain name as seen by libvirt too so that users can: # virsh start $dom && ssh $dom In order to achieve that new libvirt-guest module is introduced, while older libvirt module maintains its current behaviour (that is translating guest provided names into IP addresses). Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
26 lines
617 B
Plaintext
26 lines
617 B
Plaintext
[
|
|
{
|
|
"ip-address": "192.168.122.199",
|
|
"mac-address": "52:54:00:a4:6f:93",
|
|
"hostname": "fedora",
|
|
"expiry-time": 1900000000
|
|
},
|
|
{
|
|
"ip-address": "2001:1234:dead:beef::2",
|
|
"mac-address": "52:54:00:04:be:64",
|
|
"hostname": "gentoo",
|
|
"expiry-time": 1900000000
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.200",
|
|
"mac-address": "52:54:00:a4:6f:94",
|
|
"hostname": "fedora",
|
|
"expiry-time": 1
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.3",
|
|
"mac-address": "52:54:00:aa:bb:cc",
|
|
"expiry-time": 2000000000
|
|
}
|
|
]
|