I've launched a CentOS install in HyperV and assigned a NIC the same way I've done on an Ubuntu VM, however, the device simply isn't picked up.
Only my loopback is found by
How should I go about trouble shooting this?
It sounds like drivers for HyperV virtualized NICs are missing from the CentOS kernel version you are using and are present in the Ubuntu version you successfully installed. Microsoft has only recently gotten its virtual device drivers into the mainline kernel. My guess is that you are using a version of CentOS that does not include these drivers.
As far as how to troubleshoot it, you can look for kernel messages related to network hardware. Check the output of
When creating the VM, you can choose to add a "Legacy Network Adapter" in HyperV (at least the option used to be called that). This will present the NIC to the guest OS as essentially an older device, for which the guest will hopefully have drivers.
Once you have installed CentOS, you can install drivers from Microsoft to utilize the more efficient virtual devices.
You can also check /var/log/messages on the VM and grep for eth0. In my situation the kernel switched from using eth0 to eth5 during boot (on legacy network adapter).