Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Installation on Debian/old

20 bytes added, 09:32, 24 March 2008
VE, VPS -> container; removed double empty lines; links to this wiki converted to internal style; some spelling fixes
OpenVZ consists of a kernel, user-level tools, and VE container templates.
This guide tells how to install the kernel and the tools on [http://www.debian.org Debian] Stable.
=== Filesystems ===
It is recommended to use a separate partition for VE container private directories (by default /var/lib/vz/private/<veid>). The reason why you should do so is that if you wish to use OpenVZ per-VE container disk quota, you won't be able to use usual Linux disk quotas on the same partition. Bear in mind that per-VE container quota in this context includes not only pure per-VE container quota but also usual Linux disk quota used in VEcontainer, not on [[HN]].
At least try to avoid using root partition for VEs containers because the root user of VE 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-VE container disk quota is supported only for ext2/ext3 filesystems so use one of these filesystems (ext3 is recommended) if you need per-VE container disk quota.
=== Repository setup ===
At the moment two different repositories are online at http://download.openvz.org :
* by Ola Lundqvist <opal@debian.org>
{| class="wikitable"
|+'''OpenVZ Kernel list built with kernel config from http://download.openvz.org'''
! kernel Kernel !! Description !! Hardware !! Debian ArchitekturArchitecture
|-
! ovzkernel-2.6.18
{| class="wikitable"
|+'''OpenVZ Kernel list built with official Debian kernel config and OpenVZ Settings'''
! kernel Kernel !! Description !! Hardware !! Debian ArchitekturArchitecture
|-
! fzakernel-2.6.18-686
# apt-get install <kernel>
</pre>
 
=== Configuring the bootloader ===
Now reboot the machine and choose the OpenVZ Linux Kernel on the boot loader menu. If the OpenVZ kernel has been booted successfully, proceed to installing the user-level tools for OpenVZ.
 
== Installing the user-level tools ==
; vzctl
: A utility to control OpenVZ VPSs containers (create, destroy, start, stop, set parameters etc.)
; vzquota
: A utility to manage quotas for VPSscontainers. Mostly used indirectly (by vzctl). 
<pre>
# [sudo] apt-get install vzctl vzquota
</pre>
 
== Configuring ==
# [sudo] sysctl -p
{{Note|You can make a symlink from /var/lib/vz to /vz as backward
compatibility to OpenVZ as installed in other distributions
(Debian vz root directory is /var/lib/vz to be FHS-compliant.}}
{{Note|You can make a symlink from # [sudo] ln -s /var/lib/vz to /vz as backward compability to Main OpenVZ (Debian vz root directory is installed FHS-like to /var/lib/vz}}
# [sudo] ln -s /var/lib/vz /vz === OS templates ===
To install a container, you need OS template(s).
=== VE OS Templates ===Precreated templates can be found [http://download.openvz.org/contrib/template/precreated/ here].
To install a VEYou can create your own templates, you need VE OS Template(s), precreated can be found see [[http://download.openvz.org/contrib/Debian template/precreated/ herecreation] or create it : [http://wiki.openvz.org/Debian_template_creation Debian] , [http://wiki.openvz.org/Ubuntu_Gutsy_template_creation ubuntu[Ubuntu Gutsy template creation] and all infos about [http://wiki.openvz.org/[Category:Templates Templates]].
{{Note|Setup your prefered standard OS Template : edit the /etc/vz/vz.conf}}
# [sudo] apt-get install vzctl-ostmpl-debian
 
== Additional User Tools ==
; vzprocps
: A set of utilities to provide system information (vzps and vztop)
:; [http://wiki.openvz.org/Backup_of_a_running_VE_with_vzdump [Backup_of_a_running_container_with_vzdump vzdump]]: A utility to backup and restore VEcontainer.
# [sudo] apt-get install vzprocps vzdump
== Use it! ==
After installing the OpenVZ kernel, user tools and a Minimal VE minimal OS Template templateto create a first VE container and do some [[Basic basic operations in OpenVZ environment]] and read . Read the [[download:doc/OpenVZ-Users-Guide.pdf|doc/OpenVZ-Users-Guide.pdf]] and , browse this wiki. 
[[Category: HOWTO]]
[[Category: Debian]]
[[Category: Installation]]