Getting the IP address of a VM created via Proxmox

10,999

Solution 1

Maybe the fastest way would be using arp cache :

arp -a

Then look at the MAC address of each VM :

qm config VMID 

Solution 2

Here it is guys:

Since this came up while I was searching the problem, I would like to post the following:

1 - Make sure qemu-ga is updated in the guest : https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/ (Keep this link around you)

2 - SSH into your Host run : qm guest cmd vmid network-get-interfaces

Regards,

Alvaro Lamadrid

Share:
10,999
Fabio Cicerchia
Author by

Fabio Cicerchia

I'm Fabio, a Passionate Solutions Architect and Application Developer with ~20 years of experience. Always enjoying creating quality web applications and web portals using cutting-edge technologies.

Updated on June 14, 2022

Comments

  • Fabio Cicerchia
    Fabio Cicerchia almost 2 years

    I've inherited a server which is using proxmox for the virtualisation, I'd like to know what is the IP address of a VM. I've managed to get the list of VMs available on the server by using qm list:

      VMID NAME       STATUS     MEM(MB)    BOOTDISK(GB) PID
     99001 web-dev1   running    2048              50.00 1234
     99002 web-dev2   running    2048              50.00 2345
     99003 web-dev3   running    2048              50.00 3456
     99004 web-dev4   running    2048              50.00 4567
    

    How can I know, without accessing directly and running a command in it, the IP address associated with each VM?

    Thank you,

    Fabio

  • keocra
    keocra over 2 years
    To create a list of all proxmox configs in file: qm list | awk '{{print $1}}' | tail -n +2 | xargs -I{} qm config {} | tee /tmp/qm.configs