Forwarded Port Already in Use


Host-Only / Static Networking

If you are having trouble being able to view the Submitty webpage after a vagrant up you might need to modify the interfaces in your VM. To fix this:

As root modify /etc/network/interfaces and add:

# The host-only network interface
auto eth1
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255

References and useful links: https://gist.github.com/pjdietz/5768124 and http://christophermaier.name/2010/09/01/host-only-networking-with-virtualbox/


SSH connection was unexpectedly closed

Try the following steps:


Guest Additions

Submitty vagrant no longer uses Virtual Box Guest Additions. If you see errors about version mismatch with Guest Additions, and if the VM hangs trying to update the version of Guest Additions to match the host version of Guest Additions, you may have old versions of the development process on your machine and may need to more completely uninstall and reinstall Virtual Box and Vagrant to reset your system.

NOTE: THESE ACTIONS WILL DELETE ALL VMS ON YOUR SYSTEM.

Some things to check:

Troubleshooting Pre-Packaged VM

Some issues with the pre-packaged VM can be fixed by installing a different version. Once you’ve installed a pre-packaged VM, it does not recieve version updates, so it can also be a good idea to update the pre-packaged version periodically. To see your current VM version, run vagrant box list and look at the output. You should see something like SubmittyBot/ubuntu22-dev (virtualbox, 26.06.00.2606070357, (amd64)). In this case, 26.06.00.2606070357 is the version number.

After running vagrant box list, you may see multiple versions of the VM. If you want to know what version the VM is using when you run vagrant up, follow these steps:

  1. Run vagrant up and look at the output.
  2. You should see something like ==> ubuntu-22.04: Checking if box 'SubmittyBot/ubuntu22-dev' version '26.06.00.2606070357' is up to date....

In this case, 26.06.00.2606070357 is the version number.

If you have multiple versions of the VM, you can also run vagrant box prune to remove the old versions.

Instructions for Updating the Pre-Packaged VM Version

From your main Submitty repository, e.g. <SOMETHING>/GIT_CHECKOUT/Submitty/, run:

vagrant box update

This will download the newest version of the VM. It will take approximately 30 minutes to download.

Instructions for Specifying the Pre-Packaged VM Version

These steps may be useful if you wish to roll your VM back or to upgrade to a version besides the newest available.

From your main Submitty repository, e.g. <SOMETHING>/GIT_CHECKOUT/Submitty/, run:

vagrant destroy

This will destroy your current VM and reset the Vagrant environment.

Note: If you have more than one VM (perhaps by accident), you can see a list of VMs with the command vagrant global-status. VMs listed will be given a unique id. You can then run vagrant destroy 1a2b3c4d. Replace 1a2b3c4d with the id of the VM you wish to destroy.

Then, on Linux/MacOS, type:

PREBUILT_VERSION={version} vagrant up --provider=virtualbox

or on Windows, type:

SET PREBUILT_VERSION={version} 
vagrant up --provider=virtualbox

If you are importing a new version, it will take approximately 30 minutes to download.

The version must be only the numbers, not including the v in front, for example 26.06.00.2606070357 not v26.06.00.2606070357.

Note: You can find pre-packaged Submitty VM versions on the Hashicorp Vagrant Box Catalog by navigating to the ‘Versions’ tab in the sidebar. Make sure to follow the Submitty installation instructions when setting up your development environment. A complete list of Vagrant commands can be found here: Hashicorp Vagrant CLI Docs.