Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Installation on Debian 9

352 bytes removed, 09:25, 28 January 2020
Download OS templates: ctcreate to ctctl
* Optionally you can set containers completely stop when service stops at /etc/vz/vz.conf
VE_STOP_MODE=stop
 
== Patch VarLock directory creation ==
This is necessary to vzeventd works on boot, due to it doesn't automatically create VARLOCK directory on startup:
Lines="$(cat /etc/init.d/vzeventd | grep -e '#.*INIT INFO' -ie '# .*Provides:' -ie '^# .*-St')"
Lines="$(echo "$Lines" | sed -e 's|vzeventd$|vzevent_pre|g' | sed -e 's| vz$| vzeventd|g')"
echo "$Lines" | sudo tee /etc/init.d/vzevent_pre
echo 'mkdir -p /var/lock/subsys' | sudo tee -a /etc/init.d/vzevent_pre
sudo chmod +x /etc/init.d/vzevent_pre
sudo insserv --default vzevent_pre
= '''Reboot into OpenVZ kernel''' =
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