<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Votsalo</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Votsalo"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Votsalo"/>
	<updated>2026-05-20T18:47:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Installation_on_Debian/old&amp;diff=12681</id>
		<title>Installation on Debian/old</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Installation_on_Debian/old&amp;diff=12681"/>
		<updated>2012-07-21T12:12:00Z</updated>

		<summary type="html">&lt;p&gt;Votsalo: Added Squeeze.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ consists of a kernel, user-level tools, and container templates.&lt;br /&gt;
&lt;br /&gt;
This guide tells how to install the kernel and the tools on [http://www.debian.org Debian] Etch or Lenny/Squeeze. &lt;br /&gt;
&lt;br /&gt;
For Squeeze, use the Lenny directions.&lt;br /&gt;
&lt;br /&gt;
For Etch users, this document explains how to partially upgrade to Debian Lenny and install from lenny repositories ('''use this options at your risk''').&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
=== Filesystems ===&lt;br /&gt;
It's recommended that you use a separate partition for container private&lt;br /&gt;
directories (by default &amp;lt;code&amp;gt;/var/lib/vz/private/&amp;lt;CTID&amp;gt;&amp;lt;/code&amp;gt;). The reason for this is that if you wish to use the OpenVZ per-container disk quota, you won't be able to use usual Linux disk quotas on the same partition. Bear in mind that &amp;quot;per-container quota&amp;quot; in this context includes not only pure per-container quota but also the usual Linux disk quota used in container, not on the [[HN]].&lt;br /&gt;
&lt;br /&gt;
At the very least try to avoid using the root partition for containers, because the root user of a container will be able to overcome the 5% disk space barrier in some situations. If the HN root partition is completely filled, it will break the system.&lt;br /&gt;
&lt;br /&gt;
OpenVZ per-container disk quota is supported only for ext2/ext3 filesystems; therefore it makes sense to use one of these filesystems (ext3 is recommended) if you need per-container disk quota.&lt;br /&gt;
&lt;br /&gt;
=== Repository setup (Etch only) ===&lt;br /&gt;
&lt;br /&gt;
'''If you are using Debian Lenny, this step in no longer required. Openvz kernel packages and tools are available on main repository.'''&lt;br /&gt;
&lt;br /&gt;
==== 1. Using openvz.org repositories ====&lt;br /&gt;
&lt;br /&gt;
At the moment two different repositories are online at http://download.openvz.org:&lt;br /&gt;
&lt;br /&gt;
; by Ola Lundqvist &amp;lt;opal@debian.org&amp;gt;&lt;br /&gt;
: (OpenVZ kernels only)&lt;br /&gt;
: apt-uri http://download.openvz.org/debian&lt;br /&gt;
&lt;br /&gt;
; by Thorsten Schifferdecker &amp;lt;tsd@debian.systs.org&amp;gt;&lt;br /&gt;
: apt-uri http://download.openvz.org/debian-systs&lt;br /&gt;
: (Mirror of OpenVZ Repository from http://debian.systs.org/)&lt;br /&gt;
&lt;br /&gt;
{{Note|The next steps use the repository at http://download.openvz.org/debian-systs; the actual OpenVZ Tools for Debian exist only as unstable builds, see http://packages.debian.org/vzctl}}&lt;br /&gt;
&lt;br /&gt;
{{Note|By default, on Ubuntu systems root tasks are executed with [https://help.ubuntu.com/community/RootSudo sudo]}}&lt;br /&gt;
&lt;br /&gt;
This can be done via the following commands, as root or as privileged &amp;quot;sudo&amp;quot; user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# echo -e &amp;quot;\ndeb http://download.openvz.org/debian-systs etch openvz&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
# wget -q http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc -O- | apt-key add - &amp;amp;&amp;amp; apt-get update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2. Using Debian repositories (upgrade to lenny) ====&lt;br /&gt;
&lt;br /&gt;
There is even a '''lenny''' repository with kernel 2.6.28. '''Use it at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
Add lenny repositories to your '''/etc/apt/sources.list'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://DEBIAN-MIRROR/debian/ testing main&lt;br /&gt;
deb http://DEBIAN-MIRROR/debian-security/ testing/updates main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enlarge apt-cache adding to '''/etc/apt/apt.conf''' this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
APT::Cache-Limit &amp;quot;100000000&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Give etch package priority over lenny packages. Edit '''/etc/apt/preferences''' and set like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Package: *&lt;br /&gt;
Pin: release a=etch&lt;br /&gt;
Pin-Priority: 700&lt;br /&gt;
&lt;br /&gt;
Package: *&lt;br /&gt;
Pin: release a=lenny&lt;br /&gt;
Pin-Priority: 650&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then '''apt-get update &amp;amp;&amp;amp; apt-get dist-upgrade''' to upgrade to lenny.&lt;br /&gt;
&lt;br /&gt;
== Kernel installation ==&lt;br /&gt;
''How about Wheezy?''&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; Use KVM ;-)&lt;br /&gt;
&lt;br /&gt;
===  Lenny ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aptitude install linux-image-openvz-686&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
this command will install latest kernel and all required packages and will arrange grub bootloader accordingly.&lt;br /&gt;
&lt;br /&gt;
=== Etch ===&lt;br /&gt;
&lt;br /&gt;
==== 1. Using openvz kernel repositories ====&lt;br /&gt;
&lt;br /&gt;
{{Note|In case you want to recompile the OpenVZ kernel yourself on Debian, see [[Compiling the OpenVZ kernel (the Debian way)]].}}&lt;br /&gt;
&lt;br /&gt;
First, you need to choose what kernel you want to install.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+'''OpenVZ Kernel list built with kernel config from http://download.openvz.org'''&lt;br /&gt;
! Kernel !! Description !! Hardware !! Debian Architecture&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18&lt;br /&gt;
| uniprocessor&lt;br /&gt;
| up to 4GB of RAM&lt;br /&gt;
| i386 and amd64&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18-smp&lt;br /&gt;
| symmetric multiprocessor&lt;br /&gt;
| up to 4 GB of RAM&lt;br /&gt;
| i386 and amd64&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18-enterprise&lt;br /&gt;
| SMP + PAE support + 4/4GB split&lt;br /&gt;
| up to 64 GB of RAM&lt;br /&gt;
| i386 only&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+'''OpenVZ Kernel list built with official Debian kernel config and OpenVZ Settings'''&lt;br /&gt;
! Kernel !! Description !! Hardware !! Debian Architecture&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-686&lt;br /&gt;
| uni- and multiprocessor&lt;br /&gt;
| up to 4GB of RAM&lt;br /&gt;
| i386&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-686-bigmem&lt;br /&gt;
| symmetric multiprocessor&lt;br /&gt;
| up to 64 GB of RAM&lt;br /&gt;
| i386&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-amd64&lt;br /&gt;
| uni- and multiprocessor&lt;br /&gt;
| &lt;br /&gt;
| amd64&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # apt-get install &amp;lt;kernel&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Configuring the bootloader =====&lt;br /&gt;
&lt;br /&gt;
In case GRUB is used as the boot loader, it will be configured automatically, or execute update-grub; lines similar to these will be added to the &amp;lt;tt&amp;gt;/boot/grub/menu.lst&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]&lt;br /&gt;
  title           Debian GNU/Linux, kernel 2.6.18-ovz-028stab051.1-686&lt;br /&gt;
  root            (hd0,1)&lt;br /&gt;
  kernel          /vmlinuz-2.6.18-ovz-028stab051.1-686 root=/dev/sda5 ro vga=791&lt;br /&gt;
  initrd          /initrd.img-2.6.18-ovz-028stab051.1-686&lt;br /&gt;
  savedefault&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|per default on debian/ubuntu, a 2.6.22 kernel will boot before a 2.6.18, please check manually the grub boot order. See man update-grub for more details}}&lt;br /&gt;
&lt;br /&gt;
===== Installing the user-level tools =====&lt;br /&gt;
&lt;br /&gt;
OpenVZ needs some user-level tools installed. Those are:&lt;br /&gt;
&lt;br /&gt;
; vzctl&lt;br /&gt;
: A utility to control OpenVZ containers (create, destroy, start, stop, set parameters etc.)&lt;br /&gt;
; vzquota&lt;br /&gt;
: A utility to manage quotas for containers. Mostly used indirectly (by vzctl).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # [sudo] apt-get install vzctl vzquota&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== 2 Using Debian lenny repositories ====&lt;br /&gt;
&lt;br /&gt;
If you upgrade to lenny, you can search openvz kernel and can install with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install linux-image-openvz-686&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
this command will install latest kernel and all required packages like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install iproute libatm1 linux-image-2.6.26-1-openvz-686 linux-image-openvz-686 rsync vzctl vzquota&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and will arrange grub bootloader properly.&lt;br /&gt;
&lt;br /&gt;
=== Rebooting into OpenVZ kernel ===&lt;br /&gt;
&lt;br /&gt;
{{Warning|Before you restart your Server, verify that your system has all needed modules enabled in order to boot your harddisk (e.g. hardware modules, raid system(s), lvm2 etc). You may need an INITRD (initramdisk) or to compile needed kernel modules statically.}}&lt;br /&gt;
&lt;br /&gt;
Now reboot the machine and choose the OpenVZ Linux Kernel on the boot loader menu. If the OpenVZ kernel has been booted successfully, proceed to installing the user-level tools for OpenVZ.&lt;br /&gt;
&lt;br /&gt;
=== Confirm proper installation ===&lt;br /&gt;
&lt;br /&gt;
1. Kernel:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # uname -r&lt;br /&gt;
 2.6.26-1-openvz-686&lt;br /&gt;
 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Openvz kernel facility:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # ps ax | grep vz&lt;br /&gt;
 2349 ?        S      0:00 [vzmond]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. A network interface for containers:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # ifconfig&lt;br /&gt;
 venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  &lt;br /&gt;
           UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1&lt;br /&gt;
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
           collisions:0 txqueuelen:0 &lt;br /&gt;
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuring ==&lt;br /&gt;
&lt;br /&gt;
=== sysctl ===&lt;br /&gt;
&lt;br /&gt;
There are a number of kernel parameters that should be set for OpenVZ to work correctly. These parameters are stored in &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; file. Here is the relevant part of the file; please edit it accordingly.&lt;br /&gt;
&lt;br /&gt;
{{Note|vzctl version from debian-systs, automatically inserts these options at the last of &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt;, except for net.ipv4.ip_forward}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]&lt;br /&gt;
&lt;br /&gt;
# On Hardware Node we generally need&lt;br /&gt;
# packet forwarding enabled and proxy arp disabled&lt;br /&gt;
&lt;br /&gt;
net.ipv4.conf.default.forwarding=1&lt;br /&gt;
net.ipv4.conf.default.proxy_arp=0&lt;br /&gt;
net.ipv4.ip_forward=1&lt;br /&gt;
&lt;br /&gt;
# Enables source route verification&lt;br /&gt;
net.ipv4.conf.all.rp_filter=1&lt;br /&gt;
&lt;br /&gt;
# Enables the magic-sysrq key&lt;br /&gt;
kernel.sysrq=1&lt;br /&gt;
&lt;br /&gt;
# TCP Explict Congestion Notification&lt;br /&gt;
#net.ipv4.tcp_ecn=0&lt;br /&gt;
&lt;br /&gt;
# we do not want all our interfaces to send redirects&lt;br /&gt;
net.ipv4.conf.default.send_redirects=1&lt;br /&gt;
net.ipv4.conf.all.send_redirects=0&lt;br /&gt;
&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  # [sudo] sysctl -p&lt;br /&gt;
&lt;br /&gt;
{{Note|You can make a symlink from /var/lib/vz to /vz as backward&lt;br /&gt;
compatibility to OpenVZ as installed in other distributions&lt;br /&gt;
(Debian vz root directory is /var/lib/vz to be FHS-compliant.}}&lt;br /&gt;
&lt;br /&gt;
  # [sudo] ln -s /var/lib/vz /vz&lt;br /&gt;
&lt;br /&gt;
=== OS templates ===&lt;br /&gt;
&lt;br /&gt;
{{Note|Support of OS templates on 64 bit hosts is somewhat limited for the time being, so that not all tools or features are available - please see [[Making template tools to work on x86_64]] and [[Install OpenVZ on a x86 64 system Centos-Fedora]] for additional details and information on possible workarounds}}&lt;br /&gt;
&lt;br /&gt;
To install a container, you need OS template(s).&lt;br /&gt;
&lt;br /&gt;
Precreated templates can be found [http://wiki.openvz.org/Download/template/precreated here] and [http://download.openvz.org/contrib/template/precreated/ here].&lt;br /&gt;
&lt;br /&gt;
You can create your own templates, see &lt;br /&gt;
[[Debian template creation]], [[Ubuntu Gutsy template creation]] and [[:Category: Templates]].&lt;br /&gt;
&lt;br /&gt;
{{Note|Setup your prefered standard OS Template : edit the /etc/vz/vz.conf}}&lt;br /&gt;
&lt;br /&gt;
  # [sudo] apt-get install vzctl-ostmpl-debian-5.0-i386-minimal&lt;br /&gt;
&lt;br /&gt;
== Additional User Tools ==&lt;br /&gt;
&lt;br /&gt;
; vzprocps&lt;br /&gt;
:    A set of utilities to provide system information (vzps and vztop)&lt;br /&gt;
&lt;br /&gt;
; [[vzdump]]&lt;br /&gt;
:    A utility to backup and restore container. &lt;br /&gt;
&lt;br /&gt;
  # [sudo] apt-get install vzprocps vzdump&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On Debian squeeze, vzdump seems packaged in standard aptline. For lenny, See [[Backup_of_a_running_container_with_vzdump]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Secure it ==&lt;br /&gt;
&lt;br /&gt;
If you want to secure your container with individual firewall rules (instead or additionally to securing the host node) then you must run iptables inside the container. This works slightly different than on a physical server. So make sure that you check that iptables rules are indeed applied as expected inside the container.&lt;br /&gt;
&lt;br /&gt;
Iptables modules required by the container must be specified in the general vz.conf file or the vzXXX.conf file of the container.&lt;br /&gt;
&lt;br /&gt;
Add the following line into vz.conf to activate the respective iptables modules for all containers.&lt;br /&gt;
&lt;br /&gt;
 IPTABLES=&amp;quot;ip_tables ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl&lt;br /&gt;
 ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_LOG ipt_conntrack ipt_helper ipt_state iptable_nat ip_nat_ftp ip_nat_irc ipt_TOS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[http://wiki.debian.org/DebianFirewall][Configure]] your iptable rules inside the container.&lt;br /&gt;
&lt;br /&gt;
{{Warning|Note that iptables rules inside the container are not applied automatically as on a physical server by starting the iptables module! Follow the instructions below}}&lt;br /&gt;
&lt;br /&gt;
To make sure the iptables rules are applied on a startup/reboot we'll create a new file:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/network/if-pre-up.d/iptables&lt;br /&gt;
&lt;br /&gt;
Add these lines to it:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 /sbin/iptables-restore &amp;lt; /etc/iptables.up.rules&lt;br /&gt;
&lt;br /&gt;
The file needs to be executable so change the permissions:&lt;br /&gt;
&lt;br /&gt;
 chmod +x /etc/network/if-pre-up.d/iptables&lt;br /&gt;
&lt;br /&gt;
Start iptables&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/iptables start&lt;br /&gt;
&lt;br /&gt;
If the startup shows errors then you have probably not activated the needed iptables modules. See above.&lt;br /&gt;
&lt;br /&gt;
Check inside the container that your iptables rules are indeed applied:&lt;br /&gt;
&lt;br /&gt;
 iptables -L&lt;br /&gt;
&lt;br /&gt;
If the rules do not show up as you would expect on a physical server then you might not have activated the needed iptables modules.&lt;br /&gt;
&lt;br /&gt;
== Start it! ==&lt;br /&gt;
&lt;br /&gt;
 # [sudo] /etc/init.d/vz start&lt;br /&gt;
&lt;br /&gt;
This does not make the vz system automatically start at boot time.  For automatic start:&lt;br /&gt;
&lt;br /&gt;
 # [sudo] update-rc.d vz defaults 98&lt;br /&gt;
&lt;br /&gt;
== Use it! ==&lt;br /&gt;
&lt;br /&gt;
After installing the OpenVZ kernel, user tools and a minimal OS template&lt;br /&gt;
to create a first container and do some [[basic operations in OpenVZ environment]]. Read the [[download:doc/OpenVZ-Users-Guide.pdf]], browse this wiki.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: Debian]]&lt;br /&gt;
[[Category: Installation]]&lt;/div&gt;</summary>
		<author><name>Votsalo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=11770</id>
		<title>Backup of a running container with vzdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Backup_of_a_running_container_with_vzdump&amp;diff=11770"/>
		<updated>2011-12-30T00:20:13Z</updated>

		<summary type="html">&lt;p&gt;Votsalo: updated deb version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vzdump is a utility to make consistent snapshots of running OpenVZ containers (and KVM virtual machines if you are using [http://pve.proxmox.com Proxmox VE]). It basically creates a tar archive of the container's private area, which also includes the CT configuration files.&lt;br /&gt;
&lt;br /&gt;
There are several ways to provide consistency:&lt;br /&gt;
&lt;br /&gt;
* Stop the CT during backup (very long downtime)&lt;br /&gt;
* Use rsync and suspend/resume (minimal downtime)&lt;br /&gt;
* Use LVM2 (no downtime)&lt;br /&gt;
&lt;br /&gt;
Vzdump stores the backup on the disk in a single file. This file should go to a tape backup for archiving.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download vzdump rpm or deb packages from http://download.openvz.org/contrib/utils/vzdump/ or for newest version, check http://download.proxmox.com/debian/dists/lenny/pve/binary-amd64/ .&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://download.proxmox.com/debian/dists/lenny/pve/binary-amd64/vzdump_1.2-16_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For future versions, Proxmox will not release rpm´s, so you need to take a look at the sources. (maybe someone else can maintain vzdump rpm packages?)&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
For rpm based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpm -i vzdump-1.2-5.noarch.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For Debian based systems:&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg -i vzdump_1.2-16_all.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&lt;br /&gt;
see also: &lt;br /&gt;
&amp;lt;pre&amp;gt;man vzdump&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
vzdump OPTIONS [--all | &amp;lt;VMID&amp;gt;]&lt;br /&gt;
       --exclude VMID          exclude VMID (assumes --all)&lt;br /&gt;
       --exclude-path REGEX    exclude certain files/directories. You&lt;br /&gt;
                               can use this option more than once to specify&lt;br /&gt;
                               multiple exclude paths&lt;br /&gt;
       --stdexcludes           exclude temporary files and logs&lt;br /&gt;
       --compress              compress dump file (gzip)&lt;br /&gt;
       --storage STORAGE_ID    store resulting files to STORAGE_ID (PVE only)&lt;br /&gt;
       --script                execute hook script&lt;br /&gt;
       --dumpdir DIR           store resulting files in DIR&lt;br /&gt;
       --maxfiles N            maximal number of backup files per VM.&lt;br /&gt;
       --tmpdir DIR            store temporary files in DIR. --suspend and --stop&lt;br /&gt;
                               are using this directory to store a copy of the VM.&lt;br /&gt;
       --mailto EMAIL          send notification mail to EMAIL. You can use&lt;br /&gt;
                               this option more than once to specify multiple&lt;br /&gt;
                               receivers&lt;br /&gt;
       --stop                  stop/start VM if running&lt;br /&gt;
       --suspend               suspend/resume VM when running&lt;br /&gt;
       --snapshot              use LVM snapshot when running&lt;br /&gt;
       --size MB               LVM snapshot size (default 1024)&lt;br /&gt;
       --bwlimit KBPS          limit I/O bandwidth; KBytes per second&lt;br /&gt;
       --lockwait MINUTES      maximal time to wait for the global&lt;br /&gt;
                               lock. vzdump uses a global lock file to make&lt;br /&gt;
                               sure that only one instance is running&lt;br /&gt;
                               (running several instance puts too much load&lt;br /&gt;
                               on a server). Default is 180 (3 hours).&lt;br /&gt;
       --stopwait MINUTES      maximal time to wait until a VM is stopped.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Use a running container, for example install this: [[Proxmox Mail Gateway in container]].&lt;br /&gt;
&lt;br /&gt;
=== Backup ===&lt;br /&gt;
&lt;br /&gt;
Simply dump CT 777 — no snapshot, just archive the container private area and configuration files to the default dump directory (usually &amp;lt;code&amp;gt;/vz/dump/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
 vzdump 777&lt;br /&gt;
&lt;br /&gt;
Use rsync and suspend/resume to create a snapshot (minimal downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend 777&lt;br /&gt;
&lt;br /&gt;
Backup all containers and send notification mails to root.&lt;br /&gt;
&lt;br /&gt;
 vzdump --suspend --all --mailto root&lt;br /&gt;
&lt;br /&gt;
Use LVM2 to create snapshots (no downtime).&lt;br /&gt;
&lt;br /&gt;
 vzdump --dumpdir /space/backup --snapshot 777&lt;br /&gt;
&lt;br /&gt;
Note that using LVM2 and vzdump to create snapshots requires 512Mb of free space in your VG as described  [http://weblogs.amtex.nl/index.php?blog=2&amp;amp;title=using_vzdump_snapshot_to_backup_without_downtime&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1 here].&lt;br /&gt;
&lt;br /&gt;
=== Restore ===&lt;br /&gt;
&lt;br /&gt;
Restore the above backup to CT 600:&lt;br /&gt;
&lt;br /&gt;
 vzrestore /space/backup/vzdump-777.tar 600&lt;br /&gt;
OR&lt;br /&gt;
 vzdump --restore /space/backup/vzdump-777.tar 600&lt;br /&gt;
&lt;br /&gt;
Note : vzdump --restore is not present in version 1.2-7, use vzrestore instead.&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
'''(not fixed in 1.2-4)'''&lt;br /&gt;
The rsync command used by vzdump to create the backup in suspend mode partially ignores the &amp;quot;--exclude-path&amp;quot; option.&lt;br /&gt;
In fact, even if the excluded paths won't appear in the final output, the whole VPS will be moved to the temporary directory, meaning that you need as much free disk space as your VPS size to use vzdump. It can be an issue in the case of a file server handling many files...&lt;br /&gt;
&lt;br /&gt;
''Workaround:'' A workaround has been proposed on OpenVZ forum, see below for the excerpt. (http://forum.openvz.org/index.php?t=msg&amp;amp;goto=36924&amp;amp;)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User: tatawaki&lt;br /&gt;
Messages: 3&lt;br /&gt;
Registered: December 2008  Junior Member&lt;br /&gt;
From: *sbm.shawcable.net&lt;br /&gt;
&lt;br /&gt;
Line 694:&lt;br /&gt;
my $rsyncopts = &amp;quot;--stats --numeric-ids --bwlimit=${opt_bwlimit}&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# changes to&lt;br /&gt;
&lt;br /&gt;
my $rsyncopts = &amp;quot;--stats --numeric-ids --bwlimit=${opt_bwlimit}&amp;quot;;&lt;br /&gt;
$rsyncopts = $rsyncopts.&amp;quot; --exclude-from=/home/backups/exclude_vzdump.txt&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
the txt file contains &amp;lt;VEID&amp;gt;/home/:&lt;br /&gt;
&lt;br /&gt;
1094/home/&lt;br /&gt;
510/opt/&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''(fixed in 1.1-1)'''&lt;br /&gt;
vzdump will fail under Debian Etch in version 1.0-2 if it is invoked with parameter &amp;quot;--snapshot&amp;quot; and if the logical volume name contains a hyphen.&lt;br /&gt;
&lt;br /&gt;
''Workaround:'' One possible workaround is to rename the logical volume in question thus it doesn't contain any hyphen.&lt;br /&gt;
A bug report was sent to proxmox on 02 June 2008.&lt;br /&gt;
Other distributions or versions may be affected, too.&lt;br /&gt;
&lt;br /&gt;
== Hooks ==&lt;br /&gt;
&lt;br /&gt;
http://nachtmann.it/blog/vzdump-hook-ftp-backup-script - Backup to FTP with limited capacity&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Votsalo</name></author>
		
	</entry>
</feed>