Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Installation on Debian 8

356 bytes added, 09:25, 28 January 2020
Download OS templates: ctcreate to ctctl
'''Only needed for Debian''' (Devuan already works with SystemV by default). '''Warning:''' This operation can make some desktop software to stop working.
sudo apt -get install sysvinit-core sysvinit-utils
# Must boot with SystemV to release Systemd
sudo reboot
sudo apt -get -auto-remove autoremove remove systemd echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' | sudo tee /etc/apt/preferences.d/avoid-systemd
* More recipes at [http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation without-systemd.org]
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 -
* Optionally you can set containers completely stop when service stops at /etc/vz/vz.conf
VE_STOP_MODE=stop
 
* Only Devuan: link to be recognised as Debian
if [ -f /etc/devuan_version ] ; then sudo ln -s /etc/devuan_version /etc/debian_version ; fi
= '''Reboot into OpenVZ kernel''' =
Packages="$(aptitude search ~i~nlinux-image- --display-format '%p' | grep -ve 'openvz')"
sudo apt-get --autoremove remove $Packages sudo apt-get autoremove(requires aptitude)
= Download OS templates =
sudo vztmpl-dl --gpg-check debian-8.0-x86_64-minimal
Alternatively, you can also download Alternatives:* Download precreated template caches from [[Download/template/precreated|Download » Template » Precreated]], or from one of the [https://mirrors.openvz.org/ mirrors]. Put those tarballs '''as-is (no unpacking needed)''' to the <tt>/vz/template/cache/</tt> directory.* '''[https://downloads.actiu.net/ctctl/ ctctl]''' helper to create Debian (or derivative) container without template (caches it as a local template). This tool manages unprivileged LXC containers too.
= Next steps =
92
edits