As some of you may already know, vzdump is not included in the openvz repository for CentOS. If you need to use vzdump, you have to download its source and compile it yourself, unless you’re already using some VPS control panel that has it bundled.
Luckily, for all those who don’t use control panels and don’t want to compile vzdump themselves, there’s a quick workaround. SolusVM includes it in its repository, which apparently can be used even if you don’t have SolusVM installed on that particular server.
Create /etc/yum.repos.d/solusvm.repo with the following content:
[soluslabs]
name=Soluslab Repo
#baseurl=http://repo.soluslabs.com/centos/$releasever/os/$basearch
mirrorlist=http://repo.soluslabs.com/centos/mirrors-soluslabs
gpgcheck=0
enabled=1
then run yum install vzdump and you’re set.
Any clues on how to get vzrestore installed?
when i run install, it says:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag’
Your error points that you’re missing rpmforge’s GPG key.
See http://wiki.centos.org/AdditionalResources/Repositories/RPMForge for the correct procedure on installing the rpmforge repository.
Doesn’t work, at least not in the way presented above.
Error: Package: vzdump-1.1-1.noarch (soluslabs)
Requires: vzctl
With skip-broken:
Packages skipped because of dependency problems:
cstream-2.7.4-3.el6.rf.x86_64 from rpmforge
vzdump-1.1-1.noarch from soluslabs
vzdump requires vzctl (as it stops/suspends/resumes the vz when backing up). You should be able to install vzctl from CentOS’ openvz repo (which you should have already added before installing the openvz kernel).