Last active
March 3, 2024 11:41
-
-
Save mistivia/e02f3de08d94efd7573530423575dec7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
| chipset="type=q35,kernel_irqchip=on,mem-merge=on" | |
| vcpu="host" | |
| hyper="kvm,thread=multi" | |
| CPU_SOCKETS="1" | |
| CPU_CORES="4" | |
| CPU_THREADS="4" | |
| exec qemu-system-x86_64 \ | |
| -enable-kvm \ | |
| -m "4096" \ | |
| -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \ | |
| -machine ${chipset} \ | |
| -cpu ${vcpu} \ | |
| -device ich9-ahci,id=sata \ | |
| -smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS" \ | |
| -drive id=WinHDD,if=none,file="./win10.img",format=qcow2 \ | |
| -device ide-hd,bus=sata.3,drive=WinHDD \ | |
| -netdev user,id=net0,hostfwd=tcp::9090-:9090 -device rtl8139,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \ | |
| -usb \ | |
| -device usb-tablet \ | |
| -device qemu-xhci,id=xhci \ | |
| -display sdl,gl=on \ | |
| -audio driver=sdl,model=hda \ | |
| # -cdrom ./win10.iso \ | |
| #-usb -device usb-host,hostbus=1,hostaddr=4 \ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment