Last active
April 27, 2022 07:55
-
-
Save heisvoid/c4e8bca30a7f2e150669b24f0d1a45fd to your computer and use it in GitHub Desktop.
QEMU Windows 10 guest start shell script
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 | |
SPICE_SOCK="/tmp/qemu_win10_spice.socket" | |
OPTS="" | |
OPTS="$OPTS -nodefaults" | |
OPTS="$OPTS -enable-kvm" | |
OPTS="$OPTS -cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time" | |
OPTS="$OPTS -smp sockets=1,cores=2,threads=2" | |
OPTS="$OPTS -m 3072" | |
OPTS="$OPTS -usb -device usb-tablet" | |
OPTS="$OPTS -device virtio-rng-pci" | |
OPTS="$OPTS -rtc base=utc,clock=host" | |
OPTS="$OPTS -nic user,ipv6=off,model=virtio-net-pci,smb=/home/heisvoid/tmp" | |
OPTS="$OPTS -device virtio-balloon" | |
#OPTS="$OPTS -drive file=/home/heisvoid/.qemu/win10.cow,format=qcow2,discard=unmap,if=virtio" | |
OPTS="$OPTS -drive file=/home/heisvoid/.qemu/win10-overlay.cow,format=qcow2,discard=unmap,if=virtio" | |
# SPICE | |
OPTS="$OPTS -vga qxl -device virtio-serial-pci" | |
OPTS="$OPTS -spice unix=on,addr=$SPICE_SOCK,disable-ticketing=on" | |
OPTS="$OPTS -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0" | |
OPTS="$OPTS -chardev spicevmc,id=spicechannel0,name=vdagent" | |
#OPTS="$OPTS -drive file=/home/heisvoid/tmp/en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso,media=cdrom,index=2" | |
#OPTS="$OPTS -drive file=/home/heisvoid/tmp/virtio-win-0.1.217.iso,media=cdrom,index=3" | |
/usr/bin/qemu-system-x86_64 $OPTS |
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 | |
/usr/bin/spicy --uri="spice+unix:///tmp/qemu_win10_spice.socket" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment