How to dedicate a NIC to a VM in Hyper-V
I'm playing around with Hyper-V on a Windows Server 2012 machine. It has 3 NIC's. #0 is dedicated to the host, #1 is on a virtual switch with all VM's on it.
I want NIC #2 to be dedicated to a particular VM, e.g. the host shouldn't bother with it and it should only have 1 MAC and IP for the client VM. (as if the VM was a physical machine with that particular NIC)
The only way to do this I see now is to create a "external" virtual network and place only that VM on the network. This of course has advantages but also leaves me to deal with 2 IP's and 2 MAC's: one for the host and one for the VM.
Is this possible and if so how (and is it recommended?)
Creating an external network won't create two MAC addresses and two IP addresses unless you also choose "Allow management operating system to share this network adapter." If you leave that box unchecked (or the equivalent operations in PowerShell) then the management OS won't bind anything to it except the switch. If you enable VMQ or SR-IOV on it, then you'll even have dedicated hardware routing the traffic into the VM.