Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Tuesday, June 10, 2014

libvirt find ip address of guest Virtual Machines

1)
Goto host and run
list MAC and IP of all VMs in this host
#cat /var/lib/libvirt/dnsmasq/default.leases

2)
List all VMs
#virsh list --all

3)
Find MAC of a VM
#virsh domiflist id_of_vm

4)
Compare this MAC with results from Step-1 and find the IP of the VM.

No comments:

Post a Comment