How to install OpenVZ in CentOS 6.4

I’ve used the CentOS-6.4-x86_64-minimal.iso image to install the OS.

A pretty good installation guide is located on the OpenVZ webpage.

The minimal installation does not have “wget” installed – so I’ve installed it first.

After that you can follow the original instruction or use this shortcut

Reboot

This part was pretty easy, some troubles caused the installation of the web panel.

Install the OpenVZ Web Panel

https://code.google.com/p/ovz-web-panel/

..and here comes the first problem:

The used gem source is unavailable. Let’s add a new one:

The sources list is in a file in your home directory – I suggest to remove the not-working one

After that let’s start the script again.

This time it worked but all connection to the port 3000 are blocked, so we need to add an IPTABLES rule

Right now the web panel should be available

Hints:

1)If any errors appear while adding new hosts about missing net/ssh or net/sftp simply install them:

2) The first time when I was testing OpenVZ using a netinst image I’ve unnecessarily updated the gem system resulting in this:

The solution was to downgrade it: