How to install Ubuntu on a VirtualBox virtual machine. It’s very simple and won’t cost you a dime. Don’t forget to install the guest additions at the end.
Ubuntu is a popular Linux distribution for desktops. It’s free and open source. So go ahead and download Ubuntu.
1. Creating a virtual machine in Virtualbox
Fire up VirtualBox and click on the New button in the top left menu. When i started to type Ubuntu, VirtualBox automatically set type to linux and version to Ubuntu.
Next step is to set the amount of memory that will be allocated. VirtualBox will recommend you a number. But you can choose anything you’d like. This can be changed later if the virtual machine runs slow.
Next you select a size of the hard disk. 8 gb that VirtualBox recommends will work fine. Now click Create.
Select VDI as hard disk file type
Next use dynamically allocated when asked.
Set the disk size to the standard 8GB
2. Installing Ubuntu on the new virtual machine
Now when the virtual machine is created it’s time to mount the Ubuntu ISO and install it.
Click on settings with the newly created virtual machine selected.
Now go to the storage pane and select the IDE controller, then click on the CD-icon to the right and click Choose Virtual Optical Disk File… and select the ubuntu ISO.
When you are done you can click on OK to go back to the main screen of VirtualBox.
Now start the virtual machine and the ubuntu ISO will be booting up to something like this:
Now you click on… wait for it…. Install Ubuntu. I’m not going to guide you through this install. For 99%(this number was picked out of the blue) of you it’s only to click on continue until it’s installed.
When the installation is done Ubuntu will be asked to be restarted. Click on that button. Then when the message “please remove installation medium” is displayed, VirtualBox has already unmounted the ISO, so you can hit ENTER directly.
Ubuntu installation is done!
3. Installing VirtualBox guest additions
To share folders between the host and the guest machine we will need to install the guest additions.
Go to Devices in the VirtualBox menu and click on Insert guest additions CD image.
Click on run when Ubuntu asks you if you want to install the software.