DHCP: PVE install on top of Debian not well documented

esi_y

Renowned Member
Nov 29, 2023
2,221
388
68
github.com
I just realised that the docs [1] on Debian install are not really well explained, trying to simply replicate ISO install without further reasoning.

What I am getting at is right at the beginning:

Install a standard Debian Bookworm, for details consider the Debian installation guide, and configure a static IP.

But the way PVE works, it does not really need a static IP - what it needs is the hostname to resolve to non-loopback IP as it simply uses getaddrinfo(3) [2] to get it.

This of course can be easily achieved by well-configured DNS* and nsswitch.conf [3] preferring DNS over /etc/hosts for the resolution.

* It is more likely than not that the users installing on top Debian have dnsmasq properly set to then resolve DHCP leases correctly (or even set the hostnames) and this allows deployment at scale without fiddling around all the static mess.

[1] https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_12_Bookworm
[2] https://manpages.debian.org/bookworm/manpages-dev/getaddrinfo.3.en.html
[3] https://manpages.debian.org/bookworm/manpages/nsswitch.conf.5.en.html
 
Last edited: