Difference between revisions of "Install kernel from RPM on Debian 6.0"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(created)
Line 1: Line 1:
You can use latest RHEL6-based kernel builds on your Debian or Ubuntu machine. Here's how.
+
You can use the latest RHEL6-based kernel builds on your Debian 6.0 machine. Here's how.
  
 
== Installation ==
 
== Installation ==
1. Get the latest kernel from either [[Download/kernel/rhel6-testing]] or [[Download/kernel/rhel6]]. You need <code>vzkernel</code> and <code>vzkernel-devel</code> packages only, with the <code>-devel</code> being optional.
+
1. Get the latest kernel and utils from [[Download/kernel/rhel6]] and [[Download/utils]]. You need  
 +
* vzkernel
 +
* vzkernel-devel
 +
* vzctl
 +
* vzctl-lib
 +
* vzquota
 +
<code>vzkernel-devel</code> is optional.
  
2. Install fakeroot and alien:
+
2. Install fakeroot and alien.
  apt-get install alien fakeroot
+
  apt-get install fakeroot alien
  
3. Convert these two rpms to debs using alien. This is
+
3. Convert all the RPMs to debs using alien.
  fakeroot alien --to-deb --scripts --keep-version vzkernel-*.rpm
+
  fakeroot alien --to-deb --scripts --keep-version vz*.rpm
  
4. Install debs as usual. Reboot. Enjoy.
+
4. Install debs.
  dpkg -i vzkernel*.deb
+
  dpkg -i vz*.deb
 +
 
 +
5. Modify <code>/boot/grub/menu.lst</code>. See “configuring the bootloader” of [[Quick installation]].
 +
 
 +
6. Edit <code>/etc/sysctl.conf</code>. See “sysctl” of [[Quick installation]].
 +
 
 +
7. Make OpenVZ boots automatically.
 +
update-rc.d vz defaults
 +
 
 +
8. Reboot.
 +
reboot
 +
 
 +
9. Follow the [[Quick installation]] from “installing OS template caches”.
  
 
[[Category: HOWTO]]
 
[[Category: HOWTO]]

Revision as of 09:08, 5 February 2012

You can use the latest RHEL6-based kernel builds on your Debian 6.0 machine. Here's how.

Installation

1. Get the latest kernel and utils from Download/kernel/rhel6 and Download/utils. You need

  • vzkernel
  • vzkernel-devel
  • vzctl
  • vzctl-lib
  • vzquota

vzkernel-devel is optional.

2. Install fakeroot and alien.

apt-get install fakeroot alien

3. Convert all the RPMs to debs using alien.

fakeroot alien --to-deb --scripts --keep-version vz*.rpm

4. Install debs.

dpkg -i vz*.deb

5. Modify /boot/grub/menu.lst. See “configuring the bootloader” of Quick installation.

6. Edit /etc/sysctl.conf. See “sysctl” of Quick installation.

7. Make OpenVZ boots automatically.

update-rc.d vz defaults

8. Reboot.

reboot

9. Follow the Quick installation from “installing OS template caches”.