0% found this document useful (0 votes)
94 views

How To Boot From A USB Flash Drive in VirtualBox Pen Drive Linux

This document provides steps to boot a USB flash drive from within VirtualBox by mapping the virtual machine to the USB drive. It explains how to identify the USB disk number in Windows disk management, create a raw virtual disk from the USB, and select this disk when creating a new virtual machine in VirtualBox.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views

How To Boot From A USB Flash Drive in VirtualBox Pen Drive Linux

This document provides steps to boot a USB flash drive from within VirtualBox by mapping the virtual machine to the USB drive. It explains how to identify the USB disk number in Windows disk management, create a raw virtual disk from the USB, and select this disk when creating a new virtual machine in VirtualBox.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.

com/boot-a-usb-flash-drive-in-virtualbox/

Home
Disclaimer
Privacy Policy
Contact

Search

How to Boot From a USB


Flash Drive in VirtualBox
How to boot from a USB Flash Drive in VirtualBox. This process will allow you to run your Portable
Linux from the USB Flash Drive or external hard drive while still running from a Windows, Linux, or
Mac OS X Host. By default VirtualBox does not support USB Boot. However, this is easily attainable
by mapping a virtual machine (.vmdk file) to the USB Drive.

VirtualBox Website: https://www.virtualbox.org

Windows Host Linux Host Mac OS X Host

Boot a USB Flash Drive from VirtualBox


(Windows Host)
1. Download and run VirtualBox (Installing to the default path).
2. You'll need to use the command line to perform steps 3-6,
To open a command prompt;
1.) From the Windows '⌕ Type here to search' box, type
cmd.exe

1 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

2.) Then click Run as administrator

3. At the command prompt, type diskmgmt.msc and press Enter to


open the Windows Disk Management Tool.

diskmgmt.msc

Then, Identify your USB Disk #

4. Now, back at the command line, type

cd %programfiles%\oracle\virtualbox

5. Replacing # with your USB Disk number from step 3, type

2 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

VBoxManage internalcommands createrawvmdk -filename


"%USERPROFILE%"\.VirtualBox\usb.vmdk -rawdisk
\\.\PhysicalDrive#

6. To start VirtualBox as Admin, type

start virtualbox

7. Click New, and then proceed to Create a New Virtual Machine.

8. When prompted for a Virtual Hard Disk, tick use existing hard
disk. Then, browse to your %USERPROFILE%\.VirtualBox
folder, and select the usb.vmdk file.

3 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

9. Once done creating your New Virtual Machine, click Start.

If all goes well, VirtualBox should now be emulating, booting, and


running your USB device from within Windows.

Getting Persistence to work in


VirtualBox (Windows)
At first the USB flash drive might not work exactly like it does when
booted natively. Things like Ubuntu's casper persistent feature won't
work. Some distributions might not even boot, or will boot with
errors. This is because the volumes on the device are mounted by
Windows, preventing VirtualBox from gaining full access. In order to
fix these issues, you can use a tool called LockDismount. Then
simply run the tool (using the following steps), prior to starting the
Virtual Machine that is tied to your USB.

1. Download the LockDismount tool

2. Launch the tool right before starting your VirtualBox VM

3. Select your USB from the drop-list, then Press Lock it!

4 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

(optionally you can check Force Dismount)

Now your flash drive should be able to boot in VirtualBox exactly as


it does when booted natively on a physical machine. �

ACCES I/O Products, Inc.


accesio.com

RS-232/422/485 1-8-port USB, PCI, PCI Express, & PC/


104 serial boards

OPEN

How to Boot From a USB Flash Drive in VirtualBox published under USB Virtual Machine Emulation

Tagged under Boot Flash Drive in VirtualBox, Boot USB in VirtualBox, USB Virtual Machine Emulation

Portable Linux Categories


Bootable USB Creator Software

5 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

Flash drive installs using Linux


Flash drive installs using Live CD
Flash drive installs using Windows
USB Virtual Machine Emulation
Using and Configuring Linux

Bootable USB Help


USB Help and Tools
BIOS USB Boot Options
Restoring your USB Key
Fast SSD Flash Drive

©2006-2021 Pendrivelinux.com - Easily Install Boot and Run Linux From a Bootable USB Flash Drive.
Cookies & Privacy Policy
Linux® is a registered trademark of Linus Torvalds. Windows is a registered trademark of Microsoft. Other

6 sur 7 04/03/2021 à 11:22


How to Boot From a USB Flash Drive in VirtualBox | Pen Drive Linux https://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/

names and logos may also be trademarked by their respective owners. Credits

7 sur 7 04/03/2021 à 11:22

You might also like