Docker PIHole inside LXC - No DHCP

Guv

New Member
Feb 25, 2024
2
0
1
Hello,

I'm running a containerised version of pihole inside an LXC container.

I have the webui and DNS working, but DHCP does not work.

The setup itself (docker-compose and the pihole config files) has been copied from machine to machine and I always had both DNS and DHCP working without making any changes.

Is there something I need to do in proxmox or lxc to let the DHCP server work. Both other LXC containers and physical machines fails to get an IP.

Also I am aware that I might not give enough information here but I have only just installed proxmox so not really sure what info I am suppose to supply.

Cheers,
Magnus
 
I can't find it now but I thought I read somewhere that a setting needs to be updated on the LXC to allow some hosted services. I use redundant pihole systems so I don't use DHCP from them - I use my pfSense for DHCP on the network and point my dns to both pihole LXCs.

found something...

Try running this on the LXC...
Code:
ln -s /etc/apparmor.d/usr.sbin.dhcpd /etc/apparmor.d/disable/

You can turn off the tcpdump apparmor profile by symlinking the profile to /etc/apparmor.d/disable/ then reload apparmor in the container (or reboot it).

Found at https://askubuntu.com/questions/110...-server-inside-lxc-container-why-it-does-noth