Proxmox 9.0.4 doesn't get IP by DHCP

yonder

Member
Dec 17, 2022
2
0
6
After changing /etc/network/interfaces on a fresh install to:

iface vmbr0 inet dhcp

and running ifreload -a I'm receiving an error message:

vmbr0: cmd '/sbin/dhclient -pf /run/dhclient.vmbr0.pid -lf /var/lib/dhcpdhclient.vmbr0.leases vmbr0' failed([Errno 2] No such file or directory: '/sbin/dhclient')

Indeed there is no file 'dhclient' in /sbin forlder.

Strangely enough it looks like the installer runs DHCP client to pick the IP bound to MAC address up but makes it static.

It worked for sure on version 8.3 or 8.4. But not with v9. Can anyone help please?
 
"apt install isc-dhcp-client" should solve that.
 
dhcpcd 10.1.0 is giving me a segfault on a fresh install of Proxmox 9.0-1 everytime I run ifreload -a .
It is a fresh installation and I'm still investigating the error. I'll make a report if I find something out. But I figured it might be a good idea to mention it here, in case it happens to anyone else reading this.
 
  • Like
Reactions: nmpu
dhcpcd 10.1.0 is giving me a segfault on a fresh install of Proxmox 9.0-1 everytime I run ifreload -a .
It is a fresh installation and I'm still investigating the error. I'll make a report if I find something out. But I figured it might be a good idea to mention it here, in case it happens to anyone else reading this.
The above dhcpcd install got me through boot, but it appears that other commands (like ifreload) still use scripts which reference the nonexistent dhclient. I found this response from 2023:
No, all Proxmox products use /etc/network/interfaces and ifupdown2 for network configuration.
This means you can't remove ifupdown2. You could install NetworkManager or systemd-networkd as a non-deprecated DHCP companion, but those packages use their own config files, so there'd be no visibility under PM network settings. I completely removed dhcpcd and installed the deprecated isc-dhcp-client as recommended by fabian.
 
Last edited: