[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Advanced Tasks<br />
Creating Configuration Files for New Linux<br />
Distributions<br />
Distribution configuration files are used to distinguish among Containers running different Linux<br />
versions and to determine what scripts should be executed when performing the relevant<br />
Container-related operations (e.g. assigning a new IP address to the Container). Detailed<br />
information on distributions configurations files is provided in the Linux Distribution Configuration<br />
Files subsection of the <strong>Parallels</strong> Command Line Reference Guide.<br />
All Linux distributions shipped with <strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong> have their own configuration files<br />
located in the /etc/vz/conf/dists directory on the <strong>Parallels</strong> server. However, you may wish to<br />
create your own distribution configuration files to support new Linux versions released. Let us<br />
assume that you wish your Containers to run the CentOS 5 Linux distribution and, therefore, have<br />
to make the centos-5.conf distribution configuration file to define what scripts are to be<br />
executed while performing major tasks with Containers running this Linux version. To do this:<br />
1 In the Container configuration file (with the name of /etc/vz/conf/CT_ID.conf), specify<br />
centos-5 as the value of the DISTRIBUTION variable (for example,<br />
DISTRIBUTION="centos-5").<br />
2 Create the centos-5.conf configuration file in the /etc/vz/conf/dists directory. The<br />
easiest way to do it is copy one of the existing configuration files by executing the following<br />
command in the /etc/vz/conf/dists directory:<br />
# cp fedora.conf centos-5.config<br />
In the example above, we assume that the fedora.conf file is present in the<br />
/etc/vz/conf/dists directory on the <strong>Parallels</strong> server. In case it is not, you may use any<br />
other distribution configuration file available on your server.<br />
3 Open the centos.conf file for editing with the help of any text editor:<br />
# vi centos-5.conf<br />
4 In the centos-5.conf file, go to the first entry and, in the right part of the entry, specify the<br />
name of the script you wish to be run on issuing the pctl command with the parameter<br />
specified in the left part of the entry. For example, if you wish the script to be executed while<br />
assigning a new IP address to your Container and the script has the my_centos_script<br />
name, your entry should look as follows:<br />
ADD_IP=my_centos_script-add_ip.sh<br />
236<br />
Note: The information on all acceptable parameters and their description are provided in the <strong>Parallels</strong><br />
Command Line Reference Guide.<br />
5 Repeat Step 4 for all entries in the file.<br />
6 Place the scripts for the new Linux distribution to the /etc/vz/conf/dists/scripts<br />
directory on the Node. Make sure the names of these scripts coincide with those specified in<br />
the centos-5.conf file.