KVM guest VM IP address

Kaushal Shriyan kaushalshriyan at gmail.com
Tue Aug 18 07:10:16 UTC 2020


Hi,

I am trying to find out the IP address of the KVM guest virtual machine.

#virsh dumpxml newsoftlinedrupalpoc | grep "mac address" | awk -F\' '{
print $2}'
52:54:00:2c:7e:ff
[root at baseserver1 ~]# arp -an | grep 52:54:00:2c:7e:ff

[root at baseserver1 ~]# virsh domifaddr newsoftlinedrupalpoc
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------

[root at baseserver1 ~]#

It is not showing anything. I manually configure the IP
using /etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOT=yes
IPADDR=192.168.0.189
PREFIX=24
GATEWAY=192.168.0.10
DNS1=8.8.8.8
DNS2=8.8.4.4

CentOS Linux release 7.6.1810 (Core)
virt-install --version
1.5.0
virsh version
Compiled against library: libvirt 4.5.0
Using library: libvirt 4.5.0
Using API: QEMU 4.5.0
Running hypervisor: QEMU 1.5.3

Am I missing something? Thanks in advance and I look forward to hearing
from you.

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20200818/90588ee2/attachment.htm>


More information about the libvirt-users mailing list