digitalformula Posted August 31, 2019 Share Posted August 31, 2019 Hello - Is dnsmasq required for the operation of KVM? Asking as I'm trying to install Pihole but the Docker container is failing due to port 53 already being in use. Netstat tells me it is in use by dnsmasq on local address 192.168.122.1 and I've tracked that down to 192.168.122.0/24 being attached to virbir0 in the routing table. Stopping KVM allows the container to work. Can I still use KVM if I somehow remove/stop dnsmasq? Docker is more important than KVM on this server so it's not a biggie if the answer is no. Quote Link to comment
TheBlueKingLP Posted August 31, 2019 Share Posted August 31, 2019 Hello - Is dnsmasq required for the operation of KVM? Asking as I'm trying to install Pihole but the Docker container is failing due to port 53 already being in use. Netstat tells me it is in use by dnsmasq on local address 192.168.122.1 and I've tracked that down to 192.168.122.0/24 being attached to virbir0 in the routing table. Stopping KVM allows the container to work. Can I still use KVM if I somehow remove/stop dnsmasq? Docker is more important than KVM on this server so it's not a biggie if the answer is no.Use bridge so the container will have another IP address Quote Link to comment
digitalformula Posted August 31, 2019 Author Share Posted August 31, 2019 3 minutes ago, TheBlueKingLP said: Use bridge so the container will have another IP address It is already configured as bridge. There's a setting for "Server IP" but no matter what I set that to, that IP doesn't respond to anything. It's no biggie, though - stopping KVM has worked. Quote Link to comment
TheBlueKingLP Posted August 31, 2019 Share Posted August 31, 2019 It is already configured as bridge. There's a setting for "Server IP" but no matter what I set that to, that IP doesn't respond to anything. It's no biggie, though - stopping KVM has worked.Is it set to the same subnet as your server?or subnet that you and the server can access? Quote Link to comment
digitalformula Posted August 31, 2019 Author Share Posted August 31, 2019 (edited) 3 minutes ago, TheBlueKingLP said: Is it set to the same subnet as your server?or subnet that you and the server can access? Yes, same subnet - this part of the network is all on the same /24 (the other parts are DMZ etc, so completely isolated from unRAID). Edit: THe Pi-hole UI does show that IP as the "Pi-hole IPv4 address" though. Edit 2: Btw, Pi-hole is functioning just fine and ads are being blocked. I can see the stats in the UI. Edited August 31, 2019 by digitalformula Quote Link to comment
TheBlueKingLP Posted August 31, 2019 Share Posted August 31, 2019 Yes, same subnet - this part of the network is all on the same /24 (the other parts are DMZ etc, so completely isolated from unRAID).how many subnet do you have? Is the computer that you tried to connect to pihole on the same subnet as the pihole? If not, try to use the same subnet, btw, pihole should have a web interface, try to open that as well Quote Link to comment
digitalformula Posted August 31, 2019 Author Share Posted August 31, 2019 (edited) 2 minutes ago, TheBlueKingLP said: 4 minutes ago, digitalformula said: Yes, same subnet - this part of the network is all on the same /24 (the other parts are DMZ etc, so completely isolated from unRAID). how many subnet do you have? Is the computer that you tried to connect to pihole on the same subnet as the pihole? If not, try to use the same subnet, btw, pihole should have a web interface, try to open that as well Yup sorry I should've included that info before. unRAID, this desktop, the Pi-hole WebUI etc are all on the same subnet. Pi-hole and its UI are working fine and I can see traffic there + ads being blocked. Tested with speedtest.net and a few others that are known to be bad for ads. I don't really use KVM on unRAID anymore so I'll just ignore it for now. Thanks, though. Edited August 31, 2019 by digitalformula Quote Link to comment
TheBlueKingLP Posted August 31, 2019 Share Posted August 31, 2019 Yup sorry I should've included that info before. unRAID, this desktop, the Pi-hole WebUI etc are all on the same subnet. Pi-hole and its UI are working fine and I can see traffic there + ads being blocked. Tested with speedtest.net and a few others that are known to be bad for ads. I don't really use KVM on unRAID anymore so I'll just ignore it for now. Thanks, though. Ok then Quote Link to comment
SpyKiIIer Posted October 7, 2019 Share Posted October 7, 2019 I am hitting this issue now as well. PiHole will not start up when VMs are enabled, as DNSMasq is using port 53 (DNS) on UNRAID when VMs are enabled. When the VM functionality is turned on in UNRAID, the DNSMasq service is stopped as well. Quote Link to comment
bar1 Posted February 26, 2020 Share Posted February 26, 2020 any updates on this? Quote Link to comment
digitalformula Posted February 26, 2020 Author Share Posted February 26, 2020 6 hours ago, bar1 said: any updates on this? I gave up waiting and moved PiHole to a CentOS 7 VM a while back. Deleted the PiHole container. Didn't have a lot of choice since I need VMs more than I need PiHole to be running as a container. 1 Quote Link to comment
funaz Posted April 7, 2020 Share Posted April 7, 2020 In the docker template, use macvlan network type (for me, it's "Custom:br0") instead of "host" or default "bridge" network, and assign an IP manually to pihole. In this case, pihole (or any other docker) will have its own ip address so no ports conflict. I'm not sure it's enabled by default, but you can set that up in Settings -> Docker -> 'IPv4 custom network on interface'. If you have multiple NICs (or VLANs) and subnets, you can enable them, and choose whatever subnet you want the pihole to be in in the docker template. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.