VM list IP location

yyyy

Member
Nov 28, 2023
68
2
8
Hey all,

so I found that there is a centralised location for the IP of each node in /etc/pve/.members but I cannot find the IPs of each created VM (they are static IPs). Any ideas ? I found /etc/pve/.vmlist has a list of the VMIDs of each VM in the cluster but not the IP.
 
A VM is managed from the inside, only LX(C) containers are manageable (and still changeable) from the outside (PVE). You may have luck in quering ALL network IPs via installed QEMU agent, yet you do have to do this manually. Better to use an orchestration platform like ansible to get what you want.
 
A VM is managed from the inside, only LX(C) containers are manageable (and still changeable) from the outside (PVE). You may have luck in quering ALL network IPs via installed QEMU agent, yet you do have to do this manually. Better to use an orchestration platform like ansible to get what you want.
I've had a look at ansible and I'm trying to figure out how this would work, would I be installing it on the node itself and doing the orchestration like that or install on the vm?
 
A VM is managed from the inside, only LX(C) containers are manageable (and still changeable) from the outside (PVE). You may have luck in quering ALL network IPs via installed QEMU agent, yet you do have to do this manually. Better to use an orchestration platform like ansible to get what you want.
Never mind, VMs are creating unnecessary and excessive trouble, I will transfer everything over to CTs
 
A VM is managed from the inside, only LX(C) containers are manageable (and still changeable) from the outside (PVE). You may have luck in quering ALL network IPs via installed QEMU agent, yet you do have to do this manually. Better to use an orchestration platform like ansible to get what you want.
Hi I created a container instead and still I cannot see any IP in the actual node itself in the /etc/pve/.members file, I have to go into the LX CT's console and do 'ip a' to get it, the node is not registering the CT's IP?
 
Hi I created a container instead and still I cannot see any IP in the actual node itself in the /etc/pve/.members file, I have to go into the LX CT's console and do 'ip a' to get it, the node is not registering the CT's IP?
No, the IP is configures in PVE and you can read them in the container configuration /etc/pve/nodes/*/lxc/*conf and this are only the IPs you configured from the outside. Every guest can change them (like every VM can configure them). If you really want to get all IPs, do it with the qemu-agent. LX(C) containers have not the same amount of high availability in a cluster environment as VMs, e.g. they cannot be live migrated.
 
No, the IP is configures in PVE and you can read them in the container configuration /etc/pve/nodes/*/lxc/*conf and this are only the IPs you configured from the outside. Every guest can change them (like every VM can configure them). If you really want to get all IPs, do it with the qemu-agent. LX(C) containers have not the same amount of high availability in a cluster environment as VMs, e.g. they cannot be live migrated.
Ok thank you, altbough I'm can't get Ceph RBD storage to mount in containers, it seems to be broken which is a big deal breaker so I think I will have to switch back to VMs and figure out other solutions