Posted in
Linux Server |
10 Comments | 18,132 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 |
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 |
###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 |
###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 |
###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.