Skip to main content

Install Ubuntu (Linux ) in Virtual Box (Virtual Machine )

 It is always good to test the linux installation before you install it on your primary/secondary harddisk .  To test the linux the best option is to install linux in a virtual machine.  Here in this tutorial i am showing how to install Ubuntu (linux variant ) on  Virtual box inside Windows.  You can install many other linux distributions in the same manner .


Step 1: Download and install VirtualBox

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

Download VirtualBox

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

Step 2: Download the 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 this example, and you can download ISO images for Ubuntu from the link below:

Download Ubuntu Linux

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.

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

I recommend using the VDI file type here.

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

Soon you’ll find yourself inside Linux. You should be presented with the option to install it.

Things from here are Ubuntu-specific. Other Linux distributions may have slightly different looking steps, but it won’t be complicated at all.

Installing Linux inside Windows using Oracle VirtualBox

You can skip to Continue.

Installing Linux inside Windows using Oracle VirtualBox

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.  

When you install linux on physical computer using physical harddisk, this is the step in which you can decide where you want to intall linux.  if you decide that you want to install linux on separate partition then click something else an follow the instruction .

Installing Linux inside Windows using Oracle VirtualBox

Just click on Continue.

Installing Linux inside Windows using Oracle VirtualBox

Things are pretty straightforward from here.

Installing Linux inside Windows using Oracle VirtualBox

Self explanatory.

Installing Linux inside Windows using Oracle VirtualBox

Try to choose a password that you can remember. 

You are almost done. It may take 10-15 minutes to complete the installation.
Installing Linux inside Windows using Oracle VirtualBox

Once the installation finishes, restart the virtual system.

Installing Linux inside Windows using Oracle VirtualBox

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

Installing Linux inside Windows using Oracle VirtualBox

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

Troubleshooting: AMD-V is disabled in the BIOS

If you face this error while using the virtual machine:

Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE).
AMD-V is disabled in the BIOS (or by the host OS) (VERR_SVM_DISABLED).
Result Code:
E_FAIL (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

This means that virtualization is blocked on your system. You’ll have to activate it in your BIOS settings first.

Reboot your system and as soon as it powers up, press F2/F10/F12 to access BIOS settings. You have to look for the virtualization option in the BIOS and enable it.

Hardware Acceleration Bios
Enable Hardware Acceleration in BIOS | Image Credit


Comments

Popular posts from this blog

Session Messenger----Best Secure Messaging App

  Session is fundamentally different than most other secure messaging services. Conversations in Session are secured using  client-side E2E encryption . Only the sender and the recipient of a message can read it. But Session goes beyond providing message security. Session also  protects the identities  of its users. It makes your communications private and anonymous, as well as secure. Session can do this because it  connects users  through a  Tor -like network of thousands of  Service Nodes . Service Nodes are servers that pass messages back and forth through the network as well as provide additional services. The  onion request  system that Session uses to protect messages ensures that no Service Node in the network ever knows both a message’s origin (your IP address) and destination (the recipient’s IP address). This allows you to  hide your IP  by default. Session takes a number of additional steps to protect your identity: No phone number is required for registration No email is r

Tiny 11 - A Lightweight Windows 11 that can run on 2GB RAM and requires less harddisk space.

  In terms of Windows 11, its   system requirements   are high since this system requires at least 4GB RAM, 64GB storage space, enabled TPM & Secure Boot, a high CPU (1 GHz or faster with 2 or more cores on a compatible 64-bit processor), etc. compared to any old Windows operating systems. If you have an old or lower-end PC, Windows 11 is not a good option to install since many issues like random crashes, blue screen errors, etc. could appear on the unsupported hardware. Overview of Tiny11 If you want to run Windows 11 on your old computer with low RAM and disk space, Tiny11 appears in public. It is a project from NTDev and Tiny11 is a Windows 11 tiny edition. This edition is based on Windows 11 Pro 22H2 and includes everything you need for a comfortable computing experience since this tool doesn’t have the bloat and clutter of a standard Windows installation. Tiny11 Requirements In terms of Tiny11 requirements, a scant 8GB of storage and just 2GB of RAM are required and Windows 11

Linuxfx 10 : A Windows-Like Linux Distro

The idea of Linuxfx is to make it easier for people who are migrating from Windows 7. People who are dissatisfied with the lack of security and stability of Windows 10 are also fit for Linuxfx. LinuxFX Desktop : Apart from Windows-like looks, Linuxfx also has more to offer which a regular user will definitely admire. So, let’s get along with me to know more about Windows alternative Linuxfx. As usual, I started by downloading the ISO image of Linuxfx from the official site  here . Then, instead of dual-booting, I decided to install it on my VirtualBox to play safely. After finishing the basic configuration, as soon as I booted it, I noticed a Windows logo and system integrity check. That’s quite surprising because every Linux distro puts their own or OEM logo on that place. But I think Linuxfx wants to make migrating users feel like home from the beginning. Entering the boot menu, Linuxfx redirected and logged in to a live session. Whoah! it can also detect the system I’m using — anoth