DHCP: PVE install on top of Debian not well documented

esi_y

Renowned Member
Nov 29, 2023
2,221
366
63
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!