Changes

Jump to: navigation, search

Installation on Debian 8

801 bytes removed, 09:44, 13 July 2017
Improvements from Debian 9, better for Devuan
This document briefly describes the steps needed is a guide to install OpenVZ 6 (legacy) on your Debian 8 "Jessie" (amd64 or i386) machine. Consider [https://wwwen.devuanwikipedia.org/wiki/ Devuan GNU+Linux Devuan 1.0"Jessie"] for complete integration without Systemdor Debian 8 "Jessie" machine (both amd64 or i386).
{{Out|Current commercial version of OpenVZ ([[Virtuozzo]] 7) is not installable on Devuan or Debian GNU/Linux because is developed as an independent GNU/Linux distribution}}
== Partitions '''Volumes and /vz file system =systems''' =
* It is recommended to use a separate partition for containers (by default '''/var/lib/vz''') and format it to '''ext4'''.
* btrfs mounted filesystems cannot be formatted with modern features as: mixed-bg, extref, skinny-metadata, no-holes. If used for containers, vzquota will not work to control containers disk space([[Installation on Debian 9#btrfs|More details]]).
== '''Change Systemd to SystemV =''' ='''Only needed for Debian''' (Not needed on Devuan OSalready works with SystemV by default){{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 reboot sudo apt-get -auto-remove remove systemd echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' | sudo tee /etc/apt/preferences.d/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
{{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.}}
{{Note|For more info about Debian repositories, see http://download.openvz.org/debian.}}
== '''Install packages =''' =
KPackage="linux-image-openvz-$(dpkg --print-architecture)"
VE_STOP_MODE=stop
== sysctl == There are a number of kernel parameters that should be set for '''Reboot into OpenVZ to work correctly. These parameters are stored in <tt>/etc/sysctl.conf</tt> file. Here are the relevant portions of the file; please edit accordingly. <pre># On Hardware Node we generally need# packet forwarding enabled and proxy arp disablednet.ipv4.ip_forward = 1net.ipv6.conf.default.forwarding = 1net.ipv6.conf.all.forwarding = 1net.ipv4.conf.default.proxy_arp = 0 # Enables source route verificationnet.ipv4.conf.all.rp_filter = 1 # Enables the magic-sysrq keykernel.sysrq = 1 # We do not want all our interfaces to send redirectsnet.ipv4.conf.default.send_redirects = 1net.ipv4.conf.all.send_redirects ''' = 0</pre>
== Help the project == This is an OpenVZ component you can install to gather OpenVZ usage and hardware statistics{{Note|At boot manager, in order to improve "Advanced options for Devuan GNU+Linux", you will find kernels named "2.6.32-openvz". Select the projectfirst listed sudo apt-get install vzstats == Reboot into OpenVZ kernel ==}}
sudo reboot
{{Note|If you don't see a boot manager entry with word "'''openvz'''", you must choose "'''Advanced options'''" to select there first ''openvz'' listed kernel.}} Check that the OpenVZ processes are running:
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
== Download OS templates ==
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
Alternatively, you can also download precreated template caches from [http://openvz.org/download[Download/template/cache Downloads precreated|Download » Templates 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.
== Next steps ==
OpenVZ is now set up on your machine. Follow on to [[basic operations in OpenVZ environment]] document.
== See also ==* [[Installation on Debian 7]] very-old-stable (Wheezy, SystemV by default, supported)
* [[Installation on Debian 9]]
[[Category: HOWTO]]
[[Category: Debian]]
[[Category: Devuan]]
92
edits

Navigation menu