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

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Added ploop, because it seems to be required by vzctl)
Line 16: Line 16:
 
3. Convert all the RPMs to debs using alien.
 
3. Convert all the RPMs to debs using alien.
 
  fakeroot alien --to-deb --scripts --keep-version vz*.rpm
 
  fakeroot alien --to-deb --scripts --keep-version vz*.rpm
 +
fakeroot alien --to-deb --scripts --keep-version ploop*.rpm
  
 
4. Install debs.
 
4. Install debs.
 
  dpkg -i vz*.deb
 
  dpkg -i vz*.deb
 +
dpkg -i ploop*.deb
 
If you're having problem about overwriting files from other packages, try dpkg -i --force-overwrite vz*.deb
 
If you're having problem about overwriting files from other packages, try dpkg -i --force-overwrite vz*.deb
  

Revision as of 06:46, 25 May 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 (or Download/kernel/rhel6-testing) and Download/utils. You need

  • vzkernel
  • vzkernel-devel
  • vzctl
  • vzctl-lib
  • ploop
  • 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
fakeroot alien --to-deb --scripts --keep-version ploop*.rpm 

4. Install debs.

dpkg -i vz*.deb
dpkg -i ploop*.deb

If you're having problem about overwriting files from other packages, try dpkg -i --force-overwrite 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
update-rc.d vzeventd defaults

8. Reboot.

reboot

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

10. See also Common Networking HOWTOs.