How to find the KVMID of the VPS using the VPS IP on KVM slave server?
- Connect to Slave KVM node via SSH
- Find the MAC address of the VPS using the VPS IP:
# arp -an | grep IP_Address
- Execute the following command in order to find the KVMID using the MAC address:
# virsh list --name | while read n ; do if( [[ ! -z $n ]] && virsh dumpxml $n | grep "MAC_Address" ); then echo $n; fi; done
Please sign in to leave a comment.