# virsh domifaddr vm Name MAC address Protocol Address ------------------------------------------------------------------------------- vnet0 52:54:00:6f:dc:90 ipv4 192.168.122.84/24 # virsh dumpxml --inactive vm ... <interface type="network"> <mac address="52:54:00:6f:dc:90"> <source network="default"></source> <model type="virtio"> <address bus="0x00" domain="0x0000" function="0x0" slot="0x03" type="pci"> </address> ...
What you can do instead is use the NSS module libvirt-nss.
If you want to easily ssh into the guest using its libvirt name, set
# /etc/nsswitch.conf: hosts: files libvirt_guest dnsand make sure to have the correct sshd configuration in your guest.
No comments:
Post a Comment