92
edits
Changes
→Download OS templates: ctcreate to ctctl
This document briefly describes the steps needed is a guide to install OpenVZ 6 (legacy) on your [https://en.wikipedia.org/wiki/Devuan Devuan 1 "Jessie"] or Debian 8 "Jessie" machine. For RHEL/Centos 6 based systems, please see [[Quick installation]](both amd64 or i386).
{{Out|A Current commercial version of OpenVZ ([[Virtuozzo]] 7) is available, which simplifies installation with a single disk not installable on Devuan or Debian because is developed as well as supports networked installation using PXE boot. To learn more about Parallels Cloud Server and request a free trial, please see http://www.parallels.com/products/pcsan independent GNU/Linux distribution}}
== Requirements ='''Volumes and file systems''' =
== Partitions and /vz file system ='''Change Systemd to SystemV''' = It is recommended to use a separate partition for containers (by default '''/var/lib/vzOnly needed for Debian'''(Devuan already works with SystemV by default) and format it to . '''ext4Warning:'''. == Change Systemd to SystemV == {{Note|[https://lists.openvz.org/pipermail/users/2017-July/007290.html As of OpenVZ 042stab123.9 is not booting with Systemd].}}{{Note|Warning! This operation can make some desktop software to stop working, such as desktop environments.}}
sudo apt-get install sysvinit-core sysvinit-utils
# Must boot with SystemV to release Systemd sudo cp reboot sudo apt-get --autoremove remove systemd echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' | sudo tee /usr/shareetc/sysvinitapt/inittab /etcpreferences.d/inittabavoid-systemd
* Other More recipes at [http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation without-systemd.org]
== '''Register OVZ updated repository =''' =
RepoFile=/etc/apt/sources.list.d/openvz.list
RepoUrl=http://download.openvz.org/debian
echo "deb $RepoUrl jessie main" | sudo tee "$RepoFile"
echo "#deb $RepoUrl jessie-test main" | sudo tee -a "$RepoFile"
echo "deb $RepoUrl wheezy main" | sudo tee -a "$RepoFile"
wget -qO - http://ftp.openvz.org/debian/archive.key | sudo apt-key add -
{{Note|The second line with jessie-test is commented out. This is a testing repo with newer kernels and possibly tools. Enable it if you want to stay on a bleeding edge of technology.}}
== '''Install packages =''' =
KPackage="linux-image-openvz-$(dpkg --print-architecture)"
VE_STOP_MODE=stop
sudo reboot
sudo ps ax | grep -v 'grep' | grep 'vzmond'
== Set OpenVZ as default to boot ==
Because of GRUB2 default criteria, default kernel to boot can still be the one from DebianDevuan's repository (non OVZ). If Probably you don't want to change this behaviour, ; once you've booted fine into OpenVZ kernel, you can remove other unuseful kernels:
Packages="$(aptitude search ~i~nlinux-image- --display-format '%p' | grep -ve 'openvz')"
sudo apt-get --autoremove remove $Packages sudo apt-get autoremove(requires aptitude)
This step is optional, vzctl is able to download templates on demand.
An OS template is a GNU distribution for Linux distribution , installed into a container
and then packed into a gzipped tarball. Using such a cache, a new container
can be created in a minute.
sudo vztmpl-dl --gpg-check debian-8.0-x86_64-minimal
OpenVZ is now set up on your machine. Follow on to [[basic operations in OpenVZ environment]] document.
[[Category: Installation]]
[[Category: HOWTO]]
[[Category: Debian]]
[[Category: Devuan]]