Table of Contents

Virtual Machine

OpenStack

For any labs requiring a Linux-based OS, you may use the university's private cloud service (OpenStack).

Using this, you may create / administer your own Virtual Machines (using a Web-based UI). Note that you require some extra permissions on your student account before-hand (all course participants should have received them).

Since the VMs have private IPs (not usable from the Internet), you will also need special care when connecting (ssh–ing in) to them. That is, use a special frontend machine as proxy / intermmediary: fep.grid.pub.ro. You can do this either by ssh–ing into fep and, from there, ssh-ing to your virtual machine's private IP address (written in OpenStack's UI when creating the VM), OR (the preferred method) by using an advanced ssh' feature: jump hosts!

Here are the rough steps:

1. First time setup (only need to to this once, unless you lose your key!):

2. Create a new Virtual Machine on the UPB's OpenStack private cloud platform:

Our institution provides some rather limited resources at our disposal (mainly, a limit of 40 VMs).
Please delete the instance after you're done with your lab / assignment to allow others to use the infrastructure without any hurdles!

Local VM

You can find a downloadable VM for the ISC labs, together with the source code, on GitHub: https://github.com/cs-pub-ro/ISC-lab-vm/releases

Download either VirtualBox or VMWare Workstation in order to readily use it!

Running the Virtual Machine using VMware

Running the Virtual Machine using VMware

  • Download the VM's project and open the .vmx file;
  • Note: it is highly recommended to use a SSH terminal from the physical system to work with the virtual machine. This way, we can use copy-paste in the terminal, we can customize the font, have scrollback and many other conveniences. To do this, follow the steps below:
    • Log in to the virtual machine console (the black screen) using the student account with the password student.
    • Find out the IP address of the virtual machine on the eth0 interface:
      root@host:~# ip addr sh eth0
    • From the physical system, open a terminal and initiate an SSH session using:
      student@PC:~$ ssh student@<VM_IP_ADDRESS>

      where <VM_IP_ADDRESS> is the IP address of the virtual machine as obtained above.

    • Aaand that's it!

Running the Virtual Machine using VirtualBox

Running the Virtual Machine using VirtualBox

  • Download the VM's project and open the .vbox file;
  • Don’t start it yet, we still have a few settings to configure!
  • It is highly recommended to use a SSH terminal from the physical system to work with the virtual machine. This way, we can use copy-paste in the terminal, we can customize the font, have scrollback and many other conveniences. To do this, follow the steps below:
    • For VirtualBox, we must manually add a port forwarding rule so we can access the machine via SSH from the host;
    • With the virtual machine turned off, open Settings → Network → Advanced → Port Forwarding and add the following rule:

 Port forwarding for SSH access from host machine

  • From the physical system, open a terminal and initiate an SSH session using:
    student@PC:~$ ssh -p 10022 student@localhost

The access credentials for the local virtual machine (the host station) are (syntax: username:password):

  • student:student
  • root:student

By default, you can connect via SSH only using the student user; you can then switch to root using the command sudo su.