2

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

Fabio Cicerchia
  • 649
  • 3
  • 8
  • 23

2 Answers2

4

Maybe the fastest way would be using arp cache :

arp -a

Then look at the MAC address of each VM :

qm config VMID 
  • 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 – keocra Aug 06 '21 at 06:06
4

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

Alvaro Lamadrid
  • 355
  • 2
  • 13