I've been playing for a while with the idea of setting a PiHole server at home. The most straightforward way to do it would be to set up a Rasperry Pi and finito! However, being the curious non-straightforward guy that I am, I thought about setting PiHole in my server as a VM.
As background information, the motherboard on my OMV server is an Intel DQ77KB which has 2 (Intel) NICs. My original idea was to let OMV work exclusively with one NIC and set the second one exclusively for PiHole. The VM will even have its own physical HDD (a small 2 Gb SSD, more than enough for a minimum Debian install plus PiHole). However, when I created a VM in virtualBox and tried to assign the second NIC to the VM, it was not available. I set the network in Bridged Mode, but the only NIC shown is the one used by OMV.
Searching thru the Forum I found some threads about multiple-NIC OMV installations, and most of them point to the fact that OMV shows only the NIC used by it. The network interfaces menu on the GUI shows only one NIC (eth2), and so does ifconfig -a. Both NICs are connected to my router, but only one is shown in the list of attached devices.
Therefore, the thing is like this:
1. Is the proposed idea of the VM with PiHole the best solution? If not, what do you recommend? I know that I can use the Raspi, but I don't want another device hanging around my router. I thought about taking advantage of the dual NIC on the mainboard.
2. How can I assign the second NIC exclusivelly to the PiHole VM?