Skip to content

Instantly share code, notes, and snippets.

@RealYukiSan
Last active April 20, 2024 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RealYukiSan/3db59032e31811882a527ce9a573e6ce to your computer and use it in GitHub Desktop.
Save RealYukiSan/3db59032e31811882a527ce9a573e6ce to your computer and use it in GitHub Desktop.
Start Guest OS on QEMU

Resize the .img file with truncate, the minimum size is 8 GB

qemu-system-x86_64 -drive if=none,id=usbstick,format=raw,file=./tails-resized.img \
-device usb-ehci,id=ehci -device usb-tablet,bus=usb-bus.0 -device usb-storage,bus=ehci.0,removable=on \
-enable-kvm -machine pc -cpu host -m 3.9G

Link and Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment