Introduction to virtualization through OpenVZ In Debian (1)

Source: Internet
Author: User

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 ).


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.