Setting up your CS144 VM using VirtualBox

This guide will walk you through setting up the provided VM image in VirtualBox.

Table of contents

  1. Prerequisites
  2. Set up the VM image
  3. Connect to your VM
  4. (optional) Set up a shared folder

Prerequisites

  1. Install VirtualBox.

    If your host OS is linux, your distribution may already package virtualbox:

  2. Download the VM image.

    This is a large file, so download it before the Wednesday-night lab session (to avoid everybody downloading it at the same time), ideally over a wired connection or by sitting close to an access point.

Set up the VM image

Start VirtualBox. You should see this:

VirtualBox home screen
VirtualBox home screen

Type Ctrl-I or click “File” -> “Import Appliance…” to bring up the import window. Type in or browse to the location of the cs144_vm.ova file you downloaded above.

Import Appliance dialog
Import Appliance dialog

The default settings are acceptable, but it’s better if you can increase the number of virtual CPUs and the amount of RAM available to your VM in order to increase performance.

Adjust the CPU and Memory settings if you’d like
Adjust the CPU and Memory settings if you’d like
Loading…
Loading…

Success! Back at the home screen, select your newly imported VM and hit the Start icon.

Ready to go
Ready to go

The VM will boot to a textual interface. Your username is cs144, and the default password is also cs144.

We recommend that you interact with your VM primarily using ssh. Many students use the SSH integration in an editor like VS Code to edit files on the VM using SSH. We do not recommend setting up a "shared folder" or a graphical interface on the VM itself.

Connect to your VM

The VM image is set up so that VirtualBox will forward TCP connections to localhost:2222 on the Host machine to port 22 (ssh) on the VM. When your VM is running, you should be able to connect as follows:

ssh -p 2222 cs144@localhost

For Windows users needing an SSH client, we recommend Putty.