Last active
August 16, 2021 17:35
-
-
Save 4nd3r/69e24a35c70194dd1cbe5ca0f0f80a59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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