Running your VM on NREC

In order for you to be able to solve the home exams, we have reserved resources for all students taking the course on NREC. This is a cloud infrastructure platform delivered in collaboration between the universities of Oslo and Bergen.

There is a quite comprehensive guide to using the service available here, but in the interest of brevity here is a short step-by-step guide:

Access to NREC

All students who registered in NREC and submitted our signup form have been granted access to the IN3230/4230 project. If you did not do this, or for whatever reason do not have access do the following:

  1. Make sure you've signed up to NREC first-time sign in. using your UiO username.
  2. Make sure you've submitted the online form.

If you still do not have access, send an email to in3230@ifi.uio.no and mention your UiO username in the body of the email.
Note that we will bulk-add more users every day based on registrations in the form, so you might have to wait until the next day.

Provisioning a VM instance running the IN3230/4230 image

This is mostly the same as the official guide to creating a Linux virtual machine, except that we will select a custom disk image.

  1. Log into the NREC dashboard
  2. (Optional, but recommended for better performance) Select the "osl" region by clicking on "uio-ifi-in3230-4230-h22 bgo" in the upper left corner of the page. Otherwise your VM will be physically located in Bergen.
  3. In the menu on the left, navigate to Project > Compute > Key Pairs.
  4. If you already use an SSH key pair to log into e.g. the Ifi login server, pick "Import key pair" and paste in your public key. Usually you will find this at ~/.ssh/id_rsa.pub on a *NIX machine.
  5. If you have never set up SSH key pairs, you can instead choose the "Create Key Pair" button. Follow the wizard and make sure to select "SSH key" in the  "Key type" dropdown. Choose a key pair name you will recognise. Names may only include alphanumeric characters, spaces, dashes and underscores. You will download the key pair and point your SSH client at it. Remember to restrict the access to the private key using "chmod 0600 <key_name>.pem", as SSH will refuse to use unless it’s properly protected.
  6. In the left-hand menu, navigate to Project > Compute > Instances.
  7. Hit "Launch instance".
  8. On the "Details" tab, name your VM instance something descriptive (include your username) and leave the rest as default.
  9. On the "Source" tab, select "in3230-h22-master-v01 " from the list at the bottom (click the arrow icon to sel