I'm currently running Hyper-V in Windows Server 2012, and I'm trying to get a Debian Wheezy VM running. I've configured the virtual switch and added a legacy network adapter configured to the virtual switch, and removed the regular network adapter that was automatically added by Hyper-V.
When autoconfiguring the network during installation, I'm getting "Network autoconfiguration failed". So, I tried to set it up manually, with the same settings that I can see when I use ipconfig /all
in Windows. However, with this, I'm getting "Unreachable gateway". Any ideas as to why this is happening?
Just some background info: I currently have 3 IPs for my server, one primary IP and I have set-up two additional IPs in the Virtual Switch's IPv4 advanced configuration. They seem to work, because I can ping the additional IPs. I'm trying to set one of these additional IPs as the IP of my Debian installation.
OK. That's not really assigning an ip address to the Virtual Switch. That's assigning an ip address to the physical NIC that the Virtual Switch is bound to.
So the physical NIC has those ip addresses but the Virtual Switch doesn't have those ip addresses.
You assign an ip address to a VM the same way you would in a physical machine. So however you assign an ip address to a physical install of Debian Wheezy is how you should assign an ip address to your virtual Debian Wheezy.