ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
61.58k stars 4k forks source link

VirtualBox Raw USB Disk Boot #803

Open kmm2 opened 3 years ago

kmm2 commented 3 years ago

Testing directly bootable disks in VirtualBox is very convenient, see http://www.virtualbox.org/manual/ch09.html#rawdisk

I created a USB "rawdisk" like this: VBoxManage internalcommands createrawvmdk -filename "...path/usb.vmdk" -rawdisk /dev/sdb

It boots OK with grub4dos bootloader but always exits to "grub" prompt with Ventoy bootloader. Is there a solution to this problem?

steve6375 commented 3 years ago

Try using VMUB and VBox v5 (NOT v6). https://rmprepusb.com/tutorials/004-how-to-boot-directly-from-a-usb-drive-using-an-emulator-or-vm-under-windows/#Boot_from_a_USB_drive_using_Oracle_Virtual_Box

VMUB automatically creates the vmdk file but it also unlocks the USB drive from Windows so that when VBox runs, it has full read/write access to the USB drive.

kmm2 commented 3 years ago

Thanks @steve6375 but VMUB is for Windows while I am using a Linux host. Also there is no issue with "snapshotting" under Linux as I can preset vmdk as a "writethrough" disk.