if you made the changes in interfaces and it’s sticking, then you don’t need to do it again. i’ve had some wonky experience with changes in interfaces being overwritten and putting it in the config file fixed it for me.
the symlink you mention is necessary if you don’t have /usr/local/bin in root’s path. echo $PATH will show you what’s in your path. so you can either make the symlink or add to root’s path, both will work.
Helo,
please could you write me where i must to add this DNS address to deploy it via dhcp or use by turris like default dns ? In turris configuration is many places where is possible to write some dns address and i am little confused.
Setting up a PiHole server in a LXC container isn’t really any different than setting it up on a separate Raspberry Pi computer.
Set up OS: create LXC instance with Ubuntu. Be sure to update OS after you set it up. Very Important: Set it up with a fixed IP address for your network.
Install PiHole using their setup script or following their manual instructions.
Use either Omnia for DHCP or PiHole for DHCP. Do not use both as DHCP servers, will cause headaches.
If you are setting up PiHole to handle DNS and DHCP, you should be good to go. If you’re using the Omnia for DHCP, set up PiHole for DNS:
go to Network > Interfaces > LAN, at the bottom at DHCP Server > Advanced Settings:
DHCP-Options: 6,(IP Address of your PiHole)
So if your PiHole were running at 192.168.2.10, then you put 6,192.168.2.10
The link you posted won’t load for me, but there isn’t much more to it than what I just posted. The thing to be sure of is to not use both the Omnia and PiHole for DHCP and/or DNS, use one for each service, or one for both services but do not have the same service running on each server or it won’t work right.
Scott - thanks! how do i updated the os? How do i set it up with a fixed ip? How do I auto start the lxc container after reboot?
I think for the most part its working properly. I cant figure out how to restart the container after reboot. Full disclosure: i dont really know my way around vim or anything. thanks for the help. u da bomb!
update the OS and set a fixed IP depends on what OS you’re using. if it’s ubuntu you can update with apt-get update && apt-get upgrade -y for a fixed IP you’re going to want to edit /etc/network/interfaces. google and you can find documentation on how to edit the file.
to get the lxc container to auto start, i think you need to edit the config file. i don’t think you can set it up through luci, it’s been a while since i set mine up.
cd /srv/lxc/<your server name> vi config (or use your favorite editor)
add the following to the bottom:
lxc.start.auto = 1 tells it to auto-start on boot. delay is the delay to wait before starting the VM and order is the order in which to start the VM if you have more than one (i have 3 running on my omnia).