ItsmeITItsmeIT
  • Linux
    • Debian
    • Ubuntu
  • PC/Windows
Reading: How to Boot from USB in VirtualBox on Ubuntu/Linux
Share
Font ResizerAa
ItsmeITItsmeIT
Font ResizerAa
  • Categories
    • Linux
    • Debian
    • Ubuntu
    • PC/Windows
Have an existing account? Sign In
Follow US
© 2025 ItsmeIT. All rights reserved.
Table of Contents
  • Prerequisites
    • Step 1: Create a VMDK File for Your USB Drive
    • Step 2: Set Permissions for the VMDK File
    • Step 3: Configure VirtualBox and Boot from USB

Home » Linux » Ubuntu » How to Boot from USB in VirtualBox on Ubuntu/Linux

How to Boot from USB in VirtualBox on Ubuntu/Linux

avatar
By Loibv
avatar
ByLoibv
The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
Follow:
Last updated: April 17, 2025

As you may know, Oracle Virtualbox does not provide any direct way to boot from USB. Luckily, I found a simple solution to allow the Virtualbox virtual machine to boot from a USB flash drive.

Prerequisites

Before you begin, make sure you have the following:

  • VirtualBox: Download and install the latest version of VirtualBox from the official website.
  • Bootable USB Drive: Create a bootable USB drive with your desired Ubuntu 22.04 or 24.04 ISO image. You can use tools like Rufus or the Startup Disk Creator for this.

To allow Virtualbox (boot) to boot from a USB drive, you need to create a *.vmdk file and point it to your USB drive to boot. The file vmdk here will be a virtual disk file containing all the information of a virtual machine operating on VirtualBox with Linux. Now let’s get started.

Step 1: Create a VMDK File for Your USB Drive

VirtualBox doesn’t directly support booting from USB. To work around this, we’ll create a virtual machine disk (VMDK) file that points to your USB drive.

Identify your USB drive: Connect your USB drive and open a terminal. Run the following command to list your drives:

sudo fdisk -l

Look for your USB drive (e.g., /dev/sdb).

Find USB drive
Find USB drive

As shown in the image above, my USB drive is identified as /dev/sdb 29.31Gb. To create the VMDK file, open your terminal and run the following command, replacing /dev/sdb with the correct path to your USB drive:

sudo vboxmanage internalcommands createrawvmdk -filename  ~/Downloads/usb_boot.vmdk -rawdisk /dev/sdb

In the above command, ~/Downloads is where I saved the usb_boot.vmdk file, you can specify a location to save the file on your device.

Create usb_boot.vmdk file
Create usb_boot.vmdk file

Step 2: Set Permissions for the VMDK File

Next, after the usb_boot.vmdk file has been created, you need to set the appropriate permissions for it.

sudo chown $USER:$USER ~/Downloads/usb_boot.vmdk

Next, add your user to the vboxusers and disk groups with the following commands:

sudo usermod -a -G vboxusers ubuntu_username
sudo usermod -a -G disk ubuntu_username

Replace “ubuntu_username” with your user.

Make sure to disconnect the USB drive and reboot your system. This helps ensure that the USB device is re-detected correctly and doesn’t get assigned a different device name (e.g., /dev/sdc instead of /dev/sdb).

Step 3: Configure VirtualBox and Boot from USB

Open the Oracle VirtualBox application and start by creating a new virtual machine. Click the “New” button, then enter a name for your VM (for example, Windows 11). After that, choose the appropriate operating system type and version. Click “Next” to proceed, as shown in the screenshot.

set windows vm name
Name the virtual machine with a Windows operating system

Set up RAM for the virtual device and continue to click Next.

Set up RAM for the virtual device

At this important step, select “Use an existing virtual hard disk file.” Then, click the folder icon to browse and locate the usb_boot.vmdk file you created earlier. Once selected, click “Choose” to add the file to your virtual machine.

Select usb_boot.vmdk file
Select the usb_boot.vmdk file to boot the virtual machine.

Click Create after completing the setup.

Select usb_boot.vmdk file
Select usb_boot.vmdk file

Finally, click the Start button to perform a USB boot into VirtualBox.

Start boot from USB VirtualBox
Start boot from USB VirtualBox
successful usb boot vm
Successful boot interface into the virtual machine from USB

With these steps, you should be able to boot from USB in VirtualBox on your Ubuntu 22.04 or 24.04 system. Let me know if you have any other questions!

Share This Article
Facebook Reddit Telegram Threads
avatar
ByLoibv
Follow:
The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Most Popular
install wordpress nginx
How to Install WordPress on Ubuntu 22.04/24.04 with Nginx, MariaDB, PHP8.2 (LEMP)
Scan Virus Ubuntu
3 Best Ways to Detect and Remove Malware on Ubuntu/Linux
Install SSL Localhost Ubuntu
How to Install SSL on Localhost in Ubuntu / Linux?
fix login error Gnome Online Accounts Ubuntu 22.04
How to Fix GNOME Online Accounts Login Issues on Ubuntu 22.04
Install Telegram on Ubuntu
How to Install Telegram on Ubuntu 22.04 or 24.04 LTS
ItsmeITItsmeIT
Follow US
© 2025 ItsmeIT. All Rights Reserved.
  • Privacy Policy
  • Terms of Service
Logo ItsmeIT logo
Welcome Back!

Sign in to your account

Continue with Google
Register   |Lost your password?