If a fresh Ubuntu environment is needed, you will first need to install VirtualBox (If not needed, skip to **section 1.1.1**). VirtualBox is a virtual machine program that allows you to run an image of an operating system on your computer. In other words, you can run Linux in the virtual machine, even if you're on a Windows computer.
Once VirtualBox is installed, an Ubuntu system will need to be created. In the VirtualBox Manager, select the Type, and Ubuntu (64-bit) as the Version.
button to get started. In the Create Virtual Machine window, name your virtual machine (VM) system and select Linux as theNext, choose the memory size of the VM. This will be the running memory of your VM, note that it cannot exceed your computer's current memory, and it is highly suggested that it doesn't exceed more than half of your computer's maximum running memory.
Proceed to the hard disk creation section, and select 'Create a virtual hard disk now'. Continue to the hard disk file type, and choose the VDI (VirtualBox Disk Image) option. Next, select 'Dynamically allocated' option when determining the hard disk's storage type. The next screen will allow you to choose the size of the VM, this will be the storage space on your VM.
Once all of these options are determined, your virtual machine will nearly be set up. Select your VM and select Show (the green right arrow) to start it. The VM will start running and it will start installing Ubuntu on it.
Select to have an Ubuntu operating system installed and the installation process will start automatically once your select your settings. Make sure its either 14.04 or 16.04. The installation process will take some time. Once finished, the VM will restart; exit from the Linux installation process, and Ubuntu will be running on your virtual machine.