Tag Archives: openvz 64bit

Installing OpenVZ on a 64Bit OS

Until i get around finishing the 64bit installer here is a quick way to install OpenVZ on a 64bit OS.

Follow the next set of commands and you should be done in a few minutes:


# cd /etc/yum.repos.d
# wget http://download.openvz.org/openvz.repo
# rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
# yum install ovzkernel.x86_64
# mv /etc/sysctl.conf /etc/sysctl.conf.bk
# cd /etc/
# wget http://repo.hostechs.com/ovz/sysctl.conf.tar
# tar -xvf sysctl.conf.tar
# echo options ip_conntrack ip_conntrack_enable_ve0=1 >> /etc/modprobe.conf
# yum install vzctl.x86_64 vzquota.x86_64

Press “y” when you are being asked if you want to install a package.

After vzctl and vzquota have been installed reboot the server: shutdown -r now .

Login to the server again after it booted up and do the following:


# cd /root/
# wget http://repo.hostechs.com/ovz/setx86_64-0.5.tar.gz
# tar -zxvf setx86_64-0.5.tar.gz
# sh setx86_64

When the install finishes you are all done.

If you want to check the x86_64 templates available just run vzpkgls | grep x86_64 and the list will be displayed with the templates.

If you want to create a cache template run the following for Centos 5 for example: vzpkgcache -f centos-5-x86_64-minimal. This may take a bit but when it’s done you can start creating the first VPS using this template.

Hope this helps someone.

Any questions? Please ask!

Share/Bookmark