[pve-devel] [PATCH container v2 06/11] configure static IP in LXC config for custom entrypoint

Filip Schauer f.schauer at proxmox.com
Wed Jul 9 14:45:28 CEST 2025


On 25/06/2025 10:26, Wolfgang Bumiller wrote:
> I think this should be handled with a separate key in the containers
> network configuration. Maybe a "setup" property which defaults to
> "container" and can be set to "host" (not sure if we ever need more,
> if we know we don't, it could be a boolean...)

I agree that checking the entrypoint directly in multiple places, to
determine whether IP configuration should be managed by the host, is not
ideal. But setting a property for every net[n] individually would also
require us to set that property every time a network interface is added.
So instead in v3 I added an "ipmanagehost" boolean directly to pct.conf.
If we want we could still add a property to the network configuration
that overrides this behaviour.





More information about the pve-devel mailing list