How To Build A Cluster

Table of contents:

How To Build A Cluster
How To Build A Cluster

Video: How To Build A Cluster

Video: How To Build A Cluster
Video: How To Make A Cluster Computer (Part 1) 2024, November
Anonim

By means of MPICH2 it is possible to assemble a cluster with any number of computational nodes, the number of which will depend on the processors and cores in them. Virtual machines should be used according to the number of processors, without defining more than one CPU for each node.

How to build a cluster
How to build a cluster

Necessary

  • - MPICH2;
  • - VirtualBox;
  • - MS Visual Studio;
  • - Windows XP SP3 OS distribution kit.

Instructions

Step 1

Install VirtualBox and make a virtual machine named Node1. When installing Windows XP, specify Node1 as the computer name and assign it to the Workgroup. You can enter any username and password.

Step 2

Go to the properties of the virtual machine and set the connection type to "Network Bridge". For the Name parameter, specify the network adapter of the computer connected to the network.

Step 3

Start Node1 and install the MS Visual Studio application, the version of which must be at least 2003. Install MPICH2. To activate the network service with the password samplepassword (can be anything) open the console and enter the command: cd C: Program FilesMPICH2 insmpd -install -phrase samplepassword

Step 4

In order for the MPICH2 application to have rights to execute tasks on the virtual machine on behalf of your user, enter the command: mpiexec –register. After entering the login and password, the rights will be assigned.

Step 5

In the settings of the network adapter, specify a static address as the IP address of the virtual machine, and then proceed to cloning it.

Step 6

Create a new virtual machine named Node2, remembering to uncheck the "Bootable hard drive" checkbox in the process. After completing the creation of the machine, open the "Media" tab in its properties and add a hard disk using the "Select existing disk" command.

Step 7

Locate the virtual machine disk Node1 at C: Users Account Name VirtualBox VMsNode1Snapshots. In this folder, the searched disk will be the last file with the.vdi extension by the date of creation.

Step 8

Disconnect the Node 1 machine and start Node2. Specify Node2 for the computer name and set the IP address to a different one.

Step 9

After that, you can create additional nodes on your computer. Install VirtualBox on a new virtual machine and copy the VirtualBox and VirtualBox VMs directories from your profile into it. After that, use autocorrect to correct all the paths to the user profile in the VirtualBoxVirtualBox.xml-prev and VirtualBoxVirtualBox.xml files of the new machine.

Recommended: