The Mostly Harmless USB Disk https://mostlyharmless.io/usb/
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

#!/bin/bash
if [ -z $1 ]
then
echo "Usage: ./qemu.sh <device>"
exit 1
fi
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