Debian in Hyper-V with the Synthetic Drivers
Well special thanks to Matthew Mattoon for giving some great instructions on how to compile in the hyper-v drivers. This seemed to work quite well with the 2.6.32.1 kernel, and not so well for the 2.6.32.5 or the 2.6.33.1 - but I'll have to give those another whirl :-)
They key components are where to get the hyper-v items (drivers-->staging-->Uncheck staging-->Microsoft Hyper-V), and then these key items:
COMPILE KERNEL (takes about 1 hour)
# make-kpkg clean
# fakeroot make-kpkg --initrd --revision=hv.custom.1.0 kernel_image
INSTALL KERNEL
# cd ../
# ls -l
# dpkg -i linux-image-2.6.32.1_hv.custom.1.0_amd64.deb
SWITCH CONFIGURATIONS FROM EMULATED TO SYNTHETIC NETWORK ADAPTER
# sed -i 's/eth/seth/g' /etc/network/interfaces
CONFIGURE MODULES TO LOAD AT BOOT
# echo –e "hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc" >> /etc/initramfs-tools/modules
# update-initramfs –u –k 2.6.32.1
And if you want to skip the fun and just have at it, I'll give you a great start, the compiled kernel in .deb format. Then just start with the "sed..." command.
In the future, we have to imagine the linux folks will be including the newer kernels and as such we'll be able to go from the "echo -e" command to just load the modules, and a "update initramfs -u", which updates the initramfs with the latest kernel!
Debian 5 Kernel for Hyper-V
They key components are where to get the hyper-v items (drivers-->staging-->Uncheck staging-->Microsoft Hyper-V), and then these key items:
COMPILE KERNEL (takes about 1 hour)
# make-kpkg clean
# fakeroot make-kpkg --initrd --revision=hv.custom.1.0 kernel_image
INSTALL KERNEL
# cd ../
# ls -l
# dpkg -i linux-image-2.6.32.1_hv.custom.1.0_amd64.deb
SWITCH CONFIGURATIONS FROM EMULATED TO SYNTHETIC NETWORK ADAPTER
# sed -i 's/eth/seth/g' /etc/network/interfaces
CONFIGURE MODULES TO LOAD AT BOOT
# echo –e "hv_vmbus\nhv_storvsc\nhv_blkvsc\nhv_netvsc" >> /etc/initramfs-tools/modules
# update-initramfs –u –k 2.6.32.1
And if you want to skip the fun and just have at it, I'll give you a great start, the compiled kernel in .deb format. Then just start with the "sed..." command.
In the future, we have to imagine the linux folks will be including the newer kernels and as such we'll be able to go from the "echo -e" command to just load the modules, and a "update initramfs -u", which updates the initramfs with the latest kernel!
Debian 5 Kernel for Hyper-V

0 Comments:
Post a Comment
<< Home