VM do not get IP from udhcpd in LXC

francoisd

Renowned Member
Sep 10, 2009
49
2
73
Hi,

VM dot not receive IP from DHCP server running in LXC.

No FW, no iptables, no ebtables, all policies on ACCEPT, (both in LXC & Proxmox VE host).

The DHCP server gets the requests, but the VM seems not to receive them.

The only specificity: they are both in the same tagged VLAN 66. Vlan (un)tagging is made by Proxmox VE for both servers, on top of the default Linux bridge. But I guess this has nothing to do with the problem.

Logs from the DHCP server running on a haproxy LXC:

Code:
root@haproxy:~# tail /var/log/syslog -n 10
Jan  6 11:42:55 haproxy udhcpd[126]: found static lease: 4b42a8c0
Jan 6 11:42:55 haproxy udhcpd[126]: sending ACK to 192.168.66.75
Jan 6 11:43:27 haproxy udhcpd[126]: found static lease: 4b42a8c0
Jan 6 11:43:27 haproxy udhcpd[126]: sending OFFER of 192.168.66.75
Jan 6 11:43:27 haproxy udhcpd[126]: found static lease: 4b42a8c0
Jan 6 11:43:27 haproxy udhcpd[126]: sending ACK to 192.168.66.75
Jan 6 11:43:59 haproxy udhcpd[126]: found static lease: 4b42a8c0
Jan 6 11:43:59 haproxy udhcpd[126]: sending OFFER of 192.168.66.75
Jan 6 11:43:59 haproxy udhcpd[126]: found static lease: 4b42a8c0
Jan 6 11:43:59 haproxy udhcpd[126]: sending ACK to 192.168.66.75

# And yes, there's a static lease for the VM:
root@haproxy:~# grep 192.168.66.75 /etc/udhcpd.conf
static_lease B2:84:3E:84:C9:33 192.168.66.75 # bootstrap
root@haproxy:~#



Do you have any idea ?
 

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!