Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox

Virtualization is the creation of virtual (rather than physical) versions of computing environments—like operating systems, storage, or servers.

With virtualization tools like VirtualBox, you can:

Run multiple OSes on one computer
Test applications …


This content originally appeared on DEV Community and was authored by Tarun Kumar

Virtualization is the creation of virtual (rather than physical) versions of computing environments—like operating systems, storage, or servers.

With virtualization tools like VirtualBox, you can:

  • Run multiple OSes on one computer
  • Test applications safely
  • Learn Linux without dual-booting

Step 0: Is Virtualization Enabled?

Before setting up anything, make sure virtualization is enabled on your system:

  1. Press Ctrl + Shift + Esc to open Task Manager
  2. Go to the Performance tab
  3. Click on CPU
  4. Look for Virtualization in the bottom-right corner

Alt text

👉 If it says Enabled, you're good to go.

❌ If it says Disabled, go into your BIOS/UEFI settings and enable virtualization.

Step 1: Download and Install VirtualBox

Download VirtualBox from its official site: 🔗 Download VirtualBox

Alt text

Choose the version that matches your OS (Windows, macOS, Linux, etc.) and install it just like any regular software.

Step 2: Download Ubuntu ISO

Download Ubuntu Desktop ISO (we're using 22.04.5 in this tutorial)

🔗 Ubuntu 22.04.5 Download

Alt text

when you go to that page, you just need to scroll down little bit, and you will see the Ubuntu model:

  • File: ubuntu-22.04.5-desktop-amd64.iso
  • Release Date: 2024-09-11
  • Size: 4.4 GB

Once you locate the file, click on the download link to start the process. Depending on your internet connection speed, the download may take some time to complete, so be patient as it prepares your system for installation.

Save it somewhere easy to find like your Downloads folder.

Step 3: Create a New Virtual Machine

Open VirtualBox

Alt text

In my case, VirtualBox shows two virtual machines that I had previously created. You can ignore them.

Alt text

  1. Click New this will open the interface to create a virtual machine, as shown in the image above.

  2. Set a name (e.g., tarun_ubuntu_vm) that you want give your Virtual Machine.

  3. Choose a folder (e.g., D:\VMs) to store the virtual machine, I recommands you to create a folder in the D-drive and provide the path to the folder, it separates all data of the Virtual Machine from your C drive.

  4. Select:

    • Type: Linux
    • Version: Ubuntu (64-bit)
    • Press Next
  5. Set Memory size: At least 4096 MB (4 GB)

  6. Create a Virtual Hard Disk:

    • Type: VDI (VirtualBox Disk Image)
    • Storage: Dynamically allocated
    • Size: 20 GB

Click Create when done.

Step 4: Load Ubuntu ISO and Begin Installation

Now connect the Ubuntu ISO to your VM:

  • Select your VM and click Settings > Storage
  • Under "Controller: IDE", click Empty
  • Click the CD icon > Choose a disk file

Alt text

  • Select the Ubuntu ISO you downloaded earlier and click OK
  • Then click Start to launch the VM!

Follow the on-screen installation steps within the VM to complete the Ubuntu setup.

Once the installation is finished and Ubuntu boots up successfully, you should see a desktop environment similar to the one below:

Alt text

At this point, your VirtualBox and Ubuntu environment are fully set up and ready for use.

Step 5: Install Essential Packages (Optional)

Once Ubuntu is installed and booted, open the terminal and run:

sudo apt update && sudo apt upgrade -y
sudo apt install build-essential curl git -y

Let’s Connect

If you found this guide helpful:

  • Leave a ❤️ to support my first Dev.to post!
  • Drop a comment if you ran into any issues
  • Follow me for more beginner-friendly Linux and IoT tutorials coming soon

Thanks for reading, and happy virtualizing! 🐧🚀


This content originally appeared on DEV Community and was authored by Tarun Kumar


Print Share Comment Cite Upload Translate Updates
APA

Tarun Kumar | Sciencx (2025-07-13T06:48:08+00:00) Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox. Retrieved from https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/

MLA
" » Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox." Tarun Kumar | Sciencx - Sunday July 13, 2025, https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/
HARVARD
Tarun Kumar | Sciencx Sunday July 13, 2025 » Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox., viewed ,<https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/>
VANCOUVER
Tarun Kumar | Sciencx - » Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/
CHICAGO
" » Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox." Tarun Kumar | Sciencx - Accessed . https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/
IEEE
" » Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox." Tarun Kumar | Sciencx [Online]. Available: https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/. [Accessed: ]
rf:citation
» Beginner’s Guide: How to Set Up a Virtual Machine with Ubuntu in VirtualBox | Tarun Kumar | Sciencx | https://www.scien.cx/2025/07/13/beginners-guide-how-to-set-up-a-virtual-machine-with-ubuntu-in-virtualbox/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.