在CentOS 4.4上安装配置OpenVZIn this HowTo I will describe how to prepare a CentOS 4.4 server for OpenVZ virtual machines. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. 0. Minimum Requirements 1. Installing and Configuring Host Operating System on Hardware Node 2. Installing and Configuring OpenVZ Kernel 3. OS template cache preparation 4. VE Creation and other oprations with VEs 0. Minimum Requirements- Hardware 1. Installing and Configuring Host Operating System on Hardware NodeThis section explains how to install Fedora Core 4 on the Hardware Node and how to configure it for OpenVZ. If you are using another distribution, please consult the corresponding installation guides about the installation specifics. Step #1 – Install the Base SystemBoot from your CentOS 4.4 CD (CD 1). / DVD
It can take a long time to test the installation media so we skip this test here:
The welcome screen of the CentOS installer appears. Click on Next:
Choose your language next:
Select your keyboard layout:
We want to install a server so we choose Server here:
Step #2 – Disk PartitioningOn the Disk Partitioning Setup screen, select Manual partition with Disk Druid. Do not choose automatic partitioning since this type of partitioning will create a disk layout intended for systems running multiple services. In case of OpenVZ, all your services shall run inside Virtual Private Servers.
I'm installing CentOS 4.3 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?
Select Remove all partitions on this system.
We want to remove all Linux partitions, so we answer Yes to the following question:
Create the following partitions on the Hardware Node: For example:
|