Results 1 to 2 of 2

Thread: KVM: List IP addresses for active guests?

  1. #1
    Join Date
    Mar 2009
    Beans
    1,982

    KVM: List IP addresses for active guests?

    Hi,

    Maybe I'm just missing it?

    On KVM, is it possible to get a list of VMs with their IP addresses?

    VMware ESXi has this, and I find it incredibly handy.

    Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: KVM: List IP addresses for active guests?

    KVM is just a provider. The actual IP address comes from inside each VM based on static config or DHCP. Just use normal network tools to create a list of IPs - at least if you have a bridge setup. I've never used a VM-specific NAT setup. Guess connecting to the console of each will be needed in that case.

    Lots of ways to create a list
    * arp --> ping
    * zenmap scan the subnet
    * nmap scan the subnet
    probably 20 other tools/methods exist. These are all that come to mind.

    It is possible to dump all the other information about every VM using libvirt. virsh dumpxml {vmname} It is just that IP addresses are not part of that data.
    Last edited by TheFu; October 15th, 2013 at 12:46 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •