If you have installed ubuntu in Hyper–V and network interface cards not detected. then you have to load the hyper visor modules in ubuntu.
To do this, edit the file /etc/initramfs-tools/modules by following command
and add the following four lines:
hv_vmbus hv_storvsc hv_blkvsc hv_netvsc
Then, update the initramfs image:
sudo update-initramfs –u
Now reboot your ubuntu box. after rebooting, issue command
and you will see you network interface cards. Finally configure the interface cards either via GUI or CLI.
VMWARE Workstation: Windows not detecting LAN card in Guest OS:
Add the line in vmx file of your vm guest.
ethernet0.virtualDev = “e1000”