Installing vzdump for OpenVZ on CentOS

There are a few items required for installing vzdump for OpenVZ on CentOS.

First, you’ll need an MTA – I suggest making sure you have postfix installed; if you have postfix installed the initial RPM requirement for “MTA” will be handled for you. Next, you’ll need cstream. This installation is slightly more tricky because (as far as I know) there is no real way to gain this from yum unless you use the DAG Wieers repo. Also, depending on what you have already installed you will likely need the Simple Locking file I/O library for Perl.

Here is how you get vzdump on a clean version of CentOS (via the hostnode):

rpm -ivh "ftp://ftp.pbone.net/mirror/ftp.freshrpms.net/pub/freshrpms/pub/dag/redhat/el5/en/x86_64/RPMS.dag/cstream-2.7.4-3.el5.rf.x86_64.rpm"
wget http://dag.wieers.com/rpm/packages/perl-LockFile-Simple/perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
/bin/rm perl-LockFile-Simple-0.206-1.el5.rf.noarch.rpm
rpm -ivh "http://chrisschuld.com/centos54/vzdump-1.2-6.noarch.rpm"

Since version 1.2-6 of vzdump the location of the modules is not “automatic” and have found it necessary to export the location of the PVE libraries that vzdump requires via this command:

export PERL5LIB=/usr/share/perl5/

All said and done there has to be a better way to do this… anyone… anyone??

NOTE: 7/19/2010 – Proxmox updated their site… I updated all of the links!

7 thoughts on “Installing vzdump for OpenVZ on CentOS

  1. Thanks for this, I’ve been needing vzdump for a little bit now but couldn’t get the time to troubleshoot it’s library issues.
    That export line was the fix.
    It is sad, but hey… it can be tossed into the /etc/profile at the end, then the variable will always be there.

  2. Also you can create softlinks in corresponding directory like this:

    # ln -s /usr/share/perl5/PVE /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi -f

    It works well in RHEL4/5, I’m trying to document it on my tiny site planet.admon.org

  3. Pingback: Installing vzdump on CentOS 5.4 (32-bit) | Chris Schuld's Blog

  4. Hello

    I want to confirm this post is form centos 5.6 64bit or 32bit because i am not getting restore option so please suggest me.

    Thanks in advance.

  5. hi,
    a) thanks for your instructions and links.

    b) I had to do this on CentOS5.6 final on x64:
    ln -s /usr/share/perl5/PVE /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PVE

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>