The Mostly Harmless USB Disk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
298 B

if [ -z $1 ]
echo "Usage: ./ <device>"
exit 1
sudo qemu-system-x86_64 \
-smp cpus=2 \
-bios /usr/share/edk2-ovmf/x64/OVMF.fd \
-enable-kvm -rtc base=localtime -m 2G -vga virtio -display sdl \
-drive file=/dev/$1,readonly=on,cache=none,format=raw,if=virtio