Install & Configure:

  1. Database
  2. Web Components
  3. Management Node Components

Install & Configure the Database

  1. Download & Extract the Apache VCL Source

    1. If you have not already done so, download and the Apache VCL source to the database server:


    2. Extract the files:

      tar -jxvf apache-VCL-2.2.1-incubating.tar.bz2

  2. Install MySQL Server

    1. Install MySQL Server 5.x:

      yum install mysql-server -y

    2. Configure the MySQL daemon (mysqld) to start automatically:

      /sbin/chkconfig --level 345 mysqld on

    3. Start the MySQL daemon:

      /sbin/service mysqld start

    4. Make sure the firewall on the database server is configured to allow traffic from the web server and management node servers to connect to the MySQL daemon TCP port: 3306.  See the firewall documentation for more information.

      man iptables

  3. Create the VCL Database

    1. Run the MySQL command-line client:


    2. Create a database:


    3. Create a user with SELECT, INSERT, UPDATE, DELETE, and CREATE TEMPORARY TABLES privileges on the database you just created:


      Replace vcluser and vcluserpassword with that of the user you want to use to connect to the database

      The GRANT command will automatically create the user if it doesn't already exist

    4. Exit the MySQL command-line client:


    5. Import the vcl.sql file into the database:

      mysql vcl < apache-VCL-2.2.1-incubating/mysql/vcl.sql

      The vcl.sql file is included in the mysql directory within the Apache VCL source code

  4. Install & Configure phpMyAdmin (Optional):

    phpMyAdmin is a free and optional tool which allows MySQL to be administered using a web browser. It makes administering the VCL database easier. This tool can be installed on the VCL web server. To install phpMyAdmin, follow the instructions on: VCL 2.2.1 phpMyAdmin Installation & Configuration

Next step: VCL 2.2.1 Web Code Installation

Install & Configure the Web Components


The following instructions assume these tasks have previously been completed:

Web Server:

  • Apache HTTP Server v1.3 or v2.x with SSL enabled
  • PHP 5.0 or later

The VCL web frontend may run under other web server platforms capable of running PHP code, but has only been tested to work with Apache HTTP Server.

Required Linux Packages:

  • httpd - Apache HTTP Server
  • mod_ssl - SSL/TLS module for the Apache HTTP server
  • php - The PHP HTML-embedded scripting language
  • libmcrypt - Encryption algorithms library (this requirement can be removed with a patch)

Required PHP Modules:

(Some of these may already be included with your PHP distribution)

  • php-gd
  • php-json (required if your PHP version is 5.2 or later)
  • php-mcrypt (this requirement can be removed with a patch)
  • php-mysql
  • php-openssl
  • php-sysvsem
  • php-xml
  • php-xmlrpc
  • php-ldap (if you will be using LDAP authentication)
  1. Install the Required Linux Packages & PHP Modules

    1. If your web server is running a Red Hat-based OS, the required components can be installed with:

      yum install httpd mod_ssl php php-gd php-mcrypt php-mysql php-xml php-xmlrpc php-ldap -y

      • If you will be using a self-signed certificate for SSL, this is a great HOWTO explaining how to set it up on CentOS
      • It is useful to configure the server to be able to send debugging emails
    2. Configure the web server daemon (httpd) to start automatically:

      /sbin/chkconfig --level 345 httpd on

    3. Start the web server daemon:

      /sbin/service httpd start

    4. If SELinux is enabled, run the following command to allow the web server to connect to the database:

      /usr/sbin/setsebool -P httpd_can_network_connect=1

    5. If the iptables firewall is being used, port 80 and 443 should be opened up:

      vi /etc/sysconfig/iptables

      -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
      -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
      service iptables restart

  2. Install the VCL Frontend Web Code

    1. If you have not already done so, download and extract the source files on the web server:

      tar -jxvf apache-VCL-2.2.1-incubating.tar.bz2

    2. Copy the web directory to a location under the web root of your web server and navigate to the destination .ht-inc subdirectory:

      cp -r apache-VCL-2.2.1-incubating/web/ /var/www/html/vcl
      cd /var/www/html/vcl/.ht-inc

    3. apply patch to fix editing reservations
    4. apply patch to fix processing of block allocations
    5. Copy secrets-default.php to secrets.php:

      cp secrets-default.php secrets.php

    6. Edit the secrets.php file:

      vi secrets.php

      • Set the following variables to match your database configuration:
        • $vclhost
        • $vcldb
        • $vclusername
        • $vclpassword
      • Create random passwords for the following variables:
        • $mcryptkey
        • $mcryptiv (must be 8 hex characters)
        • $pemkey
      • Save the secrets.php file
    7. Run the script.  Enter the value you set for $pemkey in secrets.php as the passphrase (3 times, copy/paste is a good idea)


    8. Copy conf-default.php to conf.php:

      cp conf-default.php conf.php

    9. Modify conf.php to match your site

      vi conf.php

      Modify every entry under "Things in this section must be modified". Descriptions and pointers for each value are included within conf.php.

      • COOKIEDOMAIN - set this to the domain name your web server is using or leave it blank if you are only accessing the web server by its IP address
    10. Set the owner of the .ht-inc/maintenance directory to the web server user (normally 'apache'):

      chown apache maintenance

    11. Optionally, you can install phpseclib and apply a patch to remove the requirement of having mcrypt installed
    12. Open the testsetup.php page in a web browser:
  3. Log In to the VCL Website

    1. Open the index.php page in your browser (
      • Select Local Account
      • Username: admin
      • Password: adminVc1passw0rd
    2. Set the admin user password (optional):
      1. Click User Preferences
      2. Enter the current password: adminVc1passw0rd
      3. Enter a new password
      4. Click Submit Changes
  4. Add a Management Node to the Database

    1. Click the Management Nodes link
      1. Click Add
      2. Fill in these required fields:
        • Hostname - The name of the management node server. This value doesn't necessarily need to be a name registered in DNS nor does it need to be the value displayed by the Linux hostname command. For example, if you are installing all of the VCL components on the same machine you can set this value to localhost.

          Take note of the value you enter for Hostname. In a later step performed during the management node installation, the value enter for Hostname must match the value you enter for FQDN in the /etc/vcl/vcld.conf file on the management node.

        • IP address - the public IP address of the management node
        • SysAdmin Email Address - error emails will be sent to this address
        • Install Path - this is parent directory under which image files will be stored - only required if doing bare metal installs or using VMWare with local disks
        • End Node SSH Identity Key Files - enter /etc/vcl/vcl.key unless you know you are using a different SSH identity key file
      3. Optionally, fill in these fields:
        • Address for Shadow Emails - End users are sent various emails about the status of their reservations. If this field is configured, copies of all of those emails will be sent to this address.
        • Public NIC configuration method - this defaults to Dynamic DHCP - if DHCP is not available for the public interface of your nodes, you can set this to Static. Then, the IP configuration on the nodes will be manually set using Public Netmask, Public Gateway, Public DNS Server, and the IP address set for the computer under Manage Computers
    2. Click Confirm Management Node
    3. Click Submit
    4. Click the Management Nodes link
      1. Select Edit Management Node Grouping
      2. Click Submit
      3. Select the checkbox for your management node
      4. Click Submit Changes

Further steps if using only VMWare

Further steps if using xCAT

Adding Local VCL Accounts

Local VCL accounts are contained within the VCL database.  The admin account is a local VCL account.  Additional local accounts can be added via the backend management node code. After you have finished the backend management node installation, run:

vcld -setup

  1. Select VCL Base Module
  2. Select Add Local VCL User Account
  3. Enter the requested information

Adding LDAP Authentication

Follow the instruction on the Adding LDAP Authentication page.

Previous Step: VCL 2.2.1 Database Installation
Next Step: VCL 2.2.1 Management Node Installation

Install & Configure the Management Node Components


The following management node installation instructions assume the instructions on the following pages have previously been completed:

Supported Operating Systems:

The VCL management node daemon (vcld) has been developed to run on an operating system based on Red Hat Enterprise Linux (RHEL). It has been tested on the following:

  • Red Hat Enterprise Linux 4.x
  • Red Hat Enterprise Linux 5.x
  • CentOS 5.x
Required Linux Packages:

The VCL management node daemon (vcld) requires the following Linux packages and Perl modules in order to run (see step 2 below for installation instructions):

  • expat - A library for parsing XML
  • expat-devel - Libraries and include files to develop XML applications with expat
  • gcc - Various compilers (C, C++, Objective-C, Java, ...)
  • krb5-libs - The shared libraries used by Kerberos 5
  • krb5-devel - Development files needed to compile Kerberos 5 programs
  • libxml2 - Library providing XML and HTML support
  • libxml2-devel - Libraries, includes, etc. to develop XML and HTML applications
  • mysql - MySQL client programs and shared libraries
  • nmap - Network exploration tool and security scanner
  • openssh - The OpenSSH implementation of SSH protocol versions 1 and 2
  • openssl - The OpenSSL toolkit
  • openssl-devel - Files for development of applications which will use OpenSSL
  • perl - The Perl programming language
  • perl-DBD-MySQL - A MySQL interface for perl
  • xmlsec1-openssl - OpenSSL crypto plugin for XML Security Library
Required Perl Modules:

The VCL management node daemon (vcld) is written in Perl and has been tested on Perl 5.8.x. The following Perl modules available from CPAN are also required (see step 2 below for installation instructions):

  • DBI - Generic Database Interface
  • Digest::SHA1 - NIST SHA message digest algorithm
  • Mail::Mailer - Simple mail agent interface
  • Object::InsideOut - Comprehensive inside-out object support
  • RPC::XML - A set of classes for core data, message and XML handling
  • YAML - YAML Ain't Markup Language
  1. Install the VCL Management Node Code - Perl Daemon

    1. If you have not already done so, download and extract the VCL source files to the management node:

      tar -jxvf apache-VCL-2.2.1-incubating.tar.bz2

    2. Copy the managementnode directory to the location where you want it to reside (typically /usr/local):

      cp -r apache-VCL-2.2.1-incubating/managementnode /usr/local/vcl

  2. Install the Required Linux Packages & Perl Modules

    Run the script:

    perl /usr/local/vcl/bin/

    The last line of the script output should be:
    successfully installed required Perl modules
    Note: The script will hang or terminate if it encounters a problem. If this occurs, you will need to troubleshoot the problem by looking at the output.

    Note: RPC::XML may not install correctly on CentOS 5.6. The CPAN install of RPC::XML fails because RPC::XML needs 'XML::LibXML' for it's 'self tests' - even though - it's NOT configured as a dependency, and the 'self tests' are suppose to skip tests involving 'XML::LibXML' if it's not installed. You may need to install the module manually before running the '' script.
    (i.e. cpan -i XML::LibXML )

    The script included in the VCL distribution will attempt to download and install the required Linux packages and Perl modules. It uses the yum utility to install the required Linux packages. The required Perl modules are available from CPAN - The Comprehensive Perl Archive Network. The script attempts to download and install the required Perl modules by using the module which is included with most Perl distributions.

    The yum utility should exist on any modern Red Hat-based Linux distribution (Red Hat, CentOS, Fedora, etc). If yum isn't available on your management node OS, you will need to download and install the required Linux packages manually or by using another package management utility. After installing the required Linux packages, attempt to run the script again.
  3. Configure vcld.conf

    1. Create the */etc/vcl* directory:

      mkdir /etc/vcl

    2. Copy the stock *vcld.conf* file to */etc/vcl*:

      cp /usr/local/vcl/etc/vcl/vcld.conf /etc/vcl

    3. Edit */etc/vcl/vcld.conf*:

      vi /etc/vcl/vcld.conf

      The following lines must be configured in order to start the VCL daemon (vcld) and allow it to check in to the database:
      • FQDN - the fully qualified name of the management node, this should match the name that was configured for the management node in the database
      • server - the IP address or FQDN of the database server
      • LockerWrtUser - database user account with write privileges
      • wrtPass - database user password
    4. Save the vcld.conf file
  4. Configure the SSH Client

    The SSH client on the management node should be configured to prevent SSH processes spawned by the root user to the computers it controls from hanging because of missing or different entries in the known_hosts file.

    Edit the ssh_config file:

    vi /etc/ssh/ssh_config

    Locate the UserKnownHostsFile and StrictHostKeyChecking lines and change them to the following:
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no
    Note: If you do not want these settings applied universally on the management node the SSH configuration can also be configured to only apply these settings to certain hosts or only for the root user. Consult the SSH documentation for more information.
  5. Install and Start the VCL Daemon (vcld) Service

    1. Copy the vcld service script to /etc/init.d and name it vcld:

      cp /usr/local/vcl/bin/S99vcld.linux /etc/init.d/vcld

    2. Add the vcld service using chkconfig:

      /sbin/chkconfig --add vcld

    3. Configure the vcld service to automatically run at runtime levels 3-5:

      /sbin/chkconfig --level 345 vcld on

    4. Start the vcld service:

      /sbin/service vcld start

      You should see output similar to the following:
      Starting vcld daemon:
      VCL Management Node Daemon (vcld) | 2011-03-15 10:23:04
      bin path:      /usr/local/vcl/bin
      config file:   /etc/vcl/vcld.conf
      log file:      /var/log/vcld.log
      pid file:      /var/run/
      daemon mode:   1
      setup mode:    0
      verbose mode:  1
      Created VCL daemon process: 8465
                                                                 [  OK  ]

      The vcld service can also be started by running the service script directly: /etc/init.d/vcld start

    5. Check the vcld service by monitoring the vcld.log file:

      tail -f /var/log/vcld.log

      You should see the following being added to the log file every few seconds if the management node is checking in with the database:
      2009-06-16 16:57:15|15792|vcld:main(165)|lastcheckin time updated for management node 18: 2009-06-16 16:57:15
  6. Install & Configure the DHCP Service

    1. Install dhcp if it is not already installed:

      yum install dhcp -y

    2. The DHCP daemon should only listen on the virtual private network (eth0) to avoid conflicts with other networks. Configure the dhcpd service startup script to only listen on the private interface:

      vi /etc/sysconfig/dhcpd

      Add eth0 the to the DHCPDARGS line:
      # Command line options here
    3. Configure the dhcpd service to automatically start at runlevels 3-5:

      /sbin/chkconfig --level 345 dhcpd on

    4. Configure the dhcpd.conf file.

      vi /etc/dhcpd.conf

      Configure your dhcpd.conf file according to your network configuration. The contents of the dhcpd.conf file will vary based on how your network is configured. Below is an example of a basic dhcpd.conf file:

      ddns-update-style none;
               shared-network eth0 {
      	subnet netmask {
      		ignore unknown-clients;
      You will add host definitions to the dhcpd.conf file after you add computers to VCL using the website. The website will display the dhcpd.conf host definitions after the computers have been added to VCL, which can be copied and pasted into the dhcpd.conf file.
    5. Start the dhcpd service:

      /sbin/service dhcpd start

  7. Configure Windows Product Keys and/or KMS Server Addresses (Optional)

    If you will be deploying Windows environments your institution's Windows product key and/or KMS server addresses must be entered into the VCL database. This can be done by running the following command:

    /usr/local/vcl/bin/vcld -setup

    Select "Windows OS Module" and follow the prompts.
  8. Download Windows Sysprep Utility (Optional)

    If you will be using VCL to deploy bare-metal Windows XP or Windows Server 2003 environments via xCAT, the appropriate versions of the Microsoft Sysprep utility must be downloaded to the management node. The following steps do not need to be completed if you only intend to deploy VMware virtual machines.

    The Sysprep utility is included in the Deployment Tools available for free from Microsoft. You do not need to download Sysprep for Windows 7 or Windows Server 2008 because it is included in the operating system.

    The Sysprep files need to be downloaded, extracted, and then copied to the management node. The format of the file available for download is Microsoft's .cab format. It is easiest to extract the files on a Windows computer. Windows Explorer is able to open the .cab file and then the files contained within can be copied elsewhere.

    1. Windows XP
      1. Download Sysprep for Windows XP: Windows XP Service Pack 3 Deployment Tools
      2. Extract the Windows XP Sysprep Files
      3. Copy the extracted Windows XP Sysprep files to the following directory the management node:
    2. Windows Server 2003
      1. Download Sysprep for Windows Server 2003: System Preparation tool for Windows Server 2003 Service Pack 2 Deployment
      2. Extract the Windows Server 2003 Sysprep Files
      3. Copy the extracted Windows Server 2003 Sysprep files to the following directory the management node:
  9. Download Windows Drivers (Optional)

    Drivers which aren't included with Windows must be downloaded and saved to the management node. The drivers required will vary greatly depending on the hardware. The only way to know what additional drivers you need is to install Windows on a computer and check for missing drivers.

    The drivers must be copied to the appropriate directory on the management node. The VCL image capture process copies the driver directories to the computer before an image is captured. Drivers from multiple directories will be copied based on the version of Windows being captured. There are driver directories under tools for each version of Windows (Windows XP, Windows 7) and for each version group of Windows (version 5, 6). This allows drivers which are common to multiple versions of Windows to be shared in the management node tools directory structure.

    If a chipset driver works for all versions of Windows it should be saved in:

    If Windows XP and Windows Server 2003 both use the same network driver it can be saved in:

    If a storage driver only works for Windows XP it should be saved in:

    During the image capture process, each Windows version directory is copied to the computer under C:\Cygwin\home\root\VCL. The order in which the Windows version directories are copied goes from most general to most specific. In the example above, the order would be:

    The following list shows which driver files should be saved in the driver directories:
    /var/lib/vcl/tools/Windows/Drivers - drivers common to all versions of Windows
    /var/lib/vcl/tools/Windows_Version_5/Drivers - drivers used by Windows XP and Server 2003
    /var/lib/vcl/tools/Windows_XP/Drivers - drivers only used by Windows XP
    /var/lib/vcl/tools/Windows_Server_2003/Drivers - drivers only used by Windows Server 2003
    /var/lib/vcl/tools/Windows_Version_6/Drivers - drivers used by Windows Vista and Server 2008
    /var/lib/vcl/tools/Windows_7/Drivers - drivers only used by Windows 7
    /var/lib/vcl/tools/Windows_Server_2008/Drivers - drivers only used by Windows Server 2008

The directory structure under each Drivers directory does not matter. It is helpful to organize each directory by driver class, and each directory should be organized using the same theme. For example:

  1. Install & Configure Provisioning Engines and Hypervisors

    VCL supports the following, please see the related websites for installation and configuration instructions:
    1. xCAT - Extreme Cluster Administration Toolkit
    2. VMware
      1. See the VMware website for installation & configuration information:
      2. See the following pages for additional VCL VMware configuration information:
        1. VCL 2.2.1 - Further steps if using only VMware
        2. VMware Configuration
  • No labels