The instructions below will setup an instance of Submitty on your own hardware that will have several courses, many sample assignments, and a hundred students with assignment submissions so you can explore the features of Submitty as it would appear “mid-semester”. Your host computer can run any modern operating system (Windows, Mac, or Unix/Linux). The installation process will create a new Virtual Machine (VM) on your computer and the VM will use the Ubuntu GNU/Linux operating system.
To develop with a Virtual Machine (VM), your computer should have at least 8GB of RAM and a 64-bit host OS. AMD-V or Intel VT-x are also required (most computers have these). Submitty is RAM and I/O intensive, so more RAM and a fast disk are better.
Virtualization is generally enabled by default
Windows 10 Instructions
Open Settings, navigate to Advanced Startup and select Restart Now.
Navigate to Troubleshoot -> Advanced Options -> UEFI Firmware Settings and restart as suggested.
Navigate to BIOS Settings from your PC’s startup menu, locate Virtualization Technology and enable it.
Enter BIOS (generally by pressing Del or F12 while booting) and navigate the BIOS Settings, locate Virtualization, and enable it.
Be sure to choose Hardware Virtualization in the System -> Acceleration settings of the virtual machine you are using.
NOTE If using secure boot, vagrant may fail to work with VirtualBox. You will then either need to disable secure boot from the boot menu/BIOS or follow these steps to self-sign the necessary packages to run vagrant and VirtualBox.
Download and install VirtualBox, Vagrant.
Below are quick steps to get everything installed and running.
You can just go to the respective sites and download the necessary binaries.
Mac Installation You can either go to respective sites and download the necessary binaries or install homebrew if you don’t have it and then run:
brew cask install virtualbox brew cask install vagrant
NOTE: The Ubuntu repository does not contain the latest version of Vagrant or VirtualBox and using them may not work nor are they supported. We recommend that you either download the necessary binaries from their respective steps or follow the steps outlined below for each: VirtualBox: https://www.virtualbox.org/wiki/Linux_Downloads Vagrant: https://vagrant-deb.linestarve.com/
Open your terminal/cmd.exe and run:
vagrant plugin install vagrant-vbguest
Note: You will want to run
vagrant plugin updateevery once in a while to keep the plugin up-to-date.
Clone the Submitty repository to a location on your computer (the “host”).
git clone https://github.com/Submitty/Submitty.git
OPTIONAL: If you will be developing code in one of the companion Submitty repositories (e.g., AnalysisTools, Lichen, RainbowGrades, Tutorial), also clone those repositories to the same directory. For example:
home └── myusername └── Submitty └── GIT_CHECKOUT ├── AnalysisTools (optional) ├── Lichen (optional) ├── RainbowGrades (optional) ├── Submitty └── Tutorial (optional)
This host directory structure will be shared / synced between your host operating system and the Submitty virtual machine.
Navigate into the Submitty repository on your computer in a shell/terminal and type:
Windows should run CMD or powershell on administrator mode
Vagrant will build your VM. This will take maybe 30 minutes to a few hours depending on your Internet connection speed. When this command finishes, your VM is ready to use.
If an error is thrown after running this command, you may try uninstalling Virtual Box and all virtual machines by typing the following commands:
(Note: This should only be done if you do not have any other virtual machines.)
To remove Virtual Box type:
sudo apt-get remove --purge virtualbox
To remove all virtual machines and configuration files type:
sudo rm ~/"VirtualBox VMs" -Rf sudo rm ~/.config/VirtualBox/ -Rf
This will delete all virtual machine settings. Then install the latest version of Virtual Box and vagrant from the links given in step 3 (using Ubuntu Software).
To stop and restart the VM:
When you are finished working, you can suspend the virtual machine (save state, a little faster to restart):
or halt the virtual machine (complete VM shutdown, a little slower to restart):
To resume work on a VM that is suspended or halted:
If you just want to restart the VM (same as halt/up), type:
If you haven’t made any drastic changes to the build script, you should be able to just re-provision the VM. You can do this by using the
--provisionflag with either
reload. This is will be faster than doing a full
up, however depending on the changes you’ve done to the VM, could leave it potentially unstable. If the VM breaks, simply
NOTE: when resuming work, you may see this warning several times,
default: Warning: Remote connection disconnect. Retrying.. .These warnings are not harmful and can be ignored.
To completely delete the virtual machine (such as to start over from scratch with a fresh VM), type:
And if desired:
When the VM is “up”, you can go visit the homework submission website.
From a web browser (Chrome, Firefox, IE, etc.) on your host computer,
If you have the Ubuntu 18.04 VM, go to: http://192.168.56.111/index.php
If you have the Ubuntu 16.04 VM, go to: http://192.168.56.101/index.php
If you have the Debian 8 VM, go to: http://192.168.56.201/index.php
(see the VM login & password info below)
You can test the submission, autograding, and viewing of the grades details by uploading sample submissions from the Submitty repository, located in one of these these directories:
For the “tutorial” course:
For the “sample” course:
When the VM is “up”, you can connect from your host computer to the virtual machine via ssh. Windows users will need to install SSH software (e.g., Cygwin or Putty ). From a terminal in the repository directory type:
You will connect to the VM as the
vagrant sshasks for a password for the firstname.lastname@example.org user and “vagrant” without the quotation marks does not work, look at the vagrant ssh config file and make note of the hostname and port.
Then directly ssh into the VM by
ssh vagrant@hostname -p port
If it asks for password, it should be “vagrant” and then
to login as the root user. You should then see you are logged in as root@vagrant.
The following users exist on the VM:
user password role vagrant vagrant OS user root vagrant OS user submitty_cgi submitty_cgi Submitty process submitty_php submitty_php Submitty process submitty_daemon submitty_daemon Submitty process postgres postgres database process instructor instructor Submitty user ta ta Submitty user student student Submitty user
The VM has the following four courses by default and they are all part of the current semester:
Note: The current semester is calculated by either using an
sif in the month is < 7 else use
fand then take the last two digits of the current year. So April 2017 would be
s17while September 2017 would be
Vagrant up fails
If it has been a while since your last
vagrant destroy and
vagrant up you may need to
update/upgrade/reinstall the virtual box, vagrant, vagrant vb-guest, and the installed
boxes on your system:
For example, on Mac:
brew cask reinstall virtualbox brew cask reinstall vagrant vagrant plugin update vagrant box update
Similar instructions for other OS.