How To Get Runnig VM Ip Address in Kvm/Libvirt
There are times when we start virtual machine and want to get ip address quickly without open any GUI or connecting virtual machines console. Here is the tip. virsh domiflist Command #!/bin/bash VMNAME=$1 for mac in `sudo virsh domiflist $VMNAME |grep -o -E “([0-9a-f]{2}:){5}([0-9a-f]{2})”` ; do arp -e | grep $mac | grep -o -P … Read more