Editing User Guide/Installation and Preliminary Operations

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 27: Line 27:
 
==== Software Compatibility ====
 
==== Software Compatibility ====
  
The Hardware Node should run either Red Hat Enterprise Linux 6 or 5, or CentOS 6 or 5, or Scientific Linux 6 or 5. The detailed instructions on installing these operating systems for the best performance of OpenVZ are provided in the next sections.
+
The Hardware Node should run either Red Hat Enterprise Linux 3 or 4, or Fedora Core 3 or 4, or CentOS 3.4 or 4. The detailed instructions on installing these operating systems for the best performance of OpenVZ are provided in the next sections.
  
 
This requirement does not restrict the ability of OpenVZ to provide other Linux versions as an operating system for Virtual Private Servers. The Linux distribution installed in a Virtual Private Server may differ from that of the host OS.
 
This requirement does not restrict the ability of OpenVZ to provide other Linux versions as an operating system for Virtual Private Servers. The Linux distribution installed in a Virtual Private Server may differ from that of the host OS.
Line 69: Line 69:
 
Many of the historical specifications for partitioning are outdated in an age where all hard drives are well above 20GB.  So all minimums can be increased without any impact if you have plenty of drive space.  It is suggested to use the ext3 or ext4 file system for the /vz partition. This partition is used for holding all data of the Virtual Private Servers existing on the Hardware Node. Allocate as much disk space as possible to this partition. It is not recommended to use the reiserfs file system as it is proved to be less stable than the ext3, and stability is of paramount importance for OpenVZ-based computers.
 
Many of the historical specifications for partitioning are outdated in an age where all hard drives are well above 20GB.  So all minimums can be increased without any impact if you have plenty of drive space.  It is suggested to use the ext3 or ext4 file system for the /vz partition. This partition is used for holding all data of the Virtual Private Servers existing on the Hardware Node. Allocate as much disk space as possible to this partition. It is not recommended to use the reiserfs file system as it is proved to be less stable than the ext3, and stability is of paramount importance for OpenVZ-based computers.
  
The root partition will host the operating system files. Fresh CentOS 6 install with basic server packages + OpenVZ kernel can occupy up to approximately 2 GB of disk space, so 4 GB is a good minimal size of the root partition. If you have plenty of drive space and think you may add additional software to the Node such as monitoring software then consider using more.  Historically, the recommended size of the swap partition has been two times the size of physical RAM installed. Now, with minimum server RAM often above 2GB a more reasonable specification might be RAM + 2GB if RAM is above 2GB and HD space is limited.
+
The root partition will host the operating system files. Fresh CentOS 6 install with basic server packages + OpenVZ kernel can occupy up to approximately 2 GB of disk space, so 4 GB is a good minimal size of the root partition. If you have plenty of drive space and think you may add additional software to the Node such as monitoring software then consider using more.  Historically, the recommended size of the swap partition has been two times the size of physical RAM installed. Now, with minimum server RAM often above 2GB a more reasonable specification would be RAM + 2GB if RAM is above 2GB and HD space is limited.
  
 
=== Finishing OS Installation ===
 
=== Finishing OS Installation ===
Line 84: Line 84:
  
 
First of all, you should download the kernel binary RPM from http://openvz.org/download/kernel/. You need only one kernel RPM, so please choose the appropriate kernel binary depending on your hardware:
 
First of all, you should download the kernel binary RPM from http://openvz.org/download/kernel/. You need only one kernel RPM, so please choose the appropriate kernel binary depending on your hardware:
 
if you use Red Hat Enterprise 5, or Centos 5, or Scientific Linux 5:
 
 
* If there is more than one CPU available on your Hardware Node (or a CPU with hyperthreading), select the vzkernel-smp RPM.  
 
* If there is more than one CPU available on your Hardware Node (or a CPU with hyperthreading), select the vzkernel-smp RPM.  
 
* If there is more than 4 Gb of RAM available, select the vzkernel-enterprise RPM.  
 
* If there is more than 4 Gb of RAM available, select the vzkernel-enterprise RPM.  
 
* Otherwise, select the uniprocessor kernel RPM (vzkernel-version).  
 
* Otherwise, select the uniprocessor kernel RPM (vzkernel-version).  
 
if you use Red Hat Enterprise 6, or Centos 6, or Scientific Linux 6:
 
*select the uniprocessor kernel RPM (vzkernel-version).
 
  
 
Next, you shall install the kernel RPM of your choice on your Hardware Node by issuing the following command:
 
Next, you shall install the kernel RPM of your choice on your Hardware Node by issuing the following command:
Line 151: Line 146:
 
* vzctl: this package is used to perform different tasks on the OpenVZ Virtual Private Servers (create, destroy, start, stop, set parameters etc.).
 
* vzctl: this package is used to perform different tasks on the OpenVZ Virtual Private Servers (create, destroy, start, stop, set parameters etc.).
 
* vzquota: this package is used to manage the VPS quotas.
 
* vzquota: this package is used to manage the VPS quotas.
 +
* vzpkg: this package is used to work with OpenVZ templates.
  
 
You can download the corresponding binary RPMs from http://openvz.org/download/utils/.
 
You can download the corresponding binary RPMs from http://openvz.org/download/utils/.
  
 
On the next step, you should install these utilities by using the following command:
 
On the next step, you should install these utilities by using the following command:
  # rpm –Uhv vzctl*.rpm vzquota*.rpm
+
  # rpm –Uhv vzctl*.rpm vzquota*.rpm vzpkg*.rpm
  
 
{{Note|During the packages installation, you may be presented with a message telling you that rpm has found unresolved dependencies. In this case you have to resolve these dependencies first and then repeat the installation.}}
 
{{Note|During the packages installation, you may be presented with a message telling you that rpm has found unresolved dependencies. In this case you have to resolve these dependencies first and then repeat the installation.}}

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)