Articles in this section

How to find IPv4 address of KVM virtual server using its MAC address?

Applicable to:

  • SolusVM

Question

How to find IPv4 address of KVM virtual server using its MAC address? It is required for importing of existing KVM virtual servers in SolusVM infrastructure.

Answer

  1. Connect to the slave KVM node via SSH
  2. Find MAC address of the virtual server:

    # virsh dumpxml kvmID | grep "mac address" | awk -F\' '{ print $2}'

  3. Execute the following command to find IPv4 address:

    # nmap -sP 10.0.0.0/24 | grep -i "<MAC_address>" -B 3

    10.0.0.0/24 should be replaced with an actual subnet that is used in the current infrastructure

     

     

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.