M  O  S  I  X
Cluster Operating System

Home     About     Distributions     VCL     Cloud     Wiki     FAQ     Pubs     Contact

Building a MOSIX Virtual Cluster with VMware Server

Instructions on how to create a MOSIX virtual cluster on Linux and/or Windows computers:

1. Required software

  • Operating System on each hosting (physical) computer: Linux or Windows.
  • Download and install VMware Server 1.0.9 (recommanded) on each hosting computer.
  • Download the MOSIX ready-to-run virtual-disk image.
  • Uncompress (bunzip2 on Linux, WinZip on Windows) the VMOSIX.vmdk.bz2 file.
  • Make a different copy of the VMOSIX.vmdk file for each Virtual Machine (VM): each VM should use its own copy of the virtual-disk image, for example "vmos-1.vmdk", "vmos-2.vmdk", etc.

2: Creating a Virtual Machine on each hosting computer using VMWare Server 1.0.9.

  • Start the VMware console and connect to a desired hosting computer (usually the local host).
  • For each new VM that you want to create:
    • In the "Home" tab, click "New Virtual Machine" (or File -> New -> Virtual Machine).
    • Click "Next".
    • Select the "Custom" option.
    • Select "Guest Operating System" -> "Linux", Version -> "Other Linux 2.6.x kernel".
    • Select the "Virtual machine name" of your choice (e.g. vmos-1).
    • Select a desired "Access rights".
    • On Windows, select your desired "Virtual machine account".
    • Select 1 or 2 "Processors", depending on your hardware.
    • Select the amount of "Memory".
    • Select the "Network Type":
      • If this VM is intended to be a part of a stable MOSIX cluster, select "bridged networking".
      • If this VM is only intended for an evaluation test, select "bridged", "NAT" or "host-only".
      • When selecting "bridged networking", you should either have a DHCP server on your network, or be ready to enter an IP-address manually for the new VM.
    • Select the "I/O adapter types": it is best to select "LSI Logic".
    • Select a "Disk" -> "Use an existing virtual disk"
      • Browse for an "Existing disk file" and select a unique copy of the disk image, such as "vmos-1.vmdk"
    • Select "Finish"
  • Repeat the above steps for each new VM (remember to use a different virtual-disk image for each VM).

3: Starting MOSIX for the first time

  • Start (power-on) all the virtual machines.
  • Wait until you are asked about the VM's IP address, then follow the instructions.
  • Login on any one of the VMs (login: "root", password: "mosix").
  • Type "cluster", then follow the instructions.

4: Checking MOSIX

  • Login to any VM.
  • Checking the configuration:
    • Run "mon" (You should see all the VMs in your virtual cluster).
    • Press 's' to view the speeds and 'm' to view the memory of the VMs.
    • Press 'q' to exit "mon".
  • Checking automatic process migration:
    • Run "mosrun testload&" X times, where X is the number of processors in your cluster.
      For example: in a cluster with 3 VMs, each with 1 processor, run the command "mosrun testload&" 3 times.
    • Run "mon" and observe that each VM is running one process (per CPU).
    • Press 'q' to exit "mon".
    • Run "moskillall" to end the test.
  • Checking manual migration:
    • Run "mosrun -{VM-number} -L testload &" (for example "mosrun -2 -L testload &").
    • Run "mon" and observe that the process was migrated to the target VM.
    • Press 'q' to exit "mon".
    • Run "mosps" to see where the process is running - note the value of PID.
    • Run "migrate {PID} {another-VM-number}" (for example, "migrate 4567 3").
    • Run "mosps" to verify that the process migrated to the other node.
    • Run "moskillall" to end the test.
  • Further information and examples are available in the MOSIX tutorial.
Copyright © 1999-2014 A. Barak. All rights reserved.