Hi,
I'm upgrading to 9.2
I need to update my procedure to make the PVE host a dhcp client for its web userinterface.
There are the following concerns to address
editing /etc/network/interfaces to change to dhcp client mode
maybe install a dhcpclient (isc-dhcp-client)
deal with apparmor complaints if any
make /etc/hosts update automatically on IP address changes
make pvebanner reload automatically on IP address changes
and automate this entire process so it's as easy as flipping dhcp client on or off
And how it should act is that
If the dhcp server is unavailable, it should fallback to a sane address
and this sane address should be the last given dhcp address or a specified fallback for the very first time (the one determined at proxmox install time)
after that, when the dhcp server is unavailable at boot, or become unavailable during operation,
it should not prevent booting and it should not cease to function when the dhcp server becomes unavailable
and when the dhcp server becomes available again, the system should seamlessly switch to the new (or old) provided address
it should not fail then give up forever
disconnecting and reconnecting the network cable from the host should be as minimally disruptive as possible.
it should not produce spurious error or warning messages in logs
I did research previous questions about this issues in the following URLs
The general attitude is "no, create manual IP lease exceptions instead"
I took all these threads and consults with an LLM.
Here are the general concerns it identified
It provided a look at the "dhcp state machine" once completed

And there is even a checklist of what "done" would look like

So, before I do all of that, I mostly wanted to ask, if anyone had already done it ?
And I did find these
https://free-pmx.org/guides/dhcp-single/
https://free-pmx.org/guides/dhcp-cluster/
But I'm not really sure it addresses all of the above.
I'm upgrading to 9.2
I need to update my procedure to make the PVE host a dhcp client for its web userinterface.
There are the following concerns to address
editing /etc/network/interfaces to change to dhcp client mode
maybe install a dhcpclient (isc-dhcp-client)
deal with apparmor complaints if any
make /etc/hosts update automatically on IP address changes
make pvebanner reload automatically on IP address changes
and automate this entire process so it's as easy as flipping dhcp client on or off
And how it should act is that
If the dhcp server is unavailable, it should fallback to a sane address
and this sane address should be the last given dhcp address or a specified fallback for the very first time (the one determined at proxmox install time)
after that, when the dhcp server is unavailable at boot, or become unavailable during operation,
it should not prevent booting and it should not cease to function when the dhcp server becomes unavailable
and when the dhcp server becomes available again, the system should seamlessly switch to the new (or old) provided address
it should not fail then give up forever
disconnecting and reconnecting the network cable from the host should be as minimally disruptive as possible.
it should not produce spurious error or warning messages in logs
I did research previous questions about this issues in the following URLs
Code:
https://forum.level1techs.com/t/dhcp-for-proxmox-host-server/196733/5
https://forum.proxmox.com/threads/configured-proxmox-as-dhcp.180572/
https://forum.proxmox.com/threads/dhcp-in-proxmox.185112/
https://forum.proxmox.com/threads/dhcp-option.160785/
https://forum.proxmox.com/threads/my-dream-dhcp-server-built-into-proxmox-how-do-you-users-workarround-it.98900/
https://forum.proxmox.com/threads/proxmox-9-0-4-doesnt-get-ip-by-dhcp.169721/
https://forum.proxmox.com/threads/proxmox-9-0-4-doesnt-get-ip-by-dhcp.169721/page-2
https://forum.proxmox.com/threads/proxmox-automated-installation-dhcp-issue.151844/
https://forum.proxmox.com/threads/pve-nodes-with-dhcp-assigned-ips-and-hostnames.135952/
https://forum.proxmox.com/threads/set-a-dynamic-address-to-pve.119847/
https://forum.proxmox.com/threads/set-dhcp-on-proxmox.168358/
https://forum.proxmox.com/threads/static-ip-to-dhcp.154422/
https://forum.proxmox.com/threads/ve_host-web-interface-setup-for-dhcp.27481/
https://www.reddit.com/r/Proxmox/comments/1lplwkx/is_there_a_definitive_way_to_get_proxmox_to/
The general attitude is "no, create manual IP lease exceptions instead"
I took all these threads and consults with an LLM.
Here are the general concerns it identified
Code:
1. Basic network configuration
2. DHCP client implementation
3. DHCP unavailable during normal operation
4. DHCP unavailable during boot
5. Address-collision handling
6. DHCP becomes available again
7. Cable disconnect and reconnect
8. /etc/hosts
9. Node hostname
10. DNS and /etc/resolv.conf
11. Default gateway and DHCP routes
12. pvebanner and /etc/issue
13. pveproxy
14. AppArmor
15. DHCP event architecture
16. Persistent state
17. First DHCP conversion
18. IPv6
19. Firewall, storage, monitoring, APIs and external dependencies
20. Standalone versus clustered hosts
21. Logging
22. Upgrade safety and idempotence
23. Disabling DHCP again
It provided a look at the "dhcp state machine" once completed

And there is even a checklist of what "done" would look like

So, before I do all of that, I mostly wanted to ask, if anyone had already done it ?
And I did find these
https://free-pmx.org/guides/dhcp-single/
https://free-pmx.org/guides/dhcp-cluster/
But I'm not really sure it addresses all of the above.