VirtualBoxVirtualBox Extension Pack
Extensions, and use the Install button to navigate to where you have downloaded the extension pack file in the previous stepNetwork
Host-only Networks tab, if a network does not exist, use the Create button to create a networkAdapter tab, select Configure Adapter Manually. This should give you an already allocated IPv4 address and network mask.DHCP Server tab and check the Enable Server checkbox.NAT Networks Tab, and add a network using the Create button at the top.Home (or use Machine), click on New...COMP1071-VM1.OS as LinuxOS Distribution as UbuntuOS Version to Ubuntu (64-bit)> Specify Virtual Hardware to expand, set Base Memory to 2048 MB (2 GB), and specify Number of CPUs as 2> Specify virtual hard disk, and under Create a New Virtual Hard Disk set the Disk size to 16 GBLeave the rest of the settings as default, for example, the Hard Disk Type and Format should be VDI and should NOT have the Pre-allocated Full Size checked
Settings icon, and select Network. Configure the following Settings:
Adapter 1 attached to NAT Network, and choose your NAT network name from the Name drop-downAdapter 2, attached to Host-only Adapter, and select the name of your host-only networkChoose a Disk File.... Navigate and select your Ubuntu Server ISO file.username to be ubuntu, and choose a password you can rememberhostname or Your servers name to be pc+ your student ID (for example, pc20059995)OpenSSH Server when it is offered. You do not need to import an SSH identity.ENTER key to reboot.server-check.sh ScriptLog onto the default ubuntu account. Run the following commands to ensure your software is up to date, and ensure that the curl tool is installed (it should be by default). The curl utility will be used by the server-check.sh script as well.
# update the package lists and upgrade the software sudo apt update sudo apt upgrade # make sure curl utility is installed sudo apt install curl # use curl to download the script to your server sudo curl https://gorbehnare.github.io/COMP1071/server-check.sh -o /root/server-check.sh # make the script executable sudo chmod +x /root/server-check.sh
# update the package lists and upgrade the software
sudo apt update
sudo apt upgrade
# make sure curl utility is installed
sudo apt install curl
# use curl to download the script to your server
sudo curl https://gorbehnare.github.io/COMP1071/server-check.sh -o /root/server-check.sh
# make the script executable
sudo chmod +x /root/server-check.shFor the next labs, in order to check your lab progress and a score, you run the script using the following format:
# Use your firstname, lastname, and student ID. # For the -l option, N is the lab number, can check one or more labs sudo /root/server-check.sh -l N firstname lastname studentnumber
# Use your firstname, lastname, and student ID.
# For the -l option, N is the lab number, can check one or more labs
sudo /root/server-check.sh -l N firstname lastname studentnumberThe labs for this course are cumulative, meaning the results of one lab may affect the rest of the labs. It is important that you back up your VM after the successful completion of each lab. In case of an issue or mistake in the following labs, you can restore to a state where you had a good working machine. If you do not have a backup to restore to, you will need to start from Lab 0 and complete every lab to get back to the point where you can start your current assignment.
sudo poweroff, do not just exit or suspend the VM from your virtualization software.File > Preferences... and under General, there is the Default Machine Folder optionShow in Explorer. However, make sure to navigate to one folder up to back up the entire VM in its directory.NOTE: In my experience, this method can be more resilient than relying only on snapshots. I have experienced issues where snapshots were corrupted and created unsolvable issues. Additionally, you can move your backup to any other medium or computer and keep your VM safe even if you lose access to your system for any reason. Do this, even if you are using snapshots, and also protect your backups.
If you are experimenting with your machine or attempting a new lab and want a quicker method of saving your system's current state, you can take a snapshot.
sudo poweroffsnapshots tabCurrent State and choose Take...Snapshot menu at the top and choose Take..., but if you have taken multiple snapshots, the Snapshots tab is the place where you can see and manage all snapshots in one place.This lab is required, but is not graded. This lab creates the VM that you will be using for all the following labs. If you lose your VM for any reason and you do not have appropriate backups, you will have to start from doing this lab and every lab in between again, until you get to your current assignment.