I have successfully installed centos on a virtual machine via Hyper-V on Windows Server 2008 R2. This server has one NIC.
I have created a virtual NIC, and virtual subnet, and within the virtual machine (via console) I can ping the gateway. But not google. Is there certain steps I am missing, I feel like I'm one setting away.
Im not sure what other information would be useful.
Here is the ipconfig of the host:
Ethernet adapter vNIC losangeles1_1:
Connection-specific DNS Suffix .. :
IPv4 Address. . . . . . . . . . . : 10.10.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix .. :
IPv4 Address. . . . . . . . . . . : 72.51.43.43
Subnet Mask . . . . . . . . . . . : 255.255.255.192
Default Gateway . . . . . . . . . : 72.51.43.1
Here is the Virtual Network Manager of the host:
When you created your virtual network, you probably chose an 'Internal' type. This does not allow traffic out of the machine (unless you monkey around installing a loopback adapter on your host and route the traffic through that).
You need to create an External virtual network.
you said you can ping the gateway, is that a router or something on your network? Or do mean the host PC that is running Hyper-V? If you could post the output of an ipconfig /all from your hyper-v host and the output of an ifconfig eth0 from your centos VM that would give us a better insight.
As Chris points out you've most likely chosen the 'internal' connection type option when configuring your virtual NIC.
Go to hyper-V manager, select your host and then on the right side of the screen click 'Virtual Network Manager'. In the window you get now, select you virtual network from the 'virtual networks' list (normally you should only see one in your situation). Now select 'External' under the 'Connection Type' pane, select your physical NIC that you want to use, and make sure you check 'Allow Managerment OS to share this network adapter'
That should do the trick