You are not logged in.

#1 2019-11-19 11:09:02

WTFitsGeorge
Member
From: South Africa
Registered: 2018-11-15
Posts: 3
Website

pi-hole and libvirt

Hi guys.
I have a catch 22 situation and would like some advice. I'm running pi-hole on my Arch server. (Love it). It serves DHCP and DNS to my local network and uses a private fork of dnsmasq, FTL sub-project. The original dnsmasq package is now conflicting with pi-hole-ftl as stated in the Arch wiki for pi-hole.
I'm also trying to host VM's on my server with libvirt. I cannot setup the virtual network on libvirt as libvirt needs dnsmasq.
A solution is to use a bridged network instead of the default NAT setup, but the host interface looses it's IP address if you setup a bridge.
Is there a way around this?

Thanks!


If you are reading this you have way too much time on your hands.

Offline

#2 2019-11-19 15:30:58

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 89

Re: pi-hole and libvirt

Hi!

I'm using dnsmasq as it is and no pihole, but you can set up your static bridge ip like this in systemd-networkd:

/etc/systemd/network/4-0eth1.network
[Match]
Name=eth1
[Network]
Bridge=br0

/etc/systemd/network/4-br0.netdev
[NetDev]
Name=br0
Kind=bridge


/etc/systemd/network/4-br0.network
[Match]
Name=br0

[Network]
DNS=192.168.1.1
Address=192.168.1.50/24
Gateway=192.168.1.1

Example sets 192.168.1.50 as static address.

Your local dnsmaq.conf must be properly configured (if pihole uses it), see Libvirtd_and_dnsmasq.

Offline

Board footer

Powered by FluxBB