Installer Ubuntu Virtualbox Windows 10

broken image


There are different virtual machines available for Linux/Ubuntu, but in this tutorial we are using Oracle VM VirtualBox. VirtualBox is a free and open source virtualization software from Oracle.

VirtualBox, a cross-platform virtualization application, allows users to install operating system like Windows, MacOS, Solaris and Linux without changing your current computer system. By using VirtualBox, you can create and run a guest operating system (virtual machine) via a window of the host operating system. In VirtualBox, select the virtual machine Ubuntu 20 LTS and click Start. VirtualBox will launch a new window with the vm and boot from the iso selected in a previous step. Wait a few minutes for Ubuntu to load. When prompted, click Install Ubuntu.

I installed VirtualBox on Ubuntu 16.04 LTS (Xenial Xerus).

1. Add VirtualBox to Ubuntu repository

Go to Start > Software & Updates > Other Software > Button ‘Add…'

Enter the following APT line in the input box, substituting by your distribution name (in my case it was xenial).:

deb https://download.virtualbox.org/virtualbox/debian contrib

Substitute by your distribution name (in my case it was xenial).

Enter password and close dialog.

2. Download Oracle signature

Download Oracle public key for apt-secure:

  • Here for Debian 8 ('Jessie') / Ubuntu 16.04 ('Xenial') and later

You may have to right click on link and select 'Save as'.

3. Apply Oracle signature

Go to the terminal and enter the command below:

sudo apt-key add oracle_vbox_2016.asc;

In my case, file was in Downloads folder so I used this command:

sudo apt-key add ~/Downloads/oracle_vbox_2016.asc;

If everything is fine, you will get this output:

OK

4. Install VirtualBox

Open terminal. Go to Start > Terminal.
sudo apt-get update
sudo apt-get install virtualbox-5.2

5. Download Windows 10 ISO image

Visit Microsoft Media Creation Tool from this link.

Download 'Microsoft Media Creation Tool'.

Run the tool from a Windows computer and follow these ISO creation steps:

  1. Accept Terms & Condition
  2. Select ‘Create installation media (USB flash drive, DVD, or ISO file) for another PC.
  3. Select language, architecture and edition.
  4. When askw which media to use, select 'ISO file
  5. Wait until the process is finished.
  6. When it proposes to burn ISO on CD, just click on 'Finish'.

Find the newly created 'Windows.iso' file and copy or send it to your Linux/Ubuntu computer. I used a USB memory stick (filesize is 3,90 GB).

6. Configure Windows 10 on VirtualBox

Open Virtual Box by going to Start > Oracle VM VirtualBox.

Click on 'New' button.

Name your OS and select the correct OS version (in my case it was 'Windows 10 (64-bit)'.

Select memory size. I accepted the recommend amount.

Create virtual hard disk.

Select hard disk file type. I chose the proposed VDI.

Select 'Dynamically allocated'.

Accept File Location and size.

It takes back to main screen. Select OS and click on Settings.

Windows 10 In Virtualbox

Go to 'Storage' option.

Remove any empty optical drive that may exist.

Click on button 'Adds new storage attachement' > 'Adds optical drive'.

Select 'Choose disk' in dialog.

Select ISO file download in previous step. Safari os x 10 8 5.

7. Run Windows 10

Select Windows 10 OS from VirtualBox main screen and click 'Start'.

Enter Windows registration key.

Windows installation screen will be displayed.

I chose the advanced option of just installing Windows.

Wait until Windows installation is finished.

References

Main sources:

  • 'Download VirtualBox for Linux Hosts', by VirtualBox
  • 'How To Install Windows 10 In VirtualBox in Linux', by Abhishek Prakash

Summary :

If you are wondering how to install Ubuntu on VirtualBox like many other users, this post is worth reading. In this post, MiniTool will talk about the benefits, requirements, as well as detailed steps of installing Ubuntu on VirtualBox.

Quick Navigation :

An Overview of VirtualBox

VirtualBox, a cross-platform virtualization application, allows users to install operating system like Windows, MacOS, Solaris and Linux without changing your current computer system. By using VirtualBox, you can create and run a guest operating system (virtual machine) via a window of the host operating system.

As virtual machine (VM) has a self-contained environment, you can carry out some operations without the risk of damaging the host operating system. Based on that, VirtualBox has some other advantages. They are summarized as follows.

  • Easy to install and use
  • Free
  • Run other systems safely
  • Can test your own development projects in multiple system environment
  • Can run on places ranging from embedded system to laptop
  • Suitable for testing and disaster recovery

In a word, VirtualBox grants you lots of benefits.

Recommendation: Quick Fix VirtualBox Result Code: E_Invalidarg (0x80070057)

Why to Install Ubuntu on VirtualBox

You are required to install Ubuntu on VirtualBox on many cases. For instance, when you are going to try out some software without damaging your present operating system, migrate from Windows or MacOS to Linux, or test applications/network, you need to do that.

Tip: You probably don't know that Linux is divided into plenty of distributions and Ubuntu is one of them. Ubuntu is a Debian-based distribution. It is free, easy to customize, safe, open-source, and beginner-friendly.

In addition, installing Ubuntu on VirtualBox as a virtual machine offers you some benefits. For instance, you are able to create a snapshot and roll back changes to the previous VM state if there's something wrong with environment.

It is easy to clone a VM, copy a VM on different VirtualBox supported by host operating systems. To sum up, it is useful to install VirtualBox Ubuntu.

Requirements to Install Ubuntu on VirtualBox

In order to install Ubuntu on VirtualBox successfully, you have to fulfill the requirements below. Otherwise, you may fail to install Ubuntu VirtualBox or encounter some errors.

Installer Ubuntu Virtualbox Windows 10 Gratuit

# 1: Enough Memory and Disk Space

Installing Ubuntu on VirtualBox requires sufficient disk space and memory. This operation needs at least 4GB RAM and 30GB free disk space. Hence, you should firstly perform a PC full specs check to see the detailed information of RAM and available disk space.

If you find that RAM doesn't fulfill the requirement, you can add some RAM via the help of this guide. If the available free disk space is not enough, you need to take some actions to increase disk space. Well, you are able to enlarge disk via a professional partition managing program.

MiniTool Partition Wizard probably is what you are seeking for. It is a partition manage expert, which allows you to perform various operations associated with partition such as Surface Test, Disk Benchmark, Check File System, Extend Partition, Format Partition, as well as Wipe Disk, etc.

The Extend Partition is recommended in the following two cases. And you can refer to the steps below to increase disk space.

1. Extend a partition to non-contiguous unallocated or free space.

2. There is no unallocated or free space on the disk drive.

Step 1: Open MiniTool Partition Wizard to get its main interface, and then click on the partition to enlarge and click the Extend Partition option in the left pane.

Step 2: In the next window, choose a drive that you want to take free space from and move the handle to decide the space to extend. Then click OK and Apply to save and execute the changes.

To move/resize a partition, make sure that there is available contiguous unallocated space on the disk. Then, refer to this tutorial.

As the picture shows, choose the partition to move/resize and click on Move/Resize option in the left action panel. Adjust the size and location of the target partition by moving the handle in the prompted window. After that, click OK and Apply to save and carry out the changes you've made.

Installer

# 2: Good Internet Connection

A good Internet connection is also vital for installing Ubuntu on VirtualBox. You need a good Internet to download the software and Linux ISO.

# 3: Intel VT-x or AMD-v Hardware Virtualization Feature Is Supported and Enabled

Besides, the CPU (Central Processor Unit) of your computer must support Intel VT-x or AMD-v hardware virtualization feature. More importantly, you should ensure that the featured is enabled in UEFI/BIOS before installing Ubuntu on VirtualBox.

How to Install Ubuntu on VirtualBox

This section will show you how to install Ubuntu on Windows 10 using VirtualBox. As the whole process is complicated, we divide the whole process into 5 parts. Now, check them one by one.

You may also like this: How to Install Linux (Ubuntu) on Windows 10 [Ultimate Guide 2020]

Part 1: Download Ubuntu

You can start the Ubuntu VirtualBox installation operation by downloading and installing Ubuntu. Here are steps for that.

Step 1: Move to the official website of Ubuntu and click Download button to start downloading.

Tip: If you are required to choose a version, please pick the 64-bit version.

Step 2: Then store the ISO file as you are prompted.

Part 2: Download and Install VirtualBox on Computer

As VirtualBox is not a built-in program on the computer, you need to download and install it manually.

Step 1: Go to the official website of Oracle VirtualBox to download it.

1.Click here to move to the website. After entering this page, click Download VirtualBox button.

2.In the next page, click on Linux distributions.

3.From the listed packages, download a suitable one.

Step 2: Click on the file you just downloaded and then you will get the following window. Click Next to go on.

Step 3: In the prompted window, click the Next button.

Step 4: In the next window, click Yes.

Step 5: Once you click the Install button, the program will be installed automatically.

Step 6: After finishing the installation, click Finish.

Part 3: Set up a Virtual Machine

When the VirtualBox download and installation processes end, you should set up a virtual machine via VirtualBox. After completing the steps above, you will be prompted with the following window. Follow these steps to set up a virtual machine now.

Step 1: Click on New tab in the Oracle VM VirtualBox Manager window.

Step 2: In the elevated window, type Ubuntu in the Name section. Choose Linux as the Type and Ubuntu (64-bit) as the Version. Then, click Next.

Step 3: At this window, set the memory size. Generally speaking, the memory size will be set at an ideal value. If not, you need to set it by yourself. You can refer to the recommended size. Then, click Next.

Tip: Don't set the memory size to the red section.

Step 4: In the Create Virtual Machine window, click the Create button.

Step 5: You need to choose a hard disk file type in this window. Choose VHD (Virtual Hard Disk) and click on the Next button. This hard disk serves as the hard disk of the virtual Linux system that stores files in this system.

Tip: You can also select VDI (VirtualBox Disk Image).

Step 6: If you are prompted with the window for choosing storage on physical hard disk, click Next directly. Either to choose Dynamically allocated or Fixed size is ok. In the File location and size window, you can configure the size or follow the default size. Then click Create to start creating.

Part 4: Enable the Ubuntu

Now, you can enable the Ubuntu on VirtualBox with the following steps.

Step 1: Double click the Ubuntu option in the left pane. Then a menu will open by itself.

Step 2: In the prompted window, click the icon at the right bottom of the window. Select the ISO file that you stored on the computer and click the Open button.

Step 3: Then click the Start button to continue.

Step 4: In the next prompted window, click Install Ubuntu.

Step 5: After choosing the two listed options, click Continue in the Preparing to install Ubuntu window.

Step 6: Check the Erase disk and install Ubuntu option and click Install now.

Note: Though you select this option, nothing on your computer will be deleted.

Part 5: Set up Ubuntu

After executing the steps above, you will install Ubuntu smoothly. To use Ubuntu, you are required to set up it. Now, follow these steps to do that.

Step 1: You will be prompted with a window after installing Ubuntu. Choose a time zone that matches with your present position and choose the Keyboard layout [ex: English (US)]. Then click Continue to start the process.

Tip: As Ubuntu demands installing drivers to work with keyboard, you cannot utilize your keyboard until it's completely installed.

Step 2: In the next window, enter the corresponding information in the proper place such as 'Your name', 'password', 'username', etc. After that, click Continue to go on the process.

Step 3: Now, you need to wait patiently until the finish of the process. Then do as the on-screen instruction to restart the virtual machine. When the VM restarts normally, you can use it. From here, the whole Ubuntu VirtualBox installation process ends.

Conclusion

Up to now, this post introduces all the details of installing Ubuntu on VirtualBox including VirtualBox application, benefits, requirements and steps of installing Ubuntu on VirtualBox. This is a complete guide on How to install Ubuntu on Windows 10 using VirtualBox.

If you have any new thoughts on this topic – how to install Ubuntu on VirtualBox, please share them with us in the comment area. For doubts and questions about MiniTool, you can send us an email via [email protected].

How to Install Ubuntu on VirtualBox FAQ

Here is the tutorial for installing Ubuntu on a virtual machine.

  1. Open the VirtualBox by double clicking on it.
  2. Click on New to create a virtual machine.
  3. Type Ubuntu as the name and choose Linux as the type. Choose the Ubuntu (64-bit) version and click Next to go on. Then follow the prompted instruction to complete the installation.
How long does it take to install Ubuntu on VirtualBox?
The whole Ubuntu VirtualBox installation process can take you about 45 minutes, while a minimal installation takes around 20 to 25 minutes.
  1. To do that, you should firstly choose virtual machine in the main menu of VirtualBox and click on the Settings button.
  2. Then click Storage tab in the Settings menu. After that, you will see an image of a disk and the word 'Empty' under the Controller section.
  3. Click on Empty and choose the CD/DVD icon. Click Choose a virtual CD/DVD disk file and move to the ISO file that you are going to import to the virtual machine. Do as the prompted instruction to finish the process.
In most time, VirtualBox is safe. It is safe enough to execute programs in a virtual machine. However, it is not totally safe. The malicious code can escape the virtual machine if you configure a virtual machine poorly, which can cause some issues.




broken image