find ip of kvm server

pmlearner

Member
Jul 9, 2019
25
0
6
55
It is my understanding that virsh, etc. do not work with proxmox but instead one should only use the qm tools.

Is there a way with qm or other tools to learn the IP of a kvm server on my proxmox node?

Thanks!
 
Hi,

Is there a way with qm or other tools to learn the IP of a kvm server on my proxmox node?

To know IP of VMs you should to enable Qemu Agent then use qm tool to do many things, like know IP with execute command on the VM.

qm guest exec <VMID> -- hostname --ip-address

If you have jq tool you can also output as JSON like:

qm guest exec <VMID> -- ip a | jq