The Wayback Machine - https://web.archive.org/web/20240926210019/https://www.geeksforgeeks.org/how-to-install-ubuntu-on-virtualbox/
Open In App

How to install Ubuntu on VirtualBox?

Last Updated : 06 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Installing Ubuntu on VirtualBox is a great way to experience the powerful features of this popular Linux distribution without altering your main operating system. Whether you’re a developer, a student, or simply curious about Linux, setting up Ubuntu on VirtualBox allows you to test and explore in a safe environment. This guide will walk you through the steps on how to install Ubuntu on VirtualBox, providing detailed instructions and tips to ensure a smooth installation process.

In this article, we will discuss the effective steps needed to Install Ubuntu VirtualBox in no time without having any issues.

Quick Highlights on VirtualBox

  • VirtualBox is a highly popular Oracle product.
  • VirtualBox can execute a bit faster as it has the AMD & Intel Support.
  • Many virtual machines can be developed on VirtualBox.
  • VirtualBox has asynchronous input and output disks.
  • VirtualBox can provide seamless window support for OS work.

Note: For the installation of VirtualBox, you can check out the article How to install VirtualBox on Windows?

Steps to Install Ubuntu on VirtualBox

Step 1: Before we begin with the installation process, we need to Download ISO for Ubuntu. For that, all the versions of Ubuntu are available on the Official Site.Ubuntu-Download-Windows

Step 2: Open VirtualBox and click on the New button.

Ubuntu-VirtualBox-Installation-00

Step 3: Give a Name to your Virtual Machine and select the Location for it to install.

Ubuntu-VirtualBox-Installation-011

Step 4: Assign RAM Size to your Virtual Machine.

Ubuntu-VirtualBox-Installation-02

Step 5: Create a Virtual Hard Disk for the machine to store files.

Ubuntu-VirtualBox-Installation-03

Step 6: Select the type of Hard disk. Using VDI type is recommended.

Ubuntu-VirtualBox-Installation-04

Step 7: Either of the Physical Storage types can be selected. Using a Dynamically Allocated Disk is by default recommended.

Ubuntu-VirtualBox-Installation-05

Step 8: Select Disk Size and provide the Destination Folder to install.

Ubuntu-VirtualBox-Installation-061

Step 9: After the Disk creation is done, boot the Virtual Machine and begin installing Ubuntu.

Ubuntu-VirtualBox-Installation-071

Step 10: If the installation disk is not automatically detected. Browse the file location and select the ISO file for Ubuntu.

Ubuntu-VirtualBox-Installation-081

Step 11: Proceed with the installation file and wait for further options.

Ubuntu-VirtualBox-Installation-09

Step 12: Click on the Install Ubuntu option, this might look different for other Ubuntu versions.

Ubuntu-VirtualBox-Installation-101

Step 13: Select Keyboard Layout, if the defaults are compatible, just click on the Continue button and proceed.

Ubuntu-VirtualBox-Installation-111

Step 14: Select Installation Type. By default, it is set to Normal Installation, which is recommended, but it can also be changed to Minimal Installation if there is no need for all Ubuntu features.

Ubuntu-VirtualBox-Installation-121

Step 15: Click on the Install Now button and carry on with the installation. Do not get worried about the Erase disk option, it will only be effective inside the virtual machine, and other system files outside the VirtualBox remain intact.

Ubuntu-VirtualBox-Installation-13

Step 16: Click on the Continue button, and proceed with writing changes on the disk.

Ubuntu-VirtualBox-Installation-14

Step 17: Select your Location to set the Time Zone.

Ubuntu-VirtualBox-Installation-15

Step 18: Choose a Name for your computer and set a Password to secure login info.

Ubuntu-VirtualBox-Installation-16

Step 19: Wait for the installation process to complete.

Ubuntu-VirtualBox-Installation-181

Step 20: Once the installation process is over, reboot your Virtual Machine.

Ubuntu-VirtualBox-Installation-191

Step 21: Voila!! You’re finished with the installation process. Now you can use Ubuntu along with Windows, without creating a dual boot.

Ubuntu-VirtualBox-Installation-201

Steps to Make Full Screen of Ubuntu OS on VirtualBox

Note: After installing Ubuntu in Virtual Box, you may find that the Operating System is not suitable for full-screen mode. If you try to make it large by clicking on maximize button, the visual part remains the same and the outside becomes white/black.

0--Small-Screen

Step 1: To overcome this and make Ubuntu fullscreen in Virtual Box, click on Devices then on Insert Guest Additions CD Image.

1--Click-Insert-Guest

Step 2: Now you will be able to see a Disk icon on the Taskbar, click on that and it will open the disk

2--Click-Guest

Step 3: Write right-click inside the folder select Open in the Terminal, and run the following commands. It will ask for the user’s password, enter the password, and wait till completion.

sudo apt update

sudo apt upgrade

3--Execute-Two-Commands

Step 4: After updating, run the command

./autorun.sh

4--Execute-Next-Command

Step 5: Now it will ask for the password and after checking the password a new tab will open inside the terminal. Enter Yes there.

5--Press-Yes

Step 6: After installation restart Ubuntu and now you can use Ubuntu in Full-Screen Mode.

6--Reboot-Ubuntu

So, these are some long steps needed to Download & Install Ubuntu on VirtualBox. You should go through the entire steps for successfully Launching Ubuntu on VirtualBox in Full- Screen Mode. If you miss any step or perform any error, the VirtualBox Installation of Ubuntu will not be successful.

Conclusion

By following this article, you can easily install Ubuntu on VirtualBox and begin exploring all that this versatile operating system has to offer. VirtualBox provides a flexible and user-friendly platform for running multiple operating systems simultaneously, making it ideal for testing and development purposes. Regularly updating your Ubuntu VirtualBox installation and maintaining good virtualization practices will ensure a stable and efficient experience. Enjoy the benefits of both worlds by using Ubuntu on VirtualBox.

How to Install Ubuntu on VirtualBox – FAQs

How to install Ubuntu on VirtualBox?

The steps required to install Ubuntu on VirtualBox, the following steps will be used properly.

  1. Install the Ubuntu ISO File from the Ubuntu Official Webpage.
  2. Open VirtualBox Application
  3. Click on New Section.
  4. Upload the Ubuntu ISO File and provide the OS Name.
  5. Assign the RAM Space
  6. Create a Virtual Hard Disk.
  7. Now, the Ubuntu ISO File is ready.
  8. Click on the Start button of Ubuntu OS to execute it.
  9. Click on the Install Ubuntu button
  10. Follow all the on-screen instructions.

What are the prerequisites to install Ubuntu on VirtualBox?

To install Ubuntu on VirtualBox, you need:

  • A computer with a compatible operating system (Windows, macOS, or Linux).
  • VirtualBox software installed on your computer.
  • An Ubuntu ISO file, which can be downloaded from the official Ubuntu website.
  • At least 4GB of RAM and sufficient disk space (20GB or more) for the virtual machine.

Do installation of Ubuntu on Virtual is different from Normal Disk Installation?

Yes! The installation of Ubuntu on VirtualBox is different from Normal Disk Installation. In Normal Disk Installation, you have to create new primary disk space by separating it from another driver. In the virtual installation process, there are no such complications present. So, it makes the complete process simple to execute.



Previous Article
Next Article

Similar Reads

How to Install Ubuntu Budgie in Virtualbox?
Ubuntu Budgie is a community-developed distribution, integrating the Budgie Desktop Environment with Ubuntu at its core. Whether you use it on an old computer or a powerful workstation, Ubuntu Budgie is adaptable to any device, keeping them fast and usable. It combines the thoroughly-tested and stable Ubuntu core with a modern, lightweight, and tra
4 min read
Install ERPNext/Frappe on Windows (Ubuntu server) via VirtualBox
ERPNext is a powerful, open-source ERP system that helps businesses manage various functions seamlessly. This guide will walk you through the process of installing ERPNext/Frappe on a Windows machine using an Ubuntu server in VirtualBox, with port forwarding enabled for easy access. PrerequisitesBefore we begin, ensure you have the following: A Win
5 min read
How to Install VirtualBox in Linux?
Virtual Machine abstracts the hardware of our personal computers such as CPU, disk drives, memory, NIC (Network Interface Card), etc., into many different execution environments as per our requirements, hence giving us a feeling that each execution environment is a single computer. For example, VirtualBox. We can create a virtual machine for severa
3 min read
How to Install RHEL 8 on VirtualBox ?
Red Hat Enterprise Linux (RHEL) is a Linux-based operating system from Red Hat designed for businesses. RHEL can work on desktops, on servers, in hypervisors, or in the cloud. Red Hat and its community-supported counterpart, Fedora, are among the most widely used Linux distributions in the world. The best way to run two or more Operating Systems si
4 min read
How to Install Deepin on VirtualBox?
Deepin is a Debian-based distribution that aims to provide a user-friendly, user-friendly and reliable operating system. It does not only include the best open source world has to offer, but also it has created its own desktop environment called DDE which is based on the Qt 5 toolkit. It focuses much of its attention on intuitive design. Features:N
3 min read
How to Install VirtualBox on Windows?
Virtual Machine abstracts the hardware of our personal computers such as CPU, disk drives, memory, NIC (Network Interface Card), etc, into many different execution environments as per our requirements, hence giving us a feeling that each execution environment is a single computer. For example, VirtualBox. We can create a virtual machine for several
1 min read
How to Install Kali Linux VirtualBox Image?
Kali Linux is considered as the best perpetration testing Linux distribution as it comes with every important tool pre-installed in it. If you have a spare system you can directly install Kali into it, but if you plan to use it in a virtual environment then the best and safest method would be to use VirtualBox in your system. You can download Virtu
2 min read
How to Install Kali Linux in VirtualBox?
Dual Booting a Windows Laptop with Kali Linux, Though increases the speed and efficiency of the OS, but we can not switch between Windows and Kali Linux instantly. To do so, we will have to install Kali Linux in Virtual Box or any other hypervisor. So, what is a hypervisor? Refer to this article Hypervisors. So now, whenever we want to switch betwe
5 min read
How to Install Parrot OS in VirtualBox?
Parrot OS :Parrot is similar to Kali Linux, which means it is also used for security purposes and ethical hacking. Similar to Kali, it is also a Linux-based distribution. Now the question arises, which one is better, Kali or Parrot. Both the OS supports 32-bit and 64-bit architecture, supports cloud VPS, support for embedded and IoT devices, and co
8 min read
How to Install Garuda Linux on VirtualBox?
Garuda Linux is a rolling distribution that is based on the Arch Linux operating system, except, like Arch Linux, Garuda Linux comes with a graphical installer which is useful for easy installation, and also has other advanced graphical tools for managing one's system. It is a performance-oriented Linux distro with many performance-enhancing tweaks
3 min read
How to Install Kubuntu on VirtualBox?
Kubuntu is the flavor of the Ubuntu operating system which uses the KDE Plasma Desktop instead of the GNOME desktop environment. Kubuntu 21.04 features the beautiful KDE Plasma. It comes with updates to many core packages, including KDE Frameworks 5.68, Plasma 5.18 LTS KDE Applications 19.12.3, and a new 5.4-based kernel. Features:Provides complete
3 min read
How to install CSI Linux in VirtualBox?
What if there is a multi-purpose operating system designed especially for cyber investigators, yes you read it right and the answer to that question is, yes there is one such operating system known as CSI Linux. It is an open-source 'theme park' for the cyber security industry enthusiast. It has tons of resources for investigations, analysis, and r
3 min read
How to install Kioptrix Level 1 on VirtualBox
Kioptrix is a downloadable VM image file on Vulnhub. It is a VM image challenge to get root access by any means possible. The goal of these is to learn the basic tools and techniques in vulnerability assessment and exploitation. There is more than one way to complete the kioptrix challenge by getting root access. There is a total of 5 kioptrix vuln
2 min read
How to install Metasploitable 2 in VirtualBox
Let's first discuss what Metasploitable is, it is a testing environment that is very useful for beginner who wants to practice and test their penetration testing skills and security research. It is a target machine that is used to discover and penetrate vulnerabilities so that the user gets an idea of real-life targets and machines. In other words,
5 min read
How to Install Kali Linux in VirtualBox: Using Pre-built VM?
Kali Linux is a powerful and versatile operating system designed for access testing and security monitoring and can be installed in a variety of ways. Although many users choose to install Kali Linux using an ISO image, this article will walk you through the installation process using a pre-installed virtual machine (VM). This method is faster, and
4 min read
How to Install Arch Linux in VirtualBox?
Installing Arch Linux on a virtual machine is an excellent way to experience this powerful and flexible Linux distribution without affecting your main system. If you're looking to install Arch Linux in VirtualBox, this guide will take you through the process step-by-step. Arch Linux is known for its simplicity and customization, making it a popular
7 min read
How to Enable Copy and Paste in Oracle VirtualBox?
In this article, we will see how to enable copy and paste from a Windows host to a VirtualBox and vice-versa. We've taken the VirtualBox guest additions which gives us various additional tooling, specifically giving us the ability to copy and paste. It also enables bi-directional copy and pastes. Step 1: Start the Virtual Box and go to Settings as
1 min read
Installing Backtrack on VirtualBox
BackTrack Linux is a custom distribution that focuses on security testing for all skill levels. It is the largest collection of wireless hacking, server exploiting, web application assessing, social-engineering tools which can be found in a single Linux distribution. BackTrack Linux is a fine example of how a specialized Linux distribution should b
2 min read
How to Run Multiple Virtual Machines Windows and Linux Inside VirtualBox?
Virtual Machines are the software applications/files which emulate the physical computers. This process of emulating a physical computer and making able to run instances of it on a single physical machine is called Virtualization. A Virtual Machine (VM) allows us to run multiple or different Operating systems on a single physical machine and share
11 min read
Virtualbox - Virtualization is Enabled but not Working
Virtualization is a technique to separate a service from the underlying physical delivery of that service. It is the process of creating a virtual version of something like computer hardware. Sharing the underlying physical hardware with other virtualized resources, this virtualized resource functions independently like a real thing. Enhancing flex
4 min read
How to install Mailspring on Ubuntu
MailSpring application is an Email Client that provides various high-rich features like email templates, mail merge, custom signatures, and advanced search options. MailSpring application supports various email providers and email services like Gmail, Yahoo, and Microsoft Exchange. In this article, we will be installing the MailSpring application o
4 min read
How to Install Ubuntu on Windows using VMware?
VMWare, a short form of "VirtualMachine Ware". A cloud computing company that develops virtualization software, management, and networking interfaces or tools. It provides hypervisor tools or products that help in running virtual machines, clusters, and containers. By using this software we can virtualize the computer with required computing resour
2 min read
How to install the NFS server on Ubuntu?
NFS, which stands for Network File System, was created in 1984 by Sun Microsystems. A file system called Network File System (NFS) enables local access to distant files from various places across a network.NFS has a typical client/server architecture for this access, facilitating sharing between Linux workstations of any distribution. We will demon
4 min read
How to Install PyQuery package on Ubuntu?
Pyquery is a Python library that has quite a similar API to jQuery. It uses lxml module for fast XML and HTML manipulation experience. The API is as large as possible comparable to jQuery. Pyquery is processed on the server-side, unlike jquery which is processed in the browser. We can crawl the web information through this library very easily. Requ
2 min read
How to install Django with NGINX, Gunicorn, and PostgreSQL on Ubuntu?
This article describes how to install and configure Django with PostgreSQL, Gunicorn, and Nginx on your Ubuntu machine. First, let's look at an overview of all the tools we use. Django is a robust, free, open-source, Python-based web framework that follows the MVT (Model-Template-View) architectural pattern. Though it includes an integrated develop
6 min read
How to Install and Configure Fish Shell in Ubuntu?
Fish Shell is a unique user-friendly command-line shell for the different operating systems. fish includes some smart features like syntax highlighting, fancy tab completions and autosuggest-as-we-type that just works by default with no configuration required. fish is mostly written in shell script and in C++. Step 1: Install fish repository in ubu
1 min read
How to Install Ulauncher in Ubuntu?
Ulauncher is a fast app launcher which allows searching app and files by pressing hotkeys. Ulauncher is written in Python with GTK+. Below are some Ulauncher app launcher features: Fuzzy search (type in app name without worrying about spelling)built-in themescustomizable shortcutsSearch Google, Wikipedia, and Stack Overflowwide range of plugins 1.
1 min read
How to Install and Configure Synaptic Package Manager in Ubuntu?
Synaptic Package Manager is a GUI based package management tool that uses APT (Advanced Package Tool) to installing, updating or removing packages from the Linux system. Some of the feature given by Synaptic Package Manager are: Allow installing, updating or removing packagesUpgrading whole systemSearching and filtering the list of packages availab
1 min read
How to Install and Configure Elasticsearch on Ubuntu ?
Elasticsearch is a Cross-platform search engine based on Apache's Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. It is written in Java. Prerequisites: Java Installation on Ubuntu Step 1: First, update your system by using the following command: $sudo
1 min read
How to Install PyQt for Python3 on Ubuntu?
PyQt is a Python binding of the cross-platform GUI toolkit Qt. It is implemented as a Python plug-in and developed by the British firm Riverbank Computing. It implements approximately 440 classes and 6,000 functions and methods. It is not installed by default, so to use this we have to install it in our system. It is used to create desktop applicat
2 min read