/Advanced-Database-Systems-Cluster

A vagrant script to create a cluster for the Advanced Database Systems at Aston University

Primary LanguageShell

Advanced-Database-Systems

Getting Started

  1. Download and install VirtualBox 5.1.x
  2. Download and install Vagrant
  3. Download and install Git for Windows (Windows only)
  4. Open Terminal or Git Bash
  5. Clone this repository to a folder of your choice git clone https://github.com/Tello-Wharton/Advanced-Database-Systems-Cluster.git
  6. Run chmod -R 755 Advanced-Database-Systems-Cluster on the folder (Linux and Mac only)
  7. Enter the Advanced-Database-Systems folder
  8. Run vagrant up
  9. Run vagrant ssh adb-master (or just vagrant ssh master for older versions) to ssh into the virtual machine's shell
  10. Login with vagrant as the username and vagrant as the password

Useful Commands

  • If there is something wrong with your setup, you can remove everything by using vagrant destroy
  • If you just want to shutdown your virtual machine, you can use vagrant halt

Using the virtual machine

  • This virtual machine is set up to be used by the root user, trying to use other users may not work out for you
  • To get data onto the virtual machine, simply place it in the Advanced-Database-Systems-Cluster directory on your host machine, this is accessible from your virtual machine in the /vagrant folder
  • If you are using a lab computer, I suggest backing up your data before leaving the lab. For now I would do this by backing up to the /vagrant folder, and copying that to a memory stick. I will look for a more elegant solution in the future.
  • If your vagrant up does not work on the first try, that is likely due to a network error on the lab computer's part, and you should perform vagrant destroy and try again.