BKJIA exclusive Article]OpenVZ(OpenVZ Official Website: http://www.openvz.org) isVirtualization solution for Linux. OpenVZ uses the kernel of SWsoft's Virutozzo virtualization server software product (Virutozzo is a commercial virtualization solution provided by SWsoft ). OpenVZ creates an isolated virtual private server (VPS or virtual environment, VE) on a single physical server to improve server utilization and ensure that applications do not interfere with each other. The operation of each VPS is exactly the same as that of an independent server: VPS can be restarted independently and has root access permissions, users, IP addresses, memory, processors, files, applications, system libraries, and configuration files. OpenVZ software also provides tools to help users automate the management of virtual servers. Template-based application deployment allows you to create and use new virtual servers in a simple way within a few minutes. In addition, compared with other Virtualization Technologies, openVZ can run several times as many virtualization servers as other virtualization server technologies on each CPU.
This article describesDebian Squeeze (AMD64) PlatformTo install and use OpenVZ.
1. Install OpenVZ
1. Run the following command to install OpenVZ (if you are using a 32-bit platform, you need to install the linux-image-openvz-686 ).
srv75:~# apt-get install linux-image-openvz-amd64 vzdump vzctl vzquotasrv75:~# ln -s /var/lib/vz /vz
2. Add the following content to the/etc/sysctl. conf file.
net.ipv4.conf.all.rp_filter=1net.ipv4.icmp_echo_ignore_broadcasts=1net.ipv4.conf.default.forwarding=1net.ipv4.conf.default.proxy_arp = 0net.ipv4.ip_forward=1kernel.sysrq = 1net.ipv4.conf.default.send_redirects = 1net.ipv4.conf.all.send_redirects = 0net.ipv4.conf.eth0.proxy_arp=1
3. Run the following command to make the changes in the/etc/sysctl. conf file take effect immediately.
srv75:~# sysctl -p
4. Modify the following parameters in the/etc/vz. conf file.
NEIGHBOUR_DEVS=all
5. restart the computer (as shown in figure, after it is started, you will find that Grub has another option to use the OpenVZ kernel. Please select this project to enter the system ).