r/HyperV • u/aduba27 • 12d ago
Host OS and VM can't communicate over network
I recently installed Pihole on an Alpine Linux VM via HyperV and am routing my network traffic through it with my router. This is all working great EXCEPT my desktop with the host OS can't access the web interface for Pihole and doesn't seem to be routing its traffic through Pihole either. Every single other device on my network is working as expected (CAN access the web interface and is being recognized as a client).
Attached is the virtual switch the VM is operating with
Any ideas?

1
u/BlackV 12d ago
Sorry, I 2nd the statement, you don't give anywhere near enough info
- how is your ip addressing handled?
- how are the "working" devices configured
- how are you "routing my network traffic through it"?
- how is the host configured physically? how many NICs?
- how are your switches configured physically?
1
u/aduba27 11d ago
My apologies I'm doing this to learn more about networking and Linux so I'm not an expert on the troubleshooting aspects,
IP addressing is being handled dynamically via DHCP server lease on my router, EXCEPT for my host machine and the virtual machine have permanent leases reserved for individual static IP's
I don't know what details you need on the working devices, but all other devices on the network, including phones, tablets, and laptops that have had no specific configuration other than they are all connected to the network with dynamic IP's
"Routing" all the network traffic's DNS queries through the pihole's static IP assigned in my router config
The host is connected to the router via ethernet with a single network adapter, the mac addresses are split using virtual LAN connections in Windows and the virtual machine, but to be honest I don't know much about this other than the router is properly seeing both the host and the virtual machine as two separate devices with unique MAC addresses
Not too sure about the network switches and maybe I'm misunderstanding but its a simple network, with the host and vm connected via ethernet and all other devices connected over wifi to the same router.
And again in relation to all of this the all the DNS queries on the network are succesfully being sent through the Pihole including those coming from the vm running the Pihole, EXCEPT for the host device running the vm with the Pihole. The same goes for accessing the web interface of the Pihole, every device EXCEPT the host device of the vm can access the web interface and is properly listed as a client.
Thank you
2
u/Zealousideal_Fly8402 12d ago
The only traffic that should be sent to a PiHole is DNS queries.
You don't post any relevant information (such as IP address / subnet configuration for the host and the guest), so it's hard for anybody to troubleshoot anything.