Skip to content

Instantly share code, notes, and snippets.

@s-kostyuk
Created June 2, 2020 19:51
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 s-kostyuk/b8940413cc4334092a6fcc58661e0278 to your computer and use it in GitHub Desktop.
Save s-kostyuk/b8940413cc4334092a6fcc58661e0278 to your computer and use it in GitHub Desktop.
#!/bin/sh
exec \
/home/srgk/Downloads/qemu-5.0.0/x86_64-softmmu/qemu-system-x86_64 \
-enable-kvm \
-cpu host,kvm=off \
-drive file=WindowsVM.img,if=virtio \
-net nic -net user,hostname=windowsvm \
-m 2G \
-monitor stdio \
-name "Windows" \
-device vfio-pci,host=00:1f.3,multifunction=on,x-no-mmap \
-trace events=/home/srgk/temp/vm_trace.config \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment