Tag Archives: install openvz

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!


OpenVZ installer

I am working for the last few days to finish the first release of a OpenVZ installer.

This OpenVZ installer will be for the start a script write in Bash which will download, check and install from A to Z a OpenVZ server including downloading a few templates.

The script will be released under a GPLv3 license so it will be free.

Project name: OVZinstall

General functions:

– Check if OS is supported and select installation type for the installed OS

– Import repositories

– Check if OpenVZ is already installed

– Check the CPU type and memory available and download/install appropriate kernel

– Set values in sysctl.conf

– Install vzctl, vzquota etc. packages

– Download a few templates

The script will save a log file under /var/log/openvz-install.log so if there will be any issues during the install we will know why.

The first release will be available only for x86 systems, will try later to add 64bit also.

The idea is that the script is supposed to save some time if you have to install plain OpenVZ servers.

Currently it was tested on Debian 4 and Centos 5 OSs and seems to be doing the job just fine.

During the following week i am planing to test it on Centos 4.7 and Fedora Core OSs also .

A small issue at the moment is that i can’t test it against a system with over 4Gb of RAM and/or running a Quad core CPU as i don’t have this hardware just laying around. Would be helpful if someone has access to this hardware and wants to test it and provide me with the output.

Any input is appreciated.