Guide to Install Ubuntu 18.
04 LTS on Virtual Box
1. Download and install Virtual Box from https://www.virtualbox.org/
2. Download Desktop version of Ubuntu 18.04 LTS iso file from
https://www.ubuntu.com/download/desktop. Make sure you download 64bit or 32bit iso file
depending which OS you want to install. Preferable use 64 bit version
3. Enable Hyper-V/Virtualization option in BIOS if disables. If it is disables you will not be able to do
OS virtualization
4. Now in VirtualBox install the guest OS
5. Give machine name and select OS version as the iso file
Select the amount of RAM for guest OS as per the green section of the bar
Create virtual disk to be used by guest OS
Select VDI as virtual disk format
Select to Dynamically allocation the disk space
Change the maximum size of virtual disk (default is 10GB), we are changing it to 60GB
You will see the virtual machine created but it does not have iso file installed yet.
Before installing iso file for guest OS, we need to establish some setting, so right client on virtual
machine and click on setting option
In General option, go to Advance tab and select “Shared Clipboard” and “Drag n Drop” option as
Bidirectional (Default is disabled). This will allow to use copy-paste using clipboard between host
and guest OS
In System option, go to Processor tab, now select number of processors to be used for guest OS
(default is 1). This option is available only if you have multicore/multiprocessor machine
In Storage option, under Controller IDE click on Empty, this is the primary controller drive where
we need to specify the ISO file.
All other settings you can leave as default unless you want to change some settings.
After settings are set, we install Guest OS from iso file by clicking on start button
Select Language, click Install Ubuntu
Select keyboard layout, click Continue
Normal Installation, Download updates which installing Ubuntu
You need to enable Install third-party software since some drivers may not be available by
default in guest OS iso, Click Continue
Erase disk and install Ubuntu → It will not erase anything (this for the virtual disk)
Click Install Now
This to create ext4 partition in virtual disk where Ubuntu will be installed, Click Continue
Select Time Zone and click Continue
Type Name, Computer Name, username, password
This is your login information for Guest OS which will be needed to the login to Guest OS once
installation is complete.
click continue
Now wait for installation to complete
Click on Restart Now
When this screen is displayed, click on x to close the virtual machine
In close virtual machine screen, you get multiple option, select “power off machine” option and
click ok
Now Ubuntu installation is complete.
Once again click on start button to start the Guest OS. Once the Guest OS boots login screen is
displayed.
6. To share files between Host OS and Guest OS follow these instructions
First install the Guest Addition, Devices, Insert Guest Addition CD Image
Click on Run
Authenticate the installation and wait for installation to complete
You will require to restart the Guest OS after the Guest Addition installation
Now create a share from Host OS
Add new Share
Select Host OS folder and give share name
Automount option will mount the share on Guest OS at the time Guest OS is started
Make Permanent will make the Share permanent
Once the Share from Host OS is create you can mount it on Guest OS to a specific folder
Create a new folder in Guest OS sa “HostFiles” under home folder
Now mount the HostFiles folder to Share using “sudo mount -t vboxsf, SharedFiles
/home/ubuntu18/HostFiles”
Now you can share the files between Host OS and Guest OS using the share