CentOS 6.4, OpenVZ & OpenVZ Web Panel
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.
You also need to upgrade kernel firmware to latest eg. here
i had to download and install kernel-firmware-2.6.32-358.23.2.el6.noarch.rpm
# yum install kernel-firmware-2.6.32-358.23.2.el6.noarch.rpm
The minimal installation does not have “wget” installed – so I’ve installed it first.
1
| [root@centos ~]# yum install wget |
1
2
3
| wget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.reporpm --import http://ftp.openvz.org/RPM-GPG-Key-OpenVZyum install vzkernel vzctl vzquota ploop |
Install the OpenVZ Web Panel
https://code.google.com/p/ovz-web-panel/
1
| wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh |
1
2
3
4
5
6
7
8
9
| Complete!ERROR: http://gems.rubyforge.org/ does not appear to be a repositoryERROR: could not find gem sqlite3 locally or in a repositoryChecking presence of the command: rubyRuby version: 1.8.7Checking presence of the command: gemRubyGems version: 1.3.5Checking Ruby SQLite3 support: ruby -e "require 'rubygems'" -e "require 'sqlite3'"Fatal error: Ruby SQLite3 support not found. Please install it first. |
1
| gem sources -a http://rubygems.org |
1
| vi ~/.gemrc |
This time it worked but all connection to the port 3000 are blocked, so we need to add an IPTABLES rule
1
2
| iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPTiptables-save |
Hints:
1)If any errors appear while adding new hosts about missing net/ssh or net/sftp simply install them:
1
2
| gem install net-sshgem install net-sftp |
1
| undefined method `source_index' for Gem:Module (NoMethodError) |
1
| gem update --system 1.8.25 |
TO RESET password of OVZ web panel
#ruby /opt/ovz-web-panel/script/runner -e production 'user = User.find_by_login("admin"); user.password = "admin"; user.save(false)'

No comments:
Post a Comment