Difference between revisions of "Installation on Debian/old"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (distro -> repo)
m (Installing the utilities and kernel patch)
Line 3: Line 3:
 
== Installing the utilities and kernel patch ==
 
== Installing the utilities and kernel patch ==
  
To install OpenVZ utilities, run the following:
+
To install the OpenVZ kernel patch and utilities, run the following:
 
<pre>
 
<pre>
 
apt-get update
 
apt-get update
apt-get install kernel-patch-openvz
+
apt-get install kernel-patch-openvz vzctl vzquota
 
</pre>
 
</pre>
 
Utilities will be installed since kernel-patch requires them.
 
  
 
== Creating the kernel package ==
 
== Creating the kernel package ==

Revision as of 19:34, 14 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 the OpenVZ kernel patch and utilities, run the following:

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

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