Lab Activity: Install Linux in a Virtual Machine and Explore the GUI

Background / Scenario

Computing power and resources have increased tremendously over the last 10 years. A benefit of multi-core processors and large amounts of RAM is the ability to install multiple operating systems through the use of virtualization on a computer.

With virtualization, one or more virtual computers can operate inside one physical computer. Virtual computers that run within physical computers are called virtual machines. Virtual machines are often called guests, and physical computers are often called hosts. Anyone with a modern computer and operating system can run virtual machines.

In this lab, you will install a Linux OS in a virtual machine using a desktop virtualization application, such as VirtualBox. After completing the installation, you will explore the GUI interface. You will also explore the command line interface using this virtual machine in a lab later in this course.

Required Resources

  • Computer with a minimum of 8 GB of RAM and 25 GB of free disk space

  • Network connection to the ITC network

Part 1: Prepare a Computer for Virtualization

In Part 1, you will download and install desktop virtualization software and a Linux OS image.

To improve download speeds IHCC has pre-downloaded software you will be using in this lab and is hosting them on local servers. The links and sites in this lab to download software from will only work when connected to the campus ITC Network but many of the items (VirtualBox and Linux Mint for example) can be freely downloaded from public web sites.
  1. Download and install VirtualBox.

    Oracle VirtualBox is one virtualization program, called a hypervisor, that you can download and install to support running virtual machines. VirtualBox is free for personal and educational use. Other client virtualization programs include VMware Workstation, VMware Fusion, Parallels Desktop, Microsoft Hyper-V, and QEMU.

    1. Use the web browser on your lab PC to navigate to http://172.17.139.70:8080/ which is where we’ll download all files from in this lab activity. Click to download the VirtualBox-7.1.4-165100-Win.exe and Oracle_VirtualBox_Extension_Pack-7.1.4.vbox-extpack installation files.

    2. After the VirtualBox installation files are downloaded, run the installer (the file ending in .exe) and accept the default installation settings.

  2. Open the VirtualBox Application and install the Extension pack

    1. Select the File → Tools → Extension Pack Manager

    2. Click the "Install" button in the upper right toolbar

    3. Locate the Oracle_VirtualBox_Extension_Pack-7.1.4.vbox-extpack file you previously downloaded and select it.

    4. Complete the installation of the extension pack.

  3. Download a Linux Mint Installation CD Image.

    1. Use the web browser on your lab PC to navigate to http://172.17.139.70:8080/ again if you closed the page. Click to download the linuxmint-22-cinnamon-64bit.iso CD image file. CD and DVD images typically end in .iso and are called "iso (ICE-O) files".

  4. Create a New Virtual Machine.

    1. If you did not choose to open VirtualBox after your installation, click Start and search for VirtualBox. Click Oracle VM VirtualBox to open the manager. When the manager opens, click New to start the Ubuntu installation.

    2. In the Virtual machine Name and Operating System screen, type Linux Mint in the Name field.

      1. Review the location of the Folder field. This will be the location of the virtual hard drive for this virtual machine.

      2. In the ISO Image field, click the dropdown and locate the downloaded Linux Mint ISO image. Notice that the Type and Version fields are automatically filled in and grey out.

        Even though we are installing Linux Mint you’ll see the type is set to "Ubuntu". This is because Linux Mint is based on Ubuntu (which is based on Debian. Not every possible Linux distribution can be included in the list of operating system types so it’s best to choose the closest match, in this case Ubuntu is close enough that the same virtual machine hardware will work.
      3. Click the checkbox Skip Unattended Installation to install the guest OS manually.

      4. Click Next to continue.

    3. In the Hardware screen, increase the amount of RAM or number of CPUs as desired. Make sure the selection stays in the green area so it does not adversely affect the performance of the host. You should not need more than 4096 MB of RAM or more than 1 CPU for this lab. You can always adjust it later, but know that more RAM and CPUs will generally speed up the Virtual Machine installation process. Click Next to continue.

    4. In the Virtual Hard disk screen, click Next to accept the option to create a virtual hard disk now with the suggested size. Change as desired. The default storage settings for the hard drive is dynamically allocated. Click Next to continue.

    5. Review the setting in the summary page. Click Finish when done.

    6. When the hard drive creation is done, the new virtual machine is listed in the Oracle VM VirtualBox Manager window. Select Linux Mint and click Start in the top menu.

Part 2: Install Linux Mint on the Virtual Machine

  1. In the "Welcome to Linux Mint" screen, press Enter on the highlighted "Start Linux Mint" to start the loading process. This can take several minutes though combinations of text scrolling down the screen and black screens. Watch the status indicators at the bottom of the Virtual Machine window to see what is happening (e.g. the CD image is being read from).

  2. Eventually you will see a desktop environment because Linux Mint has started in a "Live CD" mode where you could try out the operating system without making any changes to your computer. However, this mode is much slower and more limited than if you install it to the computer’s hard drive.

  3. In this lab, you will install the Linux Mint in this virtual machine. Double click the "Install Linux Mint" icon on the desktop.

  4. Follow the on-screen instructions and provide the necessary information when prompted.

    If you are not connected to the internet, you can continue to install and enable the network later.
    1. Accept the defaults on the language and keyboard screens. You can also check "Install multimedia codecs" if you wish.

    2. Because this Linux Mint installation is in a virtual machine, it is safe to erase the disk and install Linux Mint without affecting the host computer. In the Installation type screen, select "Erase disk and install Linux Mint". Otherwise installing Linux Mint on a physical computer would erase all data on the disk and replace the existing operating system with Ubuntu. Click Install Now to start the installation.

    3. In the Write the changes to disks? screen, click Continue to erase the disk of the virtual machine and install Linux Mint.

    4. In the Where are you? screen, encure the closest major city in your timezone is selected. The closest major city to Minneapolis/St. Paul is Chicago.

    5. In the Who are you? screen, provide your name and choose a password. Use "iteuser" for Your Name and "ITEpass!" for the password. You can use the username generated or enter a different username. If desired, you can change the other settings. Click Continue.

  5. The Lnux Mint OS is now installing in the virtual machine. This will take several minutes. When the Installation complete message displays click "Restart Now" to restart the virtual machine.

  6. When prompted to remove the installation medium, press Enter to continue the booting process as the virtual CD will automatically be ejected. Notice that the CD indicator at the bottom of the Virtual Machine window changes from green to grey to indicate the CD has been removed.

Part 3: Explore the GUI

In this part, you will install the VirtualBox guest additions and explore the Linux Mint GUI.

  1. Install Guest Additions

    1. Log on to your Linux Mint virtual machine using the user credentials created in the previous part.

    2. Your Linux Mint Desktop window may be smaller than expected. This is especially true on high-resolution displays. Click Devices → Insert Guest Additions CD image…​ to install the Guest Additions. This adds drivers which allow more functions, such as changing the screen resolution in the virtual machine.

    3. Click "Run" to install the additions. When prompted for a password, use the same password that you used to log on. Click Authenticate to continue.

    4. You may receive an error that there was an issue installing the guest additions. This is an issue with the most recent version of Linux Mint. If that happens press enter to continue and close the installer, the additions are most likely still installed correctly.

    5. Open the Linux Mint menu in the lower left corner of the taskbar and click the red "power button" then click the "Restart" button to reboot the system with the guest additions running.

    6. Log back into the system, notice how you can now resize the window and the virtual machine resolution will change to match the window size.

  2. Run applications

    In this step, you will open a couple of applications in the virtual machine.

    If the host computer is not connected to the internet, re-connect to the internet and verify that the virtualmachine has access to the internet. If the network connection settings need to be changed, power off the virtual machine and click Settings in Oracle VM VirtualBox Manager > click Network to change the network settings.
    1. Power on virtual machine as needed and log into Linux Mint again. After you are logged in again, you can resize the virtual machine window.

    2. Open a web browser, there is an orange link to the Firefox browser already in the task bar at the bottom of the screen. Navigate to a few websites if desired.

    3. Open the Linux Mint menu from the taskbar and run the Terminal application (there is a shortcut on the left side of the menu or you can search for it). You will be using a terminal emulator in later labs.

    4. Close the terminal emulator by typing exit and pressing return.

    5. Explore the installed Linux distribution, locate a few applications that you may use, and try running them.

  3. Install two new applications

    1. Open the Linux Mint menu from the taskbar and run the Administration → Software Manager application.

    2. Look through the software manager (which is like a free "app store" for your Linux distribution) and identify at least two applications you would like to install.

    3. Install and try running the applications.

Part 4: Shut Down the Virtual Machine

  1. To properly shut down the virtual machine you should shut down the guest operating system as normal. Do NOT just close the VirtualBox window which is similar to yanking out the power plug of a physcial machine.

  2. Open the Linux Mint menu from the taskbar and click the red "power button"

  3. Click the red "Shut Down" button.


Document Build Time: 2024-10-30 23:55:42 UTC
Page Version: 2024.08
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License