I remember trying to install a series of products that have experienced SWSoft in the student age, such as Plesk, Prim @ Hosting, and Virutozzo. The functions left a profound image. OpenVZ is the virutozzo open-source virtualization solution, many foreign IDCs, Burst, and VPST all use OpenVZ solutions. This test is also conducted. The steps are as follows.
This solution is based on CentOS 6.0 64-bit. OpenVZ is used with the OVZ Web Panel. Vtonf has not been updated for a long time and is not considered. Of course, you can try other management panels listed on the official homepage.
1. System Installation
CentOS 6.0 Mininal minimal installation. The default English language is used. When OVZ Web Panel is used, virtual machine files and templates are stored in the/vz directory by default. A large partition can be created for this directory.
2. System Adjustment
(1) install some necessary software packages of the system
# Yum install gcc-c ++ flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext -devel pcre-devel curl-devel openldap-devel libmcrypt-devel libmhash-devel libtool-ltdl gd-devel libtool-ltdl-devel setuptool ntsysv system-config-network- tui system-config-firewall-tui perl automake autoconf cmake make
(2) Disable SELinux and modify SELINUX = disabled.
# Vi/etc/selinux/config
(3) modify system parameter settings
# Vi/etc/sysctl. conf
Refer to the following parameters. If IPV6 is not used, you do not need to add net. ipv6 parameters.
Net. ipv4.ip _ forward = 1
Net. ipv6.conf. default. forwarding = 1
Net. ipv6.conf. all. forwarding = 1
Net. ipv4.conf. default. proxy_arp = 0
Net. ipv4.conf. all. rp_filter = 1
Kernel. sysrq = 1
Net. ipv4.conf. default. send_redirects = 1
Net. ipv4.conf. all. send_redirects = 0
(4) disable the system firewall and start the system after it is started.
# Chkconfig-level 345 iptables off
3. Install OpenVZ
# Cd/etc/yum. repos. d // enter the yum. repos directory.
# Wget http://download.openvz.org/openvz.repo // download repo File
# Yum search vzkernel // search OpenVZ Kernel
# Yum install vzkernel // install the OpenVZ kernel and write down the kernel version.
After the installation is complete, restart the system and run uname-a to check whether the kernel is correctly installed.
4. Install the OVZ-Web-Panel Management Panel
# Wget http://ovz-web-panel.googlecode.com/svn/installer/ai.sh // download installation script
# Vi ai. sh
// Because the management panel is written in Ruby and the SQLite database, the name of Sqlite3 in the gem has changed, and some of them need to be modified.
Find the location around 7th rows of RUBY_SQLITE3_CMD = "ruby-e \" require 'rubygems '\ "-e \" require 'sqlite3/database, change sqlite3/database to sqlite3
Look up the gem install sqlite3-ruby and change the sqlite3-ruby to sqlite3 complete.
After a long wait, after the installation is complete, you can browse ip Address: 3000.