If you are are developing or testing the distributed system for automated grading, you may want to set up one or more worker machines in addition to your primary vagrant virtual machine.
Open the Virtual Box application.
Newto create a new machine.
Give it a useful name: e.g.,
Specify the type:
And the version:
Specify the amount of memory: 2048 = 2GB should be sufficient.
Create the disk as a
new virtual disk.
Specify RAM memory: 2048 (2GB)
Create new virtual disk.
Specify size: e.g., 20GB
Download the Ubuntu 18.04 installer 64 bit .iso.
Save this somewhere on your host computer.
Startto power on.
Browse your files to find the Ubuntu installer .iso we downloaded earlier.
Follow the Ubuntu installation menu… Click
Erase disk & Install Ubuntu.
Specify your timezone. Then specify your username, computer name, password.
Then click through various menus, and wait a while installing system. Then restart the VM to finish installation.
At some point, it will suggest that you install updates for Ubuntu 18.04, go ahead and do that. You’ll probably have to reboot.
Allow ssh connections to the worker VM from outside (e.g., from your primary machine): from virtual box, select the VM, click on
Enable Network Adaptershould be checked, then set Attached to:
From the VM, open a terminal and install a bunch of additional packages:
sudo apt update sudo apt install net-tools sudo apt install openssh-server sudo apt install git
Install Guest Additions (Improves screen resolution, copy paste to/from the VM, etc.)
While the VM is running, focus on the VM window. Then from the menu, select
Insert guest additions CD imageOpen a terminal in the VM Go to the guest additions CD directory, and run the guest additions installer:
mount cd /media/<USERNAME>/VBox_GAs_<VERSION>/ sudo ./VBoxLinuxAdditions.run
Get a permanent IP address for your machine Go to your router, assign a fix ip address for your mac address E.g., in a browser, go to
192.168.0.1and log in… Helpful command to find your mac address & current IP address:
Prevent worker VM from going to sleep (so you can send autograding jobs to it at any time).
turn off screen lock
suspend & power button->
automatic suspend== off
Follow the worker installation instructions: