HyperV NIC not shown lspci
I am currently trying to set up a debian virtual machine on HyperV (the end goal is that this machine is running on azure which uses HyperV virtualization under the hood) but I cannot get the network up.
The machine was originally created in VirtualBox and exported as a VHD image and then re-imported into the hyperV server. Any add-ons for VirtualBox were removed and the hyperV linux integration tools installed.
The server is configured to provide an external virtual network for one of the host's network adapters, and I've added an adapter for that virtual network for my virtual machine.
However, when I run lspci on the guest, I see:
root@debian:-# lspci
00:00.0 Host bridge: Intel Corporation 44013X/2X/DX - 824438X/2X/DX Host bridge ( AGP disabled) (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual VGA
I read here that the emulated network device is on 1011:0009
but lspci -d 1011:0009
shows nothing.
I really don't know where to go from here, any help would be appreciated :)
-Andy
source to share
When adding a network adapter, you must use a legacy network adapter and then install it to connect.
HyperV and Debian have a tutorial on Running Debian on Windows Server Hyper-V
source to share
No string displayed for (non-inherited) network adapter. Just load the kernel module ( hv_netvsc
) and use ifconfig -a
to see if the interface is there ...
To build this kernel module take a look at http://dietrichschroff.blogspot.de/2013/03/hyper-v-compile-linux-kernel-with.html
source to share
It seems that you are already using some of the Hyper-v modules (virtual VGA-server Microsoft Corporation Hyper-V), you can lsmod | grep hv
and see the loaded modules the V-the Hyper ( hv_vmbus
, hv_netvsc
, hv_blkvsc
, hv_storvsc
) You can see the actual interfaces running ip link show
. I suggest that instead of compiling a new kernel, simply update the distribution:
If you are using Debian 6 (Squeeze) you can upgrade to 7 (Wheezy), it's that simple: just answer Y every time.
apt-get update
apt-get upgrade
nano /etc/apt/sources.list replace every squeeze with wheezy, ctrl+x, Y,enter.
apt-get update
apt-get upgrade
apt-get dist-upgrade
reboot
Your new kernel will be chosen, log in, and then you can lsmod | grep hv
and see which modules are loaded, the V the Hyper ( hv_vmbus
, hv_netvsc
, hv_blkvsc
, hv_storvsc
)), connect your non-legacy network adapter, and do ip link show
, then you will see it (you can be sure to check MAC).
But why stay there? You can now go to Debian 8.2 (jessie) following the same instructions, but this time use "jessie" in your sourcelist.
I couldn't go directly from 6 to 8.
If you have a "public key not available" problem, follow the instructions here .
Enjoy.
source to share