[TUTORIAL] [DHCP] Single node install ONLY (no static reservation necessary)

esi_y

Renowned Member
Nov 29, 2023
1,717
264
63
github.com
This is a specialised case of Cluster deployment tutorial on the same matter. It does NOT require DHCP static reservations and does NOT rely on DNS resolution. It is therefore easily feasible in a typical homelab setup.

DISCLAIMER DO NOT use this setup for clusters.

1. Perform regular ISO installation [1] - use a temporary static IP for the first boot, use hostname you would like to retain (pvehost in this example).

2. Install Avahi [2] daemon: apt -y update; apt install avahi-daemon

3. Remove superfluous static entry in /etc/hosts, e.g. remove 192.168.1.101 pvehost.internal pvehost line completely:

Code:
127.0.0.1 localhost.localdomain localhost

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

4. Change from static to dhcp and remove address and gateway specified in /etc/network/interfaces - example (if default install):

Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
    bridge-ports enp1s0
    bridge-stp off
    bridge-fd 0

5. Reboot.



You may wish to check if everything is alright with journalctl -eu pve-cluster.service - it should contain a line such as (with NO errors):

pvehost pmxcfs[706]: [main] notice: resolved node name 'pvehost' to '192.168.1.101' for default node IP address

You may also want to check simply hostname --ip-address does NOT return 127.*.*.* address.

And that's about it. Also, if you are on the same subnet, you may now access your node GUI at: https://pvehost.local:8006/



[1] https://pve.proxmox.com/wiki/Installation#installation_installer
[2] https://wiki.debian.org/Avahi
 
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!