Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views2 pages

Lab Experiment 2

Uploaded by

Nishant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Lab Experiment 2

Uploaded by

Nishant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab Experiment 2:

Cloud Computing

Instructor: Gaurav Somani

Lab instructions:

1. Copying during the lab, assignment preparation and submission will be treated as a case of plagiarism.
Verbal discussion is only allowed with an undecided threshold.
2. Activities like chatting, browsing social networking websites and any other set of related activities
during the lab hours will result into severe punishment.
3. Your instructor(s) is available to help you out. Do not request them to debug your program/settings, in
case of a protocol/code. Try to complete the programs/configuration on your own to boost your self-
confidence.

1. Establish a MPI Cluster using virtualization.


2. Following steps can be followed on VMware Server, Xen or VirtualBox software

•Two core system with at least 2 GB memory.


•Install one Linux Virtual machine (OpenSuse11)
•Allocation – 2 Processor, HDD- 8 GB, RAM- 384.
•Bridged network connection with suitable driver (Default PCNetFast III with Wi-fi. Choose wired if
you have one)
It will allow VM to communicate with out side world and vice versa.
•MPI Download - https://www.mpich.org/downloads/versions/
•Unpack this archive in /usr/local/.
•tar –xvf mpich.tar.gz
•cd mpich-1.2.7p1
•./configure
•make
•export $PATH to mpich-1.2.7p1/bin
–export PATH=$PATH:/usr/local/mpich-1.2.7p1/bin
– (in ~/.profile and ~/.bashrc)

Make three copies of this virtual machine with changing name, location and UUID.
•Now we have four machine- name them ram, bharat, laxman and shatrugan.
•/etc/hosts/ by doing
•#cat /etc/hosts 172.22.101.190 ram 172.22.101.190 bharat 172.22.101.188 laxman 172.22.100.143
shatrugn
•MPI requires rsh or ssh. (Password-less)
•Copy your public key to the Server you want to SSH.
•Generate your keys
•ssh-keygen –t rsa
•No passphrase should be given
•Generates two files id_rsa and id_rsa.pub
•Append these files to every node’s ~/.ssh/authorized_keys file (Tricky)
•Now you can do password free ssh like
–ssh laxman

You need to have either NFS for MPI or can have executable program copy on each node
•Now compile your program on root node (ram in our case)
•mpicc –o program program.c
•Run this program
•mpirun –machinefile machines –np 4 program

3. Run the sample programs available in the MPI documentation and provide a report containing
the instructions you followed to install a cluster and program run examples. You may choose a
different way or OS to install the MPI cluster. This information and any additional suitable
information must be available in the report.

You might also like