Deploy OpenVZ virtual server in Linux

Source: Internet
Author: User
Tags dedicated server vps root access virtual dedicated server virtual environment virtual private server
Article Title: deploy OpenVZ virtual server in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Currently, virtualization technology focuses on server virtualization, that is, multiple independent operating systems are provided on a host computer. This article will explore the ideas behind virtualization and discuss some technologies for virtualization. We will also learn about other existing Virtualization Technologies, such as operating system virtualization on Linux.

From a commercial perspective, there are many reasons for using virtualization technology. Most of the reasons are due to the consolidation of servers ). Simply put, if you can Virtualize multiple underutilized systems on a server, because the number of servers is small, it can obviously save a lot of power, space, cooling and management costs. Because it is difficult to determine the utilization of servers, virtualization technology supports dynamic migration technology. Live migration allows the operating system and its applications to be migrated to a new server to balance the load on the available hardware.

I. Importance and usage of virtual machines in Linux:

Supports applications that use earlier operating systems. For example, an application can only be used in the 2.4 kernel Linux system (Redhat Linux 6.2). You can use the host operating system as Linux 2.6 (Redhat Linux 9.0) to run the application.

Workshop training. If you are a trainer, you can use a virtual machine to build your training scenario. In this way, you can use a computer to simulate multiple training scenarios.

Testing server applications. When an enterprise needs to deploy a server application, you can test it on the virtual machine. The virtual machine can perfectly Virtualize multiple (types) Real Server environments, this makes it easy for you to complete deployment and testing. A virtual machine is not just a simple simulation of a virtual machine environment for your work, in addition, some operations that have an impact on the OS, such as network attacks and destructive experiments, are very secure if virtual machines are used, because the impact of the virtual environment is only a data file, there will be no other issues with the host hardware device software program. The system adjustment in the production system is not proven by test data, and the direct launch of the system rashly implies great risks, if software developers or system administrators use virtual machines, such testing and research will be well suited.

 Improves server utilization. In many enterprises, different departments or branches have different operating system or application requirements, so they have different servers, but these servers tend to have low utilization. Through virtual machines, you can achieve these different server requirements through virtual machines, so as to integrate them into a physical server to improve the server utilization. For users with these server requirements, they will not feel the difference between the servers running on virtual machines and those running on physical computers.

The ghost application is transplanted. Many enterprises have server applications that require different versions of server operating systems. You can run virtual machines on Linux and install Solaris on virtual machines to run these applications, to port the application.

Testing the ingress network. Virtual machines established in both Linux and Windows can implement a network with only the host computer, that is, the LAN between the host computer and the virtual machine. Therefore, the network experiment does not need to connect the network cable and debug the computer everywhere like the physical network. Networking is not limited between the host computer and virtual machine, but also between multiple virtual machines. For example, if you have set up FreeBSD and Windows XP operating systems on Windows or Linux, then we can observe how the Web Server running on FreeBSD servo the whole process of accessing Internet Explorer Web pages on Windows XP.

2. What is OpenVZ?

OpenVZ is an open-source software and an operating system-level server virtualization solution based on the Linux platform. OpenVZ uses SWsoft's Virutozzo. the kernel of the virtualization server software product. Virutozzo is a commercial virtualization solution provided by SWsoft. OpenVZ creates isolated and secure virtual private servers (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. OpenVZ supports CPUs such as X86, AMD64, Itanium (IA64), PowerPC, and UltraSPARC.

Technical Features:

OpenVZ divides a Linux operating system instance into hundreds of independent virtual environments. Various Applications can be installed and run in a virtual environment, which is completely consistent with the physical server. By sharing hardware and software resources, we not only make full use of server resources, but also reduce the overall TCO; it also provides management features such as instant server deployment, dynamic resource allocation and recovery, server cluster management, user self-service restart, zero downtime migration, and fast backup and recovery. Now, the VPS host has become a mainstream form of host service that is fully compatible with virtual hosts and independent hosts.

• VPS provides the same features as independent servers
• Share hardware, licenses, and manage resources
• Completely isolated to prevent DoS Attacks
• Complete virtual server deployment in seconds
• Zero downtime migration between servers
• Command line management tools

3. basic functions and applications of OpenVZ VPS

Shard Dynamic Real-time partition? Divides a physical server into dozens of VPS, each of which has the function of an independent server.
Shard Resource Management? Allocate and control VPS resource parameters and realtime resource reallocation.
Centralized quota management? Manage multiple physical and virtual private servers in a unified manner.

1. OpenVZ Application

OpenVZ provides the following services for Linux host services:

 Has hundreds of customers on a single physical server, and each customer has an independent full-featured virtual dedicated server;
 Guarantees the quality of service (Qos) for each customer;
You do not need to manually configure ingress to transparently migrate customers and their use environments between different servers.

If you manage a large number of Linux independent servers in an enterprise and each server runs a specific application service, you can use OpenVZ to merge these services with the same computer, no loss of valuable information or damage to any performance. The virtual private server runs exactly the same as the independent server:

Each VPS has its own processes, users, and files, and provides full ROOT access permissions;
 Each VPS can have independent IP addresses, port numbers, forms, and filtering and routing rules;
 Each VPS can have its own system configuration file, load applications, and own system library. Software packages can be installed and customized independently within VPS, and are not affected by other VPS or underlying hardware node systems.

Different Linux release packages can run on the same Linux server. OpenVZ can be quickly deployed in most scenarios: network host hosting, Enterprise Server Consolidation, software development/testing, and user training.

[1] [2] [3] [4] Next page

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.