Changes

Jump to: navigation, search

Installation on Debian/old

2,829 bytes removed, 18:03, 1 May 2010
Requirements
For Etch users, this document explain how to partialy upgrade to Debian Lenny and install from lenny repositories ('''use this options at your risk''').
 
== Requirements ==
 
=== Filesystems ===
It is recommended to use a separate partition for container private
directories (by default <code>/var/lib/vz/private/<CTID></code>). The reason why you should do so is that if you wish to use OpenVZ per-container disk quota, you won't be able to use usual Linux disk quotas on the same partition. Bear in mind that per-container quota in this context includes not only pure per-container quota but also usual Linux disk quota used in container, not on [[HN]].
 
At least try to avoid using root partition for containers because the root user of container will be able to overcome the 5% disk space barrier in some situations. If the HN root partition is completely filled, it will break the system.
 
OpenVZ per-container disk quota is supported only for ext2/ext3 filesystems so use one of these filesystems (ext3 is recommended) if you need per-container disk quota.
 
=== Repository setup (Etch only) ===
 
'''If you are using Debian Lenny, this step in no longer required. Openvz kernel packages and tools are available on main repository.'''
 
==== 1. Using openvz.org repositories ====
 
At the moment two different repositories are online at http://download.openvz.org:
 
; by Ola Lundqvist <opal@debian.org>
: (OpenVZ kernels only)
: apt-uri http://download.openvz.org/debian
 
; by Thorsten Schifferdecker <tsd@debian.systs.org>
: apt-uri http://download.openvz.org/debian-systs
: (Mirror of OpenVZ Repository from http://debian.systs.org/)
 
{{Note|The next steps use the repository at http://download.openvz.org/debian-systs; the actual OpenVZ Tools for Debian exist only as unstable builds, see http://packages.debian.org/vzctl}}
 
{{Note|By default, on Ubuntu systems root tasks are executed with [https://help.ubuntu.com/community/RootSudo sudo]}}
 
This can be achieved by the following commands, as root or as privileged "sudo" user
<pre>
# echo -e "\ndeb http://download.openvz.org/debian-systs etch openvz" >> /etc/apt/sources.list
# wget -q http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc -O- | apt-key add - && apt-get update
</pre>
 
==== 2. Using Debian repositories (upgrade to lenny) ====
 
There is even an '''lenny''' repository with kernel 2.6.28. '''Use it at your own risk!'''
 
Add lenny repositories to your '''/etc/apt/sources.list'''
<pre>
deb http://DEBIAN-MIRROR/debian/ testing main
deb http://DEBIAN-MIRROR/debian-security/ testing/updates main
</pre>
 
Enlarge apt-cache adding to '''/etc/apt/apt.conf''' this line:
<pre>
APT::Cache-Limit "100000000";
</pre>
 
Give etch package priority over lenny packages. Edit '''/etc/apt/preferences''' and set like this:
<pre>
Package: *
Pin: release a=etch
Pin-Priority: 700
 
Package: *
Pin: release a=lenny
Pin-Priority: 650
</pre>
 
Then '''apt-get update && apt-get dist-upgrade''' to upgrade to lenny.
== Kernel installation ==
Anonymous user

Navigation menu