Install Linux Inside Windows Using VirtualBox




There are several ways to install Linux. You can clean everything from your system and install Linux. You can dual boot Linux with Windows and it allows you to choose one of the operating systems at the boot time. You can also install Linux within Windows from Microsoft Store. But this only provides you the command line version of Linux.
If you want to use Linux without making any changes in your Windows system, you can go the virtual machine way. Basically, you install and use Linux like any regular Windows application. When you just want to try Linux for limited use, virtual machines provide a more comfortable option.
In this tutorial, I’ll show you how to install Linux inside Windows using VirtualBox.

Installing Linux inside Windows using VirtualBox

VirtualBox is a free and open source virtualization software from Oracle. It enables you to install other operating systems in virtual machines. It is advised that your systems should have at least 4GB RAM to get a decent performance from the virtual operating system.

Requirements

  • Good internet connection to download software and Linux ISO. You can also use some other computer with internet connection to download these files. 
  • Windows system with at least 12 GB of free space.
  • Windows system with 4GB of recommended RAM. It can work with less RAM as well, but your system will start to lag while using Linux in the virtual machine

Step 1: Download and install VirtualBox

Go to the website of Oracle VirtualBox and get the latest stable version from here:

                                   https://www.virtualbox.org

Installing VirtualBox is no rocket science. Just double-click on the downloaded exe file and follow the instructions on the screen. It is like installing the regular software on Windows.

Step 2: Download Linux ISO

Next, you need to download the ISO file of the Linux distribution. You can get this image from the official website of the Linux distribution you are trying to use.
I am using Ubuntu in the example, and you can download ISO images for Ubuntu from the link below:
                                https://www.ubuntu.com/desktop

Step 3: Install Linux using VirtualBox

You have installed VirtualBox and you have downloaded the ISO for Linux. You are now set to install Linux in VirtualBox.
Start VirtualBox, and click on the New symbol. Give the virtual OS a relevant name.


Allocate RAM to the virtual OS. My system has 8GB of RAM and I decided to allocate 2GB of RAM to it. You can use more RAM if your system has enough extra RAM.

Create a virtual disk. This works as the hard disk of the virtual Linux system. This is where the virtual system will store its files.


I recommend using VDI file type here.


You can choose either of Dynamically allocated or Fixed size option for creating the virtual hard disk.


The recommended size is 10 GB. However, I suggest giving it more space if possible. 15-20 GB is more ideal.


Once everything is in place, it’s time to boot that ISO and install Linux as a virtual operating system.


If VirtualBox doesn’t detect the Linux ISO, browse to its location by clicking the folder icon as shown in the picture below:




Select ‘Erase disk and install Ubuntu’. Don’t worry. It won’t delete anything on your Windows operating system. You are using the virtual disk space of 15-20GB that we created in previous steps. It won’t impact the real operating system.



Just click on Continue.









Things are pretty straightforward from here.


Self explanatory.



Try to choose a password that you can remember. You can also reset the password in Ubuntu if you forget it.



You are almost done. It should take 10-15 minutes to complete the installation.


Once the installation finishes, restart the system.


If it gets stuck on the screen below, you may close the VirtualBox.


And that’s all. From now onwards, just click on the installed Linux virtual machine. You’ll be able to use it directly. The installation is a one time process only. You can even delete the Linux ISO that you had downloaded earlier.

No comments

File Uploading in PHP

  File Uploading in PHP PHP allow you to upload any type of a file i.e. image, binary or text files.etc..,PHP has one in built global variab...