A script that on a proxmox node, will list the ip addresses of running virtual machines.
install required packages :
apt-get install net-tools arp-scan
make the above script executable
chmod +x get_ips_of_vms.sh
run the script
./get_ips_of_vms.sh
resulting in something like :
# ./get_ips_of_vms.sh
192.168.22.131 k8s-master 200-k8s-master
192.168.22.132 k8s-worker01 201-k8s-worker01
192.168.22.133 k8s-worker02 202-k8s-worker02
thanks for the tip ;-)
another solution is o use
qm agent[1] instead ofarp-scan[1] https://pve.proxmox.com/pve-docs/qm.1.html