Installing unxsVZ with yum for CentOS 5

This document will focus on a very quick yum unxsVZ install.

You should read the complete install document for a complete overview and post install setup.
We asume you have wget, rpm and yum installed on your server. If you don't please install them first.

  1. Prepare your yum configuration for using our repository
    # wget http://unixservice.com/rpm/i386/unxsyum-1.0-1.i386.rpm
    # rpm -i unxsyum-1.0-1.i386.rpm
    
  2. Prepare your yum repo for rpmforge. It will be used for installing rrdtool.
    # wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
    # rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm
    
  3. Optional step if you are installing in a server with no OpenVZ yet installed:
    # cd /etc/yum.repos.d
    # wget http://download.openvz.org/openvz.repo
    # rpm --import  http://download.openvz.org/RPM-GPG-Key-OpenVZ
    
  4. Install unxsVZ:
    # yum install unxsvz
    
  5. If you can't get the latest update run yum clean all. Then repeat the above step again.
  6. Continue the install by following the simple command line instructions in the /usr/share/doc/unxsvz-1.x/INSTALL file that comes in the yum provided rpm pkg.
  7. yum probably installed other packages that unxsVZ depends on. You will have to follow their post install instructions or start/restart services that they may provide. An example would be the mysql-server package that needs to have a password set for it, after yum install.

Important for x86_64 users doing a fresh (No previous OpenVZ) install

There's an issue in the unxsVZ dependencies (RPM is for i386.) Thus it will install vzctl and related utils with i386 version. This causes the vzctl chkpnt command to fail. You can fix it by running:

# rpm -e --nodeps vzctl.i386
# yum install vzctl.x86_64

Back