Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to install and configure Ubuntu Linux on VirtualBox

Posted on 26/04/202007/09/2026 Christian By Christian 1 Comment on How to install and configure Ubuntu Linux on VirtualBox
  1. Home
  2. Linux
  3. How to install and configure Ubuntu Linux on VirtualBox
How to install and configure Ubuntu Linux on VirtualBox

Oracle VirtualBox is a cross-platform virtualization application. It installs on your existing Intel or AMD-based computers, whether they are running Windows, Mac, and Linux operating systems. VirtualBox is a software virtualization package that you can install on your operating system. In this article, we will discuss How to install and configure Ubuntu Linux on VirtualBox. Please see How to install Windows Server 2022 on VirtualBox, and How to install Oracle VirtualBox on a Mac device.

In VirtualBox terminology, the operating system on which VirtualBox is installed is referred to as the host. The operating system you install and configure Ubuntu Linux on VirtualBox (virtual machine) is called the guest.

Here is how to install Windows Server 2019 on VirtualBox. See the following guides on how to perform Post OS Installation configuration of Windows Server 2019 Properties, how to install Windows Server 2016 Operating System, Windows Server 2019 on a VMware Workstation, and how to install and configure Ubuntu Linux.

To install Ubuntu Server 20.04 on a VirtualBox virtual machine, follow the detailed steps below. These steps ensure VirtualBox is already installed.

Step 1 – Create a Virtual Machine

Launch VirtualBox and click on “New”.

Note: On a macOS, you can click on machine and select “New”

Create a new Virtual machine

Next, enter a name you wish to save your virtual machine. Enter the desired name for your virtual machine in the “Name” field as shown below.

Here you can also select a location for your virtual machine.

  • OS type “Linux” as shown below and
  • The Version of Linux (In my case, it is Ubuntu (64-bit)).
Screenshot of a VirtualBox setup interface for creating a new virtual machine, with options for naming, selecting folder, operating system type, and version.

Select an amount of RAM

Assign memory to your virtual machine. I will select 2048 MB

Select a RAM size for your virtual machine

You can increate the memory with the slider or by typing the values.

Create your virtual machine’s virtual hard drive

The virtual hard drive is a section of your computer’s hard drive space which will be used to store your virtual machine’s files etc.

Create a virtual hard disk

This will open the Hard disk type window. I will be selecting VDI (VirtualBox Disk Image) as shown below. For the differences, take a look on how to install VirtualBox and Guest Integration.

Select virtualBox Disk Image (VDI)

You can choose either the “Dynamically allocated” or the “Fixed size” option for creating the virtual hard disk. I will be choosing the “Dynamically allocated” as shown below. For the difference, Please see the screenshot.

Click on Dynamically Allocated

Enter the desired file location and size of the VDI. You can use the slider or type the size into the field as shown below.

Click on create and VirtualBox will generate the “Ubuntu” virtual machine.

Select Location and size of drive and click on create

Here is How to install ESXi on VirtualBox, and “How to fix Failed to open session in VirtualBox to install Windows 11 Image“.

Step 2: Set up Ubuntu on this VM

Now the virtual machine is created. We are ready to install Ubuntu in this virtual machine. It is time to boot that ISO and install Linux as a virtual operating system.

Our Ubuntu virtual machine is turned off

Download the ISO Image

The next steps requires Ubuntu 20.04 to be downloaded. Select your new virtual machine and click the ‘Settings’ button.

  • Click on the “Storage” category and
  • Select “Empty” under Controller:IDE as shown below.
  • Click “CD/DVD” icon on right hand side and
  • Select the ubuntu ISO file to mount.
Screenshot of Oracle VM VirtualBox Manager displaying the settings for an Ubuntu virtual machine, including the storage configuration with an empty IDE controller and options for choosing a virtual optical disk.

And click ok after selecting the ISO image you downloaded.

Select the ISO Image and click on OK

Step 3 – Install Ubuntu 20.04

To Install ubuntu, follow the steps below. Click on the new Ubuntu virtual machine. Select the ‘Start’ button.

Click on the new Ubuntu virtual machine and click on start

This will perform so launch the Ubuntu machine in order to continue with the installation.

Ubuntu installation has started

Select your desired language and click on Install Ubuntu as shown below.

Select language and click on install Ubuntu

Select your desired Keyboard layout. I will be selecting German

Select language and continue

Select Normal Installation as shown below.

If you would like to install Minimal Installation (This will have just the basic utilities and web browser).

Select Normal installation and continue

Click on Install now. See the figure below for this.

Select Erase disk and Install Ubuntu
Select Erase disk and Install Ubuntu

When a new window is prompted click on continue to write changes to disks.

Click on Continue
Click on Continue

Click continue under where are you. I am ok with Berlin 😉

Select region and click on continue

Setup an Account

Enter your relevant account information as shown below. The computer’s name and username will automatically be populated.

Enter relevant account details and click on continue

Note: This user will have root/sudo privilege. Click ‘Continue’ button.

The installation process will continue as shown below.

Ubuntu is curently installing

After installation is complete, click the ‘Restart Now’ button as shown below.

Restart you PC to use the new installation

When you see a screen with a black background saying ‘Please remove installation media and close the tray (if any) then press any key or ENTER on your keyboard. When this process is completed, the following window will be displayed.

Click on your username and this will prompt you to enter your username.

enter your password

The Ubuntu Desktop OS is ready. As you can see, the desktop screen is too small. To fix this the “VirtualBox Guest Additions” need to be installed.

You may be required to connect your online account. Skip it and keep clicking on next and finally select done.

Click on Skip
Click on Skip
Select Done
Select Done

If you get a notification to install updates as shown below, PLEASE install the updates immediately.

Install Update

Now you can start using your Linux device from henceforth.

That’s how you can install and configure Ubuntu Linux on VirtualBox. I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Linux Tags:Ubuntu, VirtualBox, virtualization

Post navigation

Previous Post: Windows Subsystem for Linux: How to install WSL on Windows 10
Next Post: Ubuntu Linux post installation of Network Properties, Guest Integration and Web Administration using Cockpit

Related Posts

  • Screenshot 2022 03 21 at 18.06.30
    How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
  • Screenshot 2024 02 28 at 11.17.41 PM
    GitHub Pages Deployment Guide Linux
  • Wiki in Linux
    How to Use Wiki from Linux Terminal Linux
  • Feature Image DNF vs APT
    What are the differences between dnf and apt package managers? Linux
  • ubuntu 1479782 1280
    Ubuntu Linux post installation of Network Properties, Guest Integration and Web Administration using Cockpit Linux
  • Slide4
    How to install Let’s Encrypt on Apache Web Server Linux

More Related Articles

Screenshot 2021 02 05 at 22.40.51 Disable automatic screen lock on Ubuntu Desktop Linux
openshift Set up OpenShift Cluster using Red Hat CodeReady Containers Linux
Slide4 How to install Let’s Encrypt on Apache Web Server Linux
FLUTTER Feature How to Set Up Flutter with Android Studio on Linux Linux
image 129 Using Awx to deploy, schedule and run playbooks Linux
image 10 Change Visual Studio Code UI language JIRA|Confluence|Apps

Comment (1) on “How to install and configure Ubuntu Linux on VirtualBox”

  1. Avatar photo David says:
    03/02/2022 at 3:30 PM

    Seem to be stuck on the install terminal window. Package configuration Configuring Secure Boot, there is a <Ok> at the bottom, but the terminal window isn’t accepting any input.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Expired Evaluation Configuration Manager to Full Version
    Upgrade Expired Evaluation Configuration Manager to Full Version Windows Server
  • Featured image The Local Device Name is Already in Use
    How to Fix The Local Device Name is Already in Use Windows
  • Trellix MVISOSN
    How to install Trellix MVISON Endpoint Security | Vulnerability Scans and Assessment
  • Fix this PC cannot run Windows 11
    Bypass unsupported CPU and Processor by upgrading to Windows 11 via Windows Update Virtualization
  • Upgrade the embedded PostgreSQL for Veeam Backup and replication
    How to upgrade PostgreSQL Engine used by VBR Backup
  • 960x0
    How to resolve request timed out when pinging Windows Server
  • sdadsf453423564
    How to download, install and activate, and uninstall IBM SPSS Statistics Mac
  • maxresdefault 2 7
    How to record your screen with PowerPoint and make slide shows Mac

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,747 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.