Ex No -5
Install Virtual box / VMware Workstation with different flavours
of linux or windows OS on top of windows 7 or 8
Oracle VM VirtualBox is a free and open-source virtualization platform
developed by Oracle Corporation. The user can install the VirtualBox on
Windows, macOS, Linux, Solaris, and OpenSolaris. It enables users to install
other operating systems by creating virtual machines.
A virtual machine is a software or a virtual environment that provides the same
functionality as physical computers (eg, a computer system with its own CPU,
memory, network interfaces, and storage capacity). A virtual machine is used to
run software or OS like a physical computer.
System Requirements
Before downloading and installing Ubuntu on windows 10 using VirtualBox, the
following requirements are essential.
        • Operating System Version - Microsoft Windows 10 (32-bit or 64-bit).
        • Random Access Memory (RAM) - Minimum 4 GB RAM recommended.
        • Free Disk Space - Minimum 25 GB free space recommended.
        • Good Internet Connection to download the VirtualBox and Ubuntu
            ISO file.
Download and Install VirtualBox
To download the VirtualBox, follow the instructions below.
Step 1
To download the latest version of VirtualBox, visit the official VirtualBox website
in your web browser.( https://www.virtualbox.org/wiki/Downloads)
Step 2
Now, download the VirtualBox from here.
Step 3
Navigate the folder where you have downloaded your VirtualBox and double-
click on the downloaded "VirtualBox" file to run it.
Step 4
"Oracle VM VirtualBox 6.1.6 Setup" window will appear on the screen and click
on the "Next" button to proceed.
Step 5
Choose the location where you want to install the VirtualBox and click on the
"Next" button to proceed.
Step 6
Choose the options as per your choice and click on the "Next" button.
Step 7
Click on the Yes button and then the "Install" button.
Download Ubuntu
Creating a Virtual Machine
Now, it is time to create a Virtual Machine. Follow the instructions below to
proceed.
Step 1
Open VirtualBox and click on the "New" button.
Step 2
Choose a name for your virtual machine with its location. Based on the name
you entered, VirtualBox will try to predict the "Type" and "Version". Otherwise,
from the drop-down menu, select "Linux" as the type and "Ubuntu" as the
version and click on the "Next" button.
Step 3
With the help of the slider, choose the amount of memory (RAM) to be allocated
to the virtual machine. (The recommended memory size is 1024 MB (1 GB).
Please note that this memory will only be used while using a virtual machine).
Step 4
Select "Create a virtual hard disk now" option and click on the "Create" button to
proceed.
Step 5
Choose the "VDI (VirtualBox Disk Image)" option and click "Next".
Step 6
Again, click on the "Next" button.
Step 7
Select the amount of space for your virtual machine and click the "Create"
button. (This will be used for your operating system which is going to be
installed, so give as much space as possible).
Install Ubuntu Using VirtualBox
Now, your virtual machine has been successfully created and it is time to install
Ubuntu on it.
Step 1
The name of your virtual machine will now appear on the left side of the
VirtualBox Manager. Click on the "Start" button in the toolbar to launch your VM.
Step 2
This time, you have to select your Ubuntu ISO file that you downloaded earlier.
Now, click on the folder icon and then click on the "Add" button. Then, select
your Ubuntu ISO file. Click on the "Start" button to proceed.
Note
If you get the following error,
The native API DLL was not found (C:\WINDOWS\system32\WinHvPlatform.dll)
(VERR_NEM_NOT_AVAILABLE).
 VT-x is not available (VERR_VMX_NO_VMX).
 To resolve this above error, use the following command in Command Prompt
(Admin), "dism.exe /Online /Disable-Feature:Microsoft-Hyper-V".
 After removing this error, your Ubuntu installation will be ready to start on your
VirtualBox.
Step 3
Now, click on the "Install Ubuntu" button to proceed.
Step 4
Select your desired "keyboard layout" and click on the "Continue" button to
proceed.
Step 5
Use the default option as "Normal Installation" with the "Download updates
while installing Ubuntu" and click on the "Continue" button.
Step 6
Select the default option as the "Erase disk and Install Ubuntu" and click on the
"Install Now" option to proceed.
Step 7
A warning prompt will appear on the screen and click on the "Continue" button
to ignore this warning.
Step 8
Choose your time zone on the map and click Continue.
Step 9
Now, set your user account here by filling the necessary details and click on the
"Continue" button to proceed.
Now, the installation process will begin.
Step 10
Now, restart your system by clicking on the "Restart Now" option.
Congratulations! you have successfully installed and configured Ubuntu on
Windows 10 using VirtualBox and the Welcome screen will appear.
Conclusion
By following the above steps, you can install Ubuntu on Windows 10 using
VirtualBox