You can create a Hadoop Template virtual machine using a customized version of CentOS 6.x operating system that includes VMware Tools for CentOS 6.x.

You can create a Hadoop Template virtual machine using CentOS 6.2 or 6.4 Linux as the guest operating system into which you can install VMware Tools for CentOS 6.x in combination with a supported Hadoop distribution. This allows you to create a Hadoop Template virtual machine using your organization's preferred operating system configuration. When you provision Big Data clusters using the customized template the VMware Tools for CentOS 6.x will be in the virtual machines that are created from the Hadoop Template virtual machine.

If you create Hadoop Template virtual machines with multiple cores per socket, when you specify the CPU settings for the virtual machine you must specify a multiple of cores per socket. For example, if the virtual machine uses two cores per socket, the vCPU settings must be an even number. For example: 4, 8, or 12. If you specify an odd number the cluster provisioning or CPU resizing will fail.

Deploy the Big Data Extensions vApp. See Deploy the Big Data Extensions vApp in the vSphere Web Client.

Obtain the IP address of the Serengeti Management Server.

Locate the VMware Tools version that corresponds to the ESXi version in your data center.


Create a virtual machine template with a 20GB thin provisioned disk, and install CentOS 6.x.


Download the CentOS 6.x installation package from to a datastore.


From vCenter Server, create a virtual machine template with a 20GB thin provision disk and select CentOS 6 (64-bit) as the Guest OS.


Right-click the virtual machine, select CD Device, and select the datastore ISO file for the centosversionISO.


Under Device Status, select connected and connect at power on, and click OK.


From the console window, install the CentOS 6.x operating system using the default settings.

You can select the language and time zone you want the operating system to use, and you can specify that the swap partition use a smaller size to save disk space (for example, 500 MBs). The swap partition is not used by Big Data Extensions, so you can safely reduce the size.

The new operating system installs into the virtual machine template.


After you have successfully installed the operating system into the virtual machine template, verify that you have network connectivity by running the ipconfig command. This procedure assumes the use of Dynamic Host Configuration Protocol (DHCP).

If IP address information appears, skip to step 4.

If there is no IP address information shown, which is the case when DHCP is configured, continue with step 3.


Configure the network.


Using a text editor open the /etc/sysconfig/network-scripts/ifcfg-eth0 file.


Locate the following parameters and specify the following configuration.


Save your changes and close the file.


Restart the network service using the commands sudo service network stop and sudo service network start.

sudo service network stop
sudo service network start

Verify that you have connectivity by running the ifconfig command.


Install JDK 6u31-linux-64-rpm.


From the Oracle® Java SE 6 Downloads page, download jdk 6u31-linux-x64-rpm and copy it to the virtual machine template's root folder.


Set the file access.

chmod a+x jdk-6u31-linux-x64-rpm.bin

Run the following command to install the JDK in the /usr/java/default directory.


Edit /etc/environment and add the following line JAVA_HOME=/usr/java/default to your environment.

This adds the /usr/java/default directory to your path.


Restart the virtual machine.


Install VMware Tools for CentOS 6.x.


Right click the CentOS 6 virtual machine in Big Data Extensions, then select Guest > Install/Upgrade VMware Tools.


Login to the virtual machine and mount the CD-ROM to access the VMware Tools installation package.

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
mkdir /tmp/vmtools
cd /tmp/vmtools

Run tar xf to extract the VMware Tools package tar file.

tar xf VMwareTools-*.tar.gz

Make vmware-tools-distrib your working directory, and run the script.


Press Enter to finish the installation.


Remove the vmtools temporary (temp) file that is created as an artifact of the installation process.

rm -rf /tmp/vmtools

(Optional) You can create a snapshot to use for recovery operations. In the vSphere Web Client, right-click the virtual machine and select Snapshot > Take Snapshot.


Deploy the Big Data Extension vApp. See Deploy the Big Data Extensions vApp in the vSphere Web Client.


Run the installation scripts to customize the local lib with CentOS 6.x.


Download the scripts from https://deployed_serengeti_server_IP/custos/custos.tar.gz.


Make the virtual machine template directory your working directory.


Run tar xf to uncompress the tar file.

tar xf custos.tar.gz

Run the script specifying the /usr/java/default directory path.

./ /usr/java/default

Remove the /etc/udev/rules.d/70-persistent-net.rules file to prevent increasing the eth number during the clone operation.

If you do not remove the /etc/udev/rules.d/70-persistent-net.rules file, the virtual machine cloned from the template cannot get an IP address. If you power on this virtual machine to make changes, you must remove this file before shutting down this virtual machine.


Shut down virtual machine.


If you created a snapshot as described in Step 6, you must delete it. In the vSphere Web Client, right-click the virtual machine, select Snapshot > Snapshot Manager, select the serengeti-snapshot, and click Delete.


In the vSphere Web Client, edit the template settings, and deselect (uncheck) all devices, including the CD ROM and floppy disk.


Replace the original Hadoop Template virtual machine with the custom CentOS-enabled virtual machine that you have just created.


Move the original Hadoop Template virtual machine out of the vApp.


Drag the new template virtual machine that you just created into the vApp.


Log in to the Serengeti Management Server as the user serengeti, and restart the Tomcat service.

$ sudo service tomcat restart

Restarting the Tomcat service enables the custom CentOS virtual machine template, making it your Hadoop Template virtual machine.

If in the future you intend to modify or update the Hadoop Template virtual machine operating system, you must remove the serengeti-snapshot that is automatically created each time you shutdown and restart the virtual machine . See Maintain a Customized Hadoop Template Virtual Machine.