Get NIC working in Hyper V for CentOS

Create a new VM in Hyper V – 2GB ram, 60GB disk, using CentOS-6.4x86_64-minimal.iso from Public Mirror list from
(If moving VM – you will need to modify MAC address in the /etc/sysconfig/network-scripts/ifcfg-eth0 file) and then:
After completing this now we need to reload udev configuration to reflect the changes:
Create the /etc/sysconfig/network file. This may already exist. If not, enter the following:
vi /etc/sysconfig/network
GATEWAY= (your gateway)
Create the network script for the adapter. You’ll need to know the MAC address of the network adapter – you can find this in the VM settings section.
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DHCP_HOSTNAME=$(hostname -s)
chmod 644 /etc/sysconfig/network
Restart the network service to bring up the adapter:
service network restart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s