-1

I used kvm as a hypervisor and I have some virtual machines on it. I can to ssh to the host (hypervisor server) and I want to get all virtual machines' IP addresses.

Is there any way to get the virtual machines' IP addresses by virt tool or other commands like this?

Omidreza Bagheri
  • 781
  • 1
  • 11
  • 22

1 Answers1

1

Try this commands from the console of the host machine:

# virsh list --all
Get the VM names from this list

Now for each VM name do the following:

# virsh domiflist *VMname*
Get the MAC of the VM machine

# arp -e 
Find the IP address

Ping the hostname from the KVM host and you can get the IPS address.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253