Difference between revisions of "Installation on Debian/old"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (Packages at debian.systs.org (dso): update kernels)
m (Packages at debian.systs.org (dso): update)
Line 17: Line 17:
 
== Packages at debian.systs.org (dso) ==
 
== Packages at debian.systs.org (dso) ==
  
Debian Packages used for OpenVZ (i386):
+
precreated OpenVZ Debian Packages:
  
 
kernel(s): Version 022stab078.21
 
kernel(s): Version 022stab078.21
 
<pre>
 
<pre>
 +
i368:
 
  ovzkernel-2.6.8-i386
 
  ovzkernel-2.6.8-i386
 
  ovzkernel-2.6.8-i386-smp
 
  ovzkernel-2.6.8-i386-smp
 +
 +
amd64:
 +
ovzkernel-2.6.8-amd64
 +
ovzkernel-2.6.8-amd64-smp
 +
</pre>
 +
 +
kernel(s): Version 026test018.1
 +
<pre>
 +
i386:
 +
ovzkernel-2.6.16-i386
 +
ovzkernel-2.6.16-i386-smp
 +
 +
amd64:
 +
ovzkernel-2.6.16-amd64
 +
ovzkernel-2.6.16-amd64-smp
 
</pre>
 
</pre>
  
tool(s):
+
tool(s): i386 and amdd64
 
<pre>
 
<pre>
 
  vzctl
 
  vzctl
Line 31: Line 47:
 
</pre>
 
</pre>
  
template(s):
+
template(s): Debian 3.1 (minimal)
 
<pre>
 
<pre>
  vzctl-template-debian
+
i386:
 +
  vzctl-ostmpl-debian
 +
 
 +
amd64:
 +
vzctl-ostmpl-debian
 
</pre>
 
</pre>
  

Revision as of 19:27, 12 October 2006

Stable

Edit apt settings

add to your "/etc/apt/sources.list"

 deb http://debian.systs.org/ stable openvz

and get the new package lists

# apt-get update

Packages at debian.systs.org (dso)

precreated OpenVZ Debian Packages:

kernel(s): Version 022stab078.21

 i368:
 ovzkernel-2.6.8-i386
 ovzkernel-2.6.8-i386-smp

 amd64:
 ovzkernel-2.6.8-amd64
 ovzkernel-2.6.8-amd64-smp

kernel(s): Version 026test018.1

 i386:
 ovzkernel-2.6.16-i386
 ovzkernel-2.6.16-i386-smp

 amd64:
 ovzkernel-2.6.16-amd64
 ovzkernel-2.6.16-amd64-smp

tool(s): i386 and amdd64

 vzctl
 vzquota

template(s): Debian 3.1 (minimal)

 i386:
 vzctl-ostmpl-debian

 amd64:
 vzctl-ostmpl-debian

Installing the utilities and kernels

Example:

# aptitude install kernel-image-2.6.8-stable-ovz vzctl vzquota vzctl-template-debian

Maybe you need to update you "linux-loader" like lilo or grub:

for the "GRUB":

# /sbin/grub-update

Reboot in your new Debian Stable OpenVZ System

# reboot

That's all :-)

Unstable

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 xjf linux-2.6.16.tar.bz2
cd linux-2.6.16

(Note that you do need a vanilla kernel for this, because the OpenVZ kernel patch doesn't apply cleanly to the Debian linux-source-2.6.16 package; see Debian bug #377707.)

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
Yellowpin.svg Note: This example uses a config file for the 026test015 kernel patch. If the kernel-patch-openvz package you installed is a different version, download a config file that corresponds with your version

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

make-kpkg --added_patches openvz