πŸš€ How to Boot Ventoy USB Drive in VirtualBox on Arch Linux

πŸš€ How to Boot Ventoy USB Drive in VirtualBox on Arch Linux

Table of Contents

Booting a Virtual Machine (VM) from a physical USB drive, like a Ventoy multi-boot drive, requires a special workaround on VirtualBox, especially on Linux hosts like Arch. This is because VirtualBox does not natively recognize physical USB drives as bootable hard disks.

This guide will walk you through creating a “Raw Disk” VMDK file that links directly to your USB drive, and crucially, how to handle the common Permission Denied errors that Linux users face.

Prerequisites

  • A host machine running Arch Linux (or similar distribution like Manjaro).
  • VirtualBox installed.
  • A Ventoy USB drive ready with your ISO files.
  • Your user must have sudo privileges.

Step 1: Secure Device Access and Permissions

The most common point of failure is permissions. Your user account must be able to access the raw USB disk device (/dev/sdX) for VirtualBox to function.

  1. Add Your User to Required Groups: You need to be in the disk group to access raw block devices, and in the vboxusers group for general VirtualBox USB access.

    sudo usermod -aG disk $USER
    sudo usermod -aG vboxusers $USER
    
  2. Verify Group Membership:

    groups $USER
    

    (Ensure you see both disk and vboxusers in the output.)

  3. Crucial Step: Relog (or Reboot): Group changes are not active until you start a new session. Log out of your current desktop session and log back in (or reboot the system).


Step 2: Identify and Unmount the USB Drive

  1. Identify the Device Path: Insert your Ventoy USB drive and use lsblk to find its device name (e.g., sdb, sdc). Look for the size that matches your drive.

    lsblk -f
    

    The full path will be /dev/sdX (e.g., /dev/sdb). Be absolutely sure you select the correct device!

  2. Unmount the Drive: The drive must be unmounted on the host system so VirtualBox can gain exclusive access. Replace sdX with your device letter.

    sudo umount /dev/sdX*
    

We use the VirtualBox command-line utility, VBoxManage, to create a small file (.vmdk) that acts as a secure pointer to the physical USB drive.

  1. Execute the VBoxManage command: Run this command in your terminal, replacing the filename and the /dev/sdX path.

    VBoxManage createmedium disk \
        --filename "$HOME/VirtualBox VMs/VentoyBoot.vmdk" \
        --format=VMDK \
        --variant RawDisk \
        --property RawDrive=/dev/sdX
    

    Example: If your device is /dev/sdb:

    VBoxManage createmedium disk --filename "$HOME/VirtualBox VMs/VentoyBoot.vmdk" --format=VMDK --variant RawDisk --property RawDrive=/dev/sdb
    
  2. Verify Ownership (If Necessary): If you were having permission problems previously, ensure the new VMDK file is owned by your user:

    chown $USER:$USER "$HOME/VirtualBox VMs/VentoyBoot.vmdk"
    

Step 4: Configure the Virtual Machine

  1. Launch VirtualBox Manager (as your normal user). Do not use sudo to launch VirtualBox.

  2. Create or Select a VM:

    • It’s recommended to create a new VM (e.g., Linux, 64-bit).
    • When prompted for a Hard Disk, choose “Do not add a virtual hard disk.”
  3. Add the VMDK Link:

    • Select your VM and go to Settings -> Storage.
    • Under the Controller: SATA section, click the Add Hard Disk icon.
    • Select “Choose existing disk” and navigate to the VentoyBoot.vmdk file you created in Step 3.
  4. Optional: Enable EFI Boot:

    • Go to Settings -> System -> Motherboard tab.
    • Check the box for “Enable EFI (special OSes only).” Ventoy is highly compatible with UEFI/EFI, making this a good choice.

Step 5: Launch and Enjoy!

  1. Start the Virtual Machine.
  2. The VM will attempt to boot from the physical Ventoy drive.
  3. You should now see the familiar Ventoy boot menu listing all your ISO files!

Warning: When using raw disk access, the VM has complete control over the physical USB device. Use caution and ensure you have the correct drive selected.

Go to the project Ventoy
Share :
comments powered by Disqus

Related Posts

Windsurf

Windsurf

Windsurf - The First Agentic IDE Website: https://windsurf.com/ Developer: Codeium Platforms: macOS, Windows, Linux

Read More
Ferdium

Ferdium

πŸš€ Reclaim Your Digital Life: Why Ferdium is the Ultimate Open-Source Hub for All Your Web Services The modern workflow is fractured. We leap from Gmail to Slack, then to Discord, Trello, and WhatsAppβ€”each housed in its own browser tab or desktop application. This constant context-switching isn’t just annoying; it’s a productivity killer, turning our screens into a chaotic digital sprawl.

Read More
KeePassXC

KeePassXC

KeePassXC: The Ultimate Open-Source Key to Digital Security In an age where every online service demands a unique, complex password, managing your digital life can feel like safeguarding a thousand different keys. Thankfully, solutions like KeePassXC offer a robust, secure, and user-centric approach to credential management, putting you back in complete control of your data.

Read More