Ubuntu-Linux-on-Virtual-Box/C2/Installing-VirtualBox-on-Ubuntu-Linux-OS/English

From Script | Spoken-Tutorial
Revision as of 16:34, 21 February 2019 by Nancyvarkey (Talk | contribs)

Jump to: navigation, search

Title of the script: Installation of VirtualBox in Ubuntu

Author: Praveen S

Keywords: VirtualBox, VirtualBox installation, Ubuntu, Virtualisation, Spoken Tutorial, Video Tutorial


Visual Cue
Narration
Slide: Introduction Welcome to the spoken tutorial on Installing VirtualBox on Ubuntu Linux OS.
Slide: Learning Objective In this tutorial we will learn to:
  • Install VirtualBox on Ubuntu Linux 16.04 Operating System
Slide: System Requirements This tutorial is recorded using
  • Ubuntu Linux 16.04 OS
  • VirtualBox version 5.2
  • gedit text editor

However, you may use any text editor of your choice.


Before we begin, please make sure that you are connected to the Internet.

Slide: VirtualBox What is VirtualBox?
  • VirtualBox is a free and open source software for Virtualization
  • It allows us to install and use multiple OS in the base machine i.e. (host)
  • The base machine can have either Windows, Linux or MacOS
Slide: System requirements for VirtualBox To install an OS inside a VirtualBox, the base machine should have the following configuration.
  • i3 processor or higher
  • Ram 4GB or higher
  • Hard disk free space 50GB or more and
  • Virtualization should be enabled on BIOS

This will ensure that the VirtualBox will work smoothly.

Slide: System requirements for VirtualBox In case the base machine has Ubuntu Linux OS, then it should be any one of the following versions:
  • Ubuntu Linux 14.04
  • Ubuntu Linux 16.04 or
  • Ubuntu Linux 18.04
Let us start the installation.
Slide: Code Files The commands used in this tutorial are available in the Code Files link below the player.
Show the file in gedit text editor I have opened this file in gedit text editor on my machine.


And I will use the same file to copy-paste the commands during the demonstration.

Slide: Note Important note:

Before installing VirtualBox, we have to ensure that Virtualization is enabled on our machine.

Let us verify if Virtualization is enabled or not.
Open Terminal Open the terminal by pressing Ctrl, Alt and T keys simultaneously on your keyboard.
Gedit-> grep --color vmx /proc/cpuinfo


Press Enter

Copy this command from the code file and paste it in the terminal.


Press Enter to execute.

Highlight vmx If the output has vmx flags, then Virtualization is enabled on this computer.
Slide


  • If it is not enabled, kindly enable it in BIOS settings.
  • As the BIOS settings vary from computer to computer, we cannot show a demo of the same.
  • If you are not a technical person, kindly do this with the help of a System Administrator.
Slide
  • If the option Virtualization is not available in the BIOS
  • Then we cannot install VirtualBox in that machine
Highlight Virtualization Enabled In my case it is already enabled.
Terminal


sudo apt-get update


Press Enter

First let us update the base machine with the help of the following command.


For that, on the terminal, type-

sudo <space> apt-get <space> update


Then press Enter.

Type password and press Enter You may be prompted to enter your system password.


Type the password and press Enter.

Only narration From now on type the system password whenever prompted, during this installation and press Enter.
Next let us install VirtualBox.


Now we have to add the VirtualBox repository to the Ubuntu source list.

gedit->

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

To do so, copy this command and paste on the terminal.


Then press Enter.

Next, we have to add the VirtualBox repository key to the apt source.
gedit->


wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -


wget -q https://www.virtualbox.org/download/oracle_vbox.asc-O-%7Csudoapt-keyadd -

To do so, copy these two commands one by one.


Paste them on the terminal.


And press Enter.

Now we have to update the repository list.
Terminal

sudo apt-get update


Press Enter

For that type on the terminal, sudo <space> apt-get <space> update


Then press Enter.

Terminal


sudo apt-get install virtualbox-5.2

Next type sudo <space> apt-get <space> install <space> virtualbox-5.2


And press Enter.

Highlight the terminal output The terminal will display
  • the list of packages to be installed
  • File size to be downloaded from the Internet and
  • the disk space usage after the installation
Type Y and the press Enter When asked, “Do you want to continue?”, type Y and the press Enter.
The installation may take some time depending on your Internet speed.


The installation is completed now.

Go to Dash home


Type Virtualbox

Now go to Dash home.


In the search bar, type Virtualbox.


Now double-click on the Oracle VM VirtualBox icon.

Show VirtualBox Interface VirtualBox application opens. This indicates that the installation is successful.
With this we come to the end of this tutorial.


Let us summarize.

Slide: Summary In this tutorial, we have learnt-
  • To check if Virtualization is enabled and
  • Install VirtualBox in Ubuntu Linux 16.04 OS
Slide:

About Spoken Tutorial project

The video at the following link summarises the Spoken Tutorial project.


Please download and watch it.

Slide: About Workshop The Spoken Tutorial Project team conducts workshops using spoken tutorials and gives certificates.


For more details, please write to us.

Slide: Forum questions Please post your timed queries on this forum
Slide: Acknowledgement Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.


More information on this mission is available at

this link.

Slide: Thanks The script and video has been contributed by NVLI and Spoken Tutorial team.


And this is Nancy Varkey from IIT Bombay signing off.

Thank you for joining.

Contributors and Content Editors

Nancyvarkey, Pravin1389