Skip to content

Instantly share code, notes, and snippets.

@4nd3r
Last active August 16, 2021 17:35
Show Gist options
  • Save 4nd3r/69e24a35c70194dd1cbe5ca0f0f80a59 to your computer and use it in GitHub Desktop.
Save 4nd3r/69e24a35c70194dd1cbe5ca0f0f80a59 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
sudo qemu-system-x86_64 \
-enable-kvm \
-cpu host,hv-vapic,hv-spinlocks=8191,hv-time \
-smp 2 \
-m 4096 \
-drive if=virtio,cache=none,aio=native,format=raw,file=/dev/vg/windows \
-netdev user,id=eth0,hostfwd=tcp:127.0.0.1:3389-:3389 \
-device virtio-net-pci,netdev=eth0 \
-usb \
-device usb-tablet \
-rtc base=localtime \
-device tpm-tis,tpmdev=tpm0 \
-tpmdev passthrough,id=tpm0,path=/dev/tpm0,cancel-path=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment