Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

#Run LiveUSB test in Virtual Box

First open diskmgmt.msc and note disk number for corresponding USB drive then run CMD as admin

cd %programfiles%\Oracle\VirtualBox

 

TestUSB folder must exist!  (Create it first with VBox, but don't create disk file!)

VBoxManage internalcommands createrawvmdk -filename "%userprofile%\VirtualBox VMs\TestUSB\TestLiveUSB.vmdk" -rawdisk \\.\PhysicalDrive1

where PhysicalDrive1 = USB# in diskmgmt.msc

Then Run VBOX as admin, and point TestUSB to the newly created TestLiveUSB.vmdk

In this example Disk1 was D:, which I try to use for removable media, so I can re-use this VirtualBox but if you insert a new USB and it becomes E: this will not work, or need to be re-applied with new disk#

I reccomend having VBox always start as Admin, because if you try to run this Vbox as non-admin it will have to be reapplied.

.CMD to create TestLiveUSBVMDK inside folder TestUSB attached to Disk1 (D:):

Create-TestLiveUSBVMDKDISK1-D.7z

  • No labels