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.

13 lines
252 B

  1. #!/bin/bash
  2. if [ -z $1 ]
  3. then
  4. echo "Usage: ./qemu.sh <device>"
  5. exit 1
  6. fi
  7. sudo qemu-system-x86_64 \
  8. -smp cpus=2 \
  9. -enable-kvm -rtc base=localtime -m 2G -vga std -display sdl \
  10. -drive file=/dev/$1,readonly=on,cache=none,format=raw,if=virtio