diff --git a/kvm-install-vm b/kvm-install-vm index 991eebc..ee1b781 100755 --- a/kvm-install-vm +++ b/kvm-install-vm @@ -727,10 +727,12 @@ _EOF_ outputn "Cleaning up cloud-init files" rm -f $USER_DATA $META_DATA $CI_ISO && ok + MAC=$(virsh dumpxml ${VMNAME} | awk -F\' '/mac address/ {print $2}') + output "MAC address: ${MAC}" + if [ -f "/var/lib/libvirt/dnsmasq/${BRIDGE}.status" ] then outputn "Waiting for domain to get an IP address" - MAC=$(virsh dumpxml ${VMNAME} | awk -F\' '/mac address/ {print $2}') while true do IP=$(grep -B1 $MAC /var/lib/libvirt/dnsmasq/$BRIDGE.status | head \