debian – Installing Hyper-V Drivers on Debian Squeeze

debianhyper-v-server-2008-r2linuxvirtualization

I have a fresh Debian 6.0.0 (Squeeze) server running on Hyper-V and I'm trying to get the synthetic drivers loaded into the kernel (2.6.32-5-amd64). The research I've done says that the Linux Integration Drivers should have been mereged into the .32 and greater kernel tree but I can't seem to find them in the normal /lib/modules/2.6.32.5-amd64/kernel/ directory. A modprobe also fails to locate and load the modules into the kernelspace.

I'm looking for the following kernel modules:

  • hv_vmbus
  • hv_blkvscb
  • hv_netvsc
  • hv_storvsc

Does anyone know where I can find the kernel moduels for the Hyper-V Linux Intergration Drivers? Have they been moved to their own package? Do I need to recomplile the kernel and manually build them?

Best Answer

A grep CONFIG_HYPERV /boot/config-2.6.32-5-amd64 shows CONFIG_HYPERV is not set. It appears that Debian has chosen not to build those modules. I am reading about it, several articles mention hv not being well supported by MS, and some people want to drop it.

I looked and the hv source is present in the 2.6.32 kernel source package (drivers/staging/hv). One thing you could do is install the kernel source package and the kernel-package tool. (apt-get install apt-get install linux-source-2.6 libncurses-dev kernel-package) Extract the source, copy /boot/config-2.6.32-5-amd64 to .config, use make menuconfig and enable the hyperv drivers. Then compile your kernel with make-kpkg.

For kernels with version >3.0 the drivers are no more located in staging. The new locations a described here: http://dietrichschroff.blogspot.de/2013/03/hyper-v-compile-linux-kernel-with.html