Install Linux in VirtualBox on Windows
Oracle VM VirtualBox is a free and open source virtualization application. You might be wondering: What does that mean? It means it lets you run another operating system inside of a window in your existing operating system like it was any other program. The only limit is the disk space and memory you have available. If you have the resources, you can run several virtual machines at a time.
Once you've downloaded and installed from the VirtualBox download page following the default installation settings, you can begin.
Step 1: Choose OS settings in VirtualBox
Next you're going to create a new virtual machine and choose the setttings.
- Click New to create a virtual machine
- Enter Ubuntu Linux as the name, and if you need to, select Linux as type and Ubuntu (64-bit) as the version
- Select at least 2GB of RAM, but no more than 50 percent of your total RAM
- Select Create a virtual hard disk now in order to select hard disk to be used
- Select VHD (Virtual Hard Disk)
- Select Dynamically allocated storage, so it only fills space when it's used
- Select at least 10GB for OS size
- Click Start to begin a Normal start
- Choose a virtual optical disc by clicking the folder icon on the right
- Add disc image and browse to the downloaded Ubuntu ISO file
- Press Start to begin installation
WARNING your hardware virtualization is disabled or your pc doesn't support it if you see the below error when you press start.
Refer to the guide on: Enabling Hardware Virtualization
Step 2: Install Linux in VirtualBox
Finally, we've gotten everything setup and and are ready to install Linux on the virtual machine.
- Wait for disk check to complete
- Choose Install Ubuntu to install as OS for the virtual machine
- Select your keyboard layout and then select Minimal installation, check Download updates, and Install third-party software before continuing
- Select Erase Disk and Install Ubuntu, then install now
- Select your time zone, then enter your username and password
- Click Devices in the file menu > Optical Devices > Host Drive after restart inside virtual machine once installation completes and it prompts you to Remove the installation medium
Ubuntu is now installed, and you can sign in!