Installing OpenVZ on a 64Bit OS
This article was originally published at hostechs.com/2009/08/installing-openvz-on-a-64bit-os/ and is made available here under a Creative Commons Attribution 3.0 Unported license (http://creativecommons.org/licenses/by/3.0/).
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 download.openvz.org/openvz.repo
rpm --import download.openvz.org/RPM-GPG-Key-OpenVZ
yum install ovzkernel.x86_64
mv /etc/sysctl.conf /etc/sysctl.conf.bk
cd /etc/
wget 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 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!