search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
OpenSUSE 2.6.36 kernel upgrade for Hyper-V Client drivers
Posted in Linux Server | 10 Comments | 18,091 views | 04/11/2010 00:06

You can use OpenSUSE on Hyper-V with 4 vCPU.

1) Install a clean OpenSUSE 11.3

2) Do following:

1
2
3
4
5
6
7
8
zyyper update
zypper install gcc gcc-c++ make autogen autoconf kernel-source
wget -c http://yusufozturk.info/linux/kernel-2.6.36-hyperv-opensuse.x86_64.rpm
zypper install kernel-2.6.36-hyperv-opensuse.x86_64.rpm
cd /boot
mkinitrd
zypper install nano
nano /grub/menu.lst

In the menu.lst, copy these lines:

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34.7-0.5
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-Virtual_HD.. (full path!)
    initrd /boot/initrd-2.6.34.7-0.5-desktop

and past under it like below:

###Don't change this comment - YaST2 identifier: Original name: hyperv###
title Desktop -- openSUSE 11.3 - 2.6.36-hyperv
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.36-hyperv root=/dev/disk/by-id/ata-Virtual_HD.. (full path!)
    initrd /boot/initrd-2.6.36-hyperv

So your menu.lst should be like this:

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34.7-0.5
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-Virtual_HD... (full path!)
    initrd /boot/initrd-2.6.34.7-0.5-desktop
 
###Don't change this comment - YaST2 identifier: Original name: hyperv###
title Desktop -- openSUSE 11.3 - 2.6.36-hyperv
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.36-hyperv root=/dev/disk/by-id/ata-Virtual_HD.. (full path!)
    initrd /boot/initrd-2.6.36-hyperv
 
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34.7-0.5
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.34.7-0.5-desktop root=/dev/disk/by-id/ata-Virtual_HD.. (full path!)
    initrd /boot/initrd-2.6.34.7-0.5-desktop

That’s it. Reboot your server with new kernel. Now you can use synthetic ethernet and 4 vCPU.
Please careful to (full path!) lines, I trim full paths. You should copy full paths from your existing menu.lst source.

Also integrated shutdown is available:

You can use CPU stress tool for tests.


Comments (10)

Executando VMs não Microsoft no Hyper-V – MSVirtualization

November 9th, 2010
13:46:53

[…] Existem alguns exemplos de sistemas operacionais que suportam o IC criados por terceiros, como o IC para Debian 2.6.36, feito pelo especialista Yusuf Ozturk. […]


Executando VMs não Microsoft no Hyper-V « ıllııll Leandro Carvalho ılllıılı – MVP Virtual Machine

November 9th, 2010
13:55:51

[…] Existem alguns exemplos de sistemas operacionais que suportam o IC criados por terceiros, como o IC para Debian 2.6.36, feito pelo especialista Yusuf Ozturk. […]


Joerg

December 7th, 2010
13:21:15

Works great! Thanks!


Vladimir

March 1st, 2011
15:21:39

Thank you! How were you able to compile this kernel? Please share your experience! I tried to compile Linux Integration Services v2.1 under opensuse 11.3 , but nothing happened: (


admin

March 2nd, 2011
10:34:16

Hi Vladimir,
You don’t need to install LIC on it. Because Kernel 2.6.36 already comes with Hyper-V LIC. Just you need to apply this custom kernel. I mean you shouldn’t re-compile LIC on this custom kernel.
Yusuf.


Vladimir

March 4th, 2011
07:56:27

Hi Yusuf,
that is, I should compile a kernel from the standard sources, enabling it to support hyper-v, I understand you correctly?


admin

March 4th, 2011
21:34:39

Oh, sorry, I wrote “you should recompile LIC” instead of “you shouldn’t”..

Yes, They added Hyper-V IC directly to the new kernel sources, which are 2.6.36 and later. So logically, you don’t need to install Hyper-V LIC on a 2.6.36 kernel, because it has already that drivers.

So, what you need to do, downloading 2.6.36 kernel source, going to kernel configuration, enabling Hyper-V Client Drivers and compile kernel with hyper-v enabled configuration.

For example, if you try Ubuntu 10.10, you see it comes with Hyper-V drivers because it uses kernel 2.6.3X That means, a year later, Hyper-V will support lots of Linux distributions because They will come with >2.6.36 kernel.

Yusuf.


Vladimir

March 5th, 2011
12:00:12

Thanks!


Paulo Lellis

August 29th, 2012
22:25:49

Don’t you have an kernel-2.6.37-hyperv-opensuse.x86_64.rpm?


Dave Z

October 23rd, 2015
19:36:43

I was so excited to find this post because I’m trying to support a legacy openSUSE 11.3 system running on HyperV, currently with legacy network and 1 CPU. Unfortunately, the link for kernel-2.6.36-hyperv-opensuse.x86_64.rpm no longer seems valid. Would you still happen to have this file? Thanks so much in advance for your time and help.



Leave a Reply