FAQ » Servers
Installing vzdump on CentOS 6
Vzdump installation
Vzdump is a utility to make consistent snapshots of running OpenVZ containers (and KVM virtual machines if you are using Proxmox VE). It basically creates a tar archive of the container's private area, which also includes the CT configuration files.
# wget https://download.openvz.org/contrib/utils/vzdump/vzdump-1.2-4.noarch.rpm --no-check-certificate
--2023-07-10 21:00:54-- https://download.openvz.org/contrib/utils/vzdump/vzdump-1.2-4.noarch.rpm
Resolving download.openvz.org... 130.117.225.97
Connecting to download.openvz.org|130.117.225.97|:443... connected.
WARNING: cannot verify download.openvz.org's certificate, issued by `/C=US/O=Let\'s Encrypt/CN=R3':
Issued certificate has expired.
HTTP request sent, awaiting response... 200 OK
Length: 29287 (29K) [application/x-rpm]
Saving to: `vzdump-1.2-4.noarch.rpm'
100%[==================================================================================================================================================================>] 29,287 --.-K/s in 0.02s
2023-07-10 21:00:54 (1.26 MB/s) - `vzdump-1.2-4.noarch.rpm' saved [29287/29287]
# rpm -i vzdump-1.2-4.noarch.rpm
error: Failed dependencies:
cstream is needed by vzdump-1.2-4.noarch
perl(LockFile::Simple) is needed by vzdump-1.2-4.noarch
# wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64/cstream-3.0.0-4.3.x86_64.rpm
--2023-07-10 21:04:29-- ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64/cstream-3.0.0-4.3.x86_64.rpm
=> `cstream-3.0.0-4.3.x86_64.rpm'
Resolving ftp.pbone.net... 93.179.225.212
Connecting to ftp.pbone.net|93.179.225.212|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64 ... done.
==> SIZE cstream-3.0.0-4.3.x86_64.rpm ... 25520
==> PASV ... done. ==> RETR cstream-3.0.0-4.3.x86_64.rpm ... done.
Length: 25520 (25K) (unauthoritative)
100%[==================================================================================================================================================================>] 25,520 --.-K/s in 0.05s
2023-07-10 21:04:30 (474 KB/s) - `cstream-3.0.0-4.3.x86_64.rpm' saved [25520]
# rpm -i cstream-3.0.0-4.3.x86_64.rpm
warning: cstream-3.0.0-4.3.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 9056621d: NOKEY
# wget https://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
--2023-07-10 21:10:16-- https://rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
Resolving rpmfind.net... 195.220.108.108
Connecting to rpmfind.net|195.220.108.108|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22447 (22K) [application/x-rpm]
Saving to: `perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm'
100%[==================================================================================================================================================================>] 22,447 --.-K/s in 0.03s
2023-07-10 21:10:16 (790 KB/s) - `perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm' saved [22447/22447]
# rpm -ivh perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
warning: perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:perl-LockFile-Simple ########################################### [100%]
# rpm -i vzdump-1.2-4.noarch.rpm
# vzdump -v
Can't locate LockFile/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump/OpenVZ.pm line 29.
Compilation failed in require at /usr/share/perl5/PVE/VZDump.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/VZDump.pm line 33.
Compilation failed in require at /usr/sbin/vzdump line 27.
BEGIN failed--compilation aborted at /usr/sbin/vzdump line 27.
# ln -s /usr/lib/perl5/vendor_perl/5.8.8 /usr/local/lib64/perl5
# vzdump
usage: /usr/sbin/vzdump OPTIONS [--all | VMID]
--exclude VMID exclude VMID (assumes --all)
--exclude-path REGEX exclude certain files/directories
--stdexcludes exclude temorary files and logs
--compress compress dump file (gzip)
--dumpdir DIR store resulting files in DIR
--maxfiles N maximal number of backup files per VM
--script FILENAME execute hook script
--storage STORAGE_ID store resulting files to STORAGE_ID (PVE only)
--tmpdir DIR store temporary files in DIR
--mailto EMAIL send notification mail to EMAIL.
--quiet be quiet.
--stop stop/start VM if running
--suspend suspend/resume VM when running
--snapshot use LVM snapshot when running
--size MB LVM snapshot size
--node CID only run on pve cluster node CID
--lockwait MINUTES maximal time to wait for the global lock
--stopwait MINUTES maximal time to wait until a VM is stopped
--bwlimit KBPS limit I/O bandwidth; KBytes per second
Example
vzdump --compress 414
Also See
Last updated: 2012-02-22