If you are running Debian 6.0 (Squeeze), You can upgrade to 7.0 (Wheezy), it’s so simple:
just answer Y every time.
apt-get update
apt-get upgrade
nano /etc/apt/sources.list
and 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 selected, login, then you can lsmod | grep hv
and see the hyper-v modules loaded (hv_vmbus, hv_netvsc, hv_blkvsc, hv_storvsc), connect your non-legacy network adapter and do ip show link
then you’ll see it (you can be sure by checking the MAC).
But why stay there?, now you can go to Debian 8.2 (jessie) by following the same instructions but this time use “jessie” on your sourcelist.
I wasn’t able to go directly from 6 to 8.
If you have trouble with “public key is not available” then follow instructions from here.
Sometimes running on Hyper-v it throws two errors:
Error: Driver ‘pcspkr’ is already registered
SMBus base address uninitialized – upgrade bios or use force_addr=0xaddr
to get rid of those errors just blacklist two modules by:
echo 'blacklist pcspkr' >> /etc/modprobe.d/fbdev-blacklist.conf
echo 'blacklist i2c_piix4' >> /etc/modprobe.d/fbdev-blacklist.conf
then do:
update-initramfs -u
reboot
Enjoy.