Getting the IP address of a VM created via Proxmox

Fabio Cicerchia picture Fabio Cicerchia · Jan 26, 2017 · Viewed 9.1k times · Source

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

Answer

Alain Deleglise picture Alain Deleglise · Feb 2, 2017

Maybe the fastest way would be using arp cache :

arp -a

Then look at the MAC address of each VM :

qm config VMID