My Two Cents

A blogging site from a hacker.

Create a Virtual Ubuntu Cluster on VirtualBox

  1. Create a virtual machine
  2. Change the network to bridge mode
  3. Install Ubuntu Server OS
  4. Setup the hostname to something like “node-01”
  5. Boot up the new virtual machine
  6. Remove some network rules sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules
  7. Clone the virtual machine
  8. Initialize with a new MAC address
  9. Boot up the cloned virtual machine
  10. Edit /etc/hostname: change “node-01” to “node-02”
  11. Edit /etc/hosts: change “node-01” to “node-02”
  12. Reboot the cloned virtual machine
  13. Repeat step 7 to 13 until there are enough nodes

Note: the ip address of each node should start with “192.168.” unless you don’t have a router.

Comments