Difference between revisions of "Installation on Debian/old"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (fixed a link)
m (distro -> repo)
Line 1: Line 1:
OpenVZ is now a part of Debian Sid (a.k.a. "unstable") distribution. This article describes how to install OpenVZ on a Debian Sid system.
+
OpenVZ is now a part of Debian Sid (a.k.a. "unstable") repository. This article describes how to install OpenVZ on a Debian Sid system.
  
 
== Installing the utilities and kernel patch ==
 
== Installing the utilities and kernel patch ==

Revision as of 12:40, 12 July 2006

OpenVZ is now a part of Debian Sid (a.k.a. "unstable") repository. This article describes how to install OpenVZ on a Debian Sid system.

Installing the utilities and kernel patch

To install OpenVZ utilities, run the following:

apt-get update
apt-get install kernel-patch-openvz

Utilities will be installed since kernel-patch requires them.

Creating the kernel package

To create a kernel package, you need to download and unpack 2.6.16 “vanilla” kernel first:

cd /usr/src/
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
tar cjf linux-2.6.16.tar.bz2
cd linux-2.6.16

Next, get the proper kernel config from download.openvz.org. Below is the example of using smp config for i686:

wget http://download.openvz.org/kernel/devel/026test015.1/configs/kernel-2.6.16-026test015-i686-smp.config.ovz
mv kernel-2.6.16-026test015-i686-smp.config.ovz .config

{{Note|example shows getting the config for 026test015 kernel. If you have a different kernel (kernel-patch-openvz), choose the corresponding config.}

Now you can apply openvz kernel patch and compile the kernel:

make-kpkg --added_patches openvz