Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Installation on Debian 8

235 bytes removed, 09:25, 28 January 2020
Download OS templates: ctcreate to ctctl
# Must boot with SystemV to release Systemd
sudo reboot
sudo apt-get --autoremove remove systemd sudo apt-get autoremove
echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' | sudo tee /etc/apt/preferences.d/avoid-systemd
VE_STOP_MODE=stop
== Patch VarLock directory creation ==This is necessary to vzeventd works on boot, because it doesn't automatically create VARLOCK directory on startup: Lines="$(cat /etc/init.d/vzeventd | grep -e '#.*INIT INFO' -ie '# .*ProvidesOnly Devuan:' -ie '^# .*-St')"link to be recognised as Debian Lines="$(echo "$Lines" | sed if [ -e 's|vzeventd$|vzevent_pre|g' | sed -e 's| vz$| vzeventd|g')" echo "$Lines" | sudo tee f /etc/init.d/vzevent_pre echo 'mkdir -p /var/lock/subsys' | devuan_version ] ; then sudo tee ln -a s /etc/init.d/vzevent_pre sudo chmod +x devuan_version /etc/init.d/vzevent_pre sudo insserv --default vzevent_predebian_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)
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