I'll show you how to boot into a Linux installation on USB drive in VirtualBox.
VB does not normally allow you to boot from a USB, but some command line tricks will get you there.
For instructions on how to do this:
https://www.howtogeek.com/187721/how-to-boot-from-a-usb-drive-in-virtualbox/
The commands to use in a Windows host command prompt are:
cd %programfiles%\Oracle\VirtualBox
VBoxManage internalcommands createrawvmdk -filename C:\usb.vmdk -rawdisk \\.\PhysicalDrive#
(replacing the # at the end with the disk number of your USB drive in Disk Management)
The commands to use in a Linux host terminal are:
sudo fdisk -l
lsblk
vboxmanage internalcommands createrawvmdk -filename ~/usb.vmdk -rawdisk /dev/sdx
(replacing sdx with your actual drive letter)
You can also do the same in a MacOS host terminal using similar commands (not shown in the video):
diskutil list
diskutil unmountDisk /dev/disk#
(replacing # with the disk number of your USB drive)
sudo vboxmanage internalcommands createrawvmdk -filename ~/usb.vmdk -rawdisk /dev/disk#
(again replacing # with your actual disk number)
Then run VirtualBox as root with:
sudo virtualbox
Contact me:
Twitter: @sleepyeyesvince
MeWe: https://mewe.com/i/sleepyeyesvince
13 Comments