Jeff 2023-01-11 21:16:30 CET
Also
lxc-info -n <CONTAINER ID>
works well to get the ip
Comment 8 h0tw1r3 2023-02-03 19:49:20 CET
Looked into implementing this today as it would be a very nice feature for using PVE in a deployment development environment where containers are created and destroyed frequently.
My use case is deployment/testing/development with Vagrant and terraform. I can't use Proxmox with either and use dhcp addressing.
Went down a rabbit hole of updating the vagrant-proxmox plugin, only to be hit by this limitation. Without an API endpoint to retrieve the current active IP address, everything must be static... I don't want to manage IP's.
Another use case. Say I have a bunch of users sharing the same Proxmox VE cluster. They have limited permission to PVE, they create a VM but have no idea what the IP address is, and policy requires them to use DHCP. How do they get the current IP without console access to the container, admin on the PVE cluster, or access to the DHCP server?
Pardon me, but the work around's are simply absurd.
Implementing this in the API opens up integrations to manage containers without caveats and workarounds using two of the most popular tools, Vagrant and Terraform.
Comment 9 Leo Nunner 2023-09-13 10:34:50 CEST
Latest version (v2) is on list: https://lists.proxmox.com/pipermail/pve-devel/2023-June/057556.html
Comment 10 Carol Ouellet 2024-05-27 00:14:23 CEST
I'd like to add some life here and remind us that this is still not implemented.
It would still be a very useful addition for quick checks.
Comment 11 Waleed 2024-07-20 18:32:30 CEST
+1