Friday, September 26, 2014

Rocks Cluster - Install On VMWare Workstation

Setup of Login-Node and Compute Node Utilizing Rocks Clusters 6.1.1 (SandBoa) and CentOS 6.5

Download Page:
http://www.rocksclusters.org/wordpress/?page_id=477


  1. In VMWare Workstation:
  2. Create a blank VM using typical settings and the Rocks ISO/CD selecting Linux/CentOS 64-bit as the operating system.
  3. Customize the hardware of the VM giving it a NAT Network Adapter as well as a Host-only Network adapter. 
  4. Virtual Network Settings for 1st Adapter
    1. VMNet10 - Host Only
    2. IP 10.1.1.0
    3. Subnet Mask 255.255.255.0
    4. Disable DHCP
  5. Virtual Network Settings for 2nd Adapter
    1. VMNet8 - NAT
    2. IP 192.168.74.0
    3. Subnet Mask 255.255.255.0
    4. Disable DHCP


Create HeadNode:
Upon boot, the Rocks Clusters splash screen should appear. Type build to launch to begin setup.

Rolls - 

  1. For this installation we will select the following rolls:
    1. base
    2. ganglia
    3. kernel
    4. os
    5. web-server

Cluster Information - 
Add information as applicable.

  1. Ethernet for Public Network - 
    1. eth1 - Public IP address - Used to communicate outside of the cluster
    2. IP             192.168.74.80
    3. Netmask  255.255.255.0
  2. Ethernet for Private Network
    1. eth0 is for the private IP address used within the cluster
    2. IP:            10.1.1.1
    3. Netmask: 255.255.255.0
  3. Misc. Network
    1. Gateway  192.168.74.2
    2. DNS        192.168.74.80

Once the system comes up, ensure VM settings still have

  1. Network Device 1 as VMNet10 - Host Only
  2. Network Device 2 as NAT.

At this point it's recommended to install VMWare tools and check connectivity to the internet.

To run yum update use the following command -

  1. yum --enablerepo=updates update 

To add a user complete the following -

  1. login as root
  2. useradd <username>
  3. passwd <username>
  4. rocks sync users
Install VMWare Tools and restart
Now would be a good time to clone the VM for troubleshooting.
NOTE: If installing Torque/Maui do this before building compute nodes.


Create Compute-0-0:

  1. Create a new VM with the same VMNet10 network adapter.
  2. On the head node run insert-ethers and select compute
  3. Boot compute-0-0 vm
  4. Compute-0-0 should PXE boot and automatically begin provisioning. Once there is a (*) next to the device press F8 to quit insert-ethers and type rocks-console compute-0-0 to view the installation in progress.
  5. Repeat this as many times as necessary for additional compute nodes.
  6. NOTE: Updating compute nodes with yum could lead to problems.

Create Login-0-0:

  1. Create a new VM with the same VMNet10 network adapter and NAT network adapter
  2. On the head node run insert-ethers and select login
  3. Boot login-0-0 vm
  4. Login-0-0 should kickstart and automatically begin provisioning. Once there is a (*) next to the device press f8 to quit insert-ethers and type rocks-console login-0-0 to view the installation in progress.
  5. On headnode execute the following commands 
    1. # rocks set host interface ip login-0-0 iface=eth1 ip=192.168.74.81
    2. # rocks set host interface subnet login-0-0 eth1 public
    3. # rocks add host route login-0-0 192.168.74.81 eth1 netmask=255.255.255.0
    4. # rocks sync config
    5. # rocks sync host network login-0-0
  6. Update the login node with  yum --enablerepo=updates update


2 comments:

  1. I'm using VMware Workstation Pro 12 and Rocks 6.2.

    With the same configuration I got the internet to work - but I cannot start the dhcpd service.

    If I type dhcpd in the terminal I get "No subnet declaration for eth0 (no IPv4 addresses)."

    Please help!

    ReplyDelete
  2. I got it figured out.

    For VMware HOST-ONLY adapter:
    IP 10.1.0.0
    Subnet Mask 255.255.0.0

    eth0
    IP: 10.1.1.1
    Netmask: 255.255.0.0

    ReplyDelete