find ip of kvm server

pmlearner

Member
Jul 9, 2019
25
0
6
54
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!