Virtual Box:
VirtualBox is a cross-platform virtualization application. It installs on existing operating systems
and also it extends the capabilities of the existing computer so that it can run multiple operating
systems (it means, inside multiple virtual machines) at the same time.
Host operating system (host OS): the operating system of the physical computer on
which VirtualBox was installed.
Guest operating system (guest OS): the operating system that is running inside the
virtual machine.
Virtual machine (VM). When running, a VM is the special environment that VirtualBox
creates for guest operating system.
Creating Virtual Machine:
1. Open the Virtualbox and click on New to create a new VM, give name of user choice,
select Linux & version as 32 bit or 64 bit depending upon user system architecture.
2.Give RAM Memory to the VM. Generally 1024 Mbytes
‾ Select the hard disk space, Go for 20.00 GB.
3.Create New Hard Drive or Select one form the list or from another location. Go for
Create a Virtual hard drive now.
4.Select the type of the file form the new virtual hard drive. Go for VDI (Virtual Box
Disk Image)
5. Either of the physical storage type can be selected. Go for Dynamically Allocated.
6.Provide the destination folder to install.
‾ Make sure the location of Guest OS iso in host OS.
‾ Select the Virtual disk in Virtual Box Manager (VBM), then select Settings.
‾ Select Storage Tab, Select Controller IDE, the select ⨀Empty. Then click on CD
symbol at Attributes frame, and then select the Guest OS iso File (Choose Virtual Optical
Disk File).Click the Start Button on VBM toolbar.
7.Guest VBM Settings in Virtual Box:
Select Guest OS in Virtual Box.
Select and change the settings for General.
‾ Select “Advanced” Tab and select bidirectional for shared clipboard and Drag ‘n’
Drop”.
Select and Change the settings for Network.
‾ Select “Adapter 1” Tab – Change “Bridged adapter” in attached to option.
‾ Select the “Advanced” Frame and Select “Allow All” in “Promiscuous Mode”.
Click “Ok”
8. After the Disk creation is done, boot the Virtual Machine and begin installing Ubuntu .
9.Click on the Install Ubuntu option,
10. Select Keyboard layout, if the defaults are compatible, just click on the continue button and
proceed.
11.Select installation type. By default, it is set to Normal installation, which is recommended, but it can
also be changed to Minimal installation if there is no need for all Ubuntu features.
12.Click on the Install Now button and carry on with the installation. Do not get worried with
the Erase disk option, it will only be effective inside the virtual machine, other system files outside the
VirtualBox remain intact.
13. Click on the continue button, and proceed with writing changes on the disk.
14.Select your location to set the Time Zone.
15.Choose a name for your computer and set a password to secure login info.
16.Wait for the installation process to complete.
17. Once the installation process is over, reboot your Virtual Machine.
18. You’re finished with the installation process. Now you can use Ubuntu along with the Windows,
without creating a dual boot.
2. Download and install a terminal emulator and connect Linux VM via
Terminal
Steps to Install Terminal Emulator (PuTTY) in Windows and Connect Linux VM:
i. A terminal emulator is a software that allows to you interact with the host machine with the help
of commands.
ii. Download and Install the PuTTY software from the link below
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
iii. To connect to VM or any PC running Linux OS using PuTTY LAN or Net connectivity is
needed.
iv. Next, Play the Virtual Machine and Open the terminal by pressing Ctrl + Alt + T.
v. Check the ip address of the Virtual Machine using the command ifconfig or ip address show.
vi. Install and start the Open SSH service using below commands,
sudo apt-get install openssh-server
sudo systemctl start ssh
sudo systemctl status ssh
vii. Now, come back to Windows and open PuTTY application and enter the ip address or host
name of the Linux VM.
viii. If everything goes fine then, you can establish a connection and access the Linux VM as if you
are working in the Linux Vm.