CentOS is not listed as a supported OS for Microsoft’s Hyper-V but I’ve found it works pretty well. Whenever I install CentOS on Hyper-V I forget the configuration file you have to create to get eth0 working. So here it is.

Install CentOS. Add legacy NIC in Hyper-V settings.

Create file /etc/sysconfig/network-scripts/ifcfg-eth0 and input the following with your values of course.

Some other commands or config files that might need to be edited.