January 6, 2015

Network issues with CentOS 6.x under Hyper-V

I had a number of CentOS instances running under Hyper-V using the standard virtual network interface via integration services. Post CentOS 6.3 integration services are included in the install and that has been my experience. However at some point after updating to 6.6, something causes the integration services to no longer work with the virtual network interface.

To fix, remove the Network Adapter from the Hyper-V configuration and replace it with a Legacy Network Adapter.

Now you need to boot the virtual machine and access it from the Hyper-V console in order to log in. Backup the file /etc/udev/rules/70.persisent-net.rules and remove it from the /etc/udev/rules directory. This file tells CentOS to look for the old network interface and assign it to eth0.

Second, backup the /etc/sysconfig/network-scripts/ifcfg-eth0 file. Edit the file and remove any reference to UUID or HWADDR.