Boot VM from USB
Introduction⚑
I needed to repartition a disk on a Linux VM and obviously the only way to do that is if the filesystem is read-only. This means booting off a USB drive. But how does the VM know to boot off the USB of the host? This is how:
Create the USB drive:⚑
I created a USB boot disk for GParted Live:
- Get GParted Live iso
- Create the image:
╰─$ sudo dd if=./gparted-live-1.4.0-5-amd64.iso of=/dev/sdb1 bs=4M; sync
Get the VM to boot off the USB drive⚑
Boot VMware VM startup (gparted.live):
- Power down VM
- Virtual Machine -> Advanced
- Change Firmware type to UEFI
- Enable UEFI Secure Boot
- Virtual Machine -> "Power on to Firmware"
- Select USB device