Installing OpenVZ on a 64Bit OS



 

How to easily install openvz on a 64-bit RPM based distribution like Fedora, Redhat, or CentOS.

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:

  1. shutdown -r now

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

  1. 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!

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/).


RELATED ARTICLES:
5 Linux VPS Performance Tips

No comments

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.