Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
QEMU + Windows 10 x64 + KVM + IOMMU + AHCI + QXL & SPICE (as socket)
#!/bin/sh
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm -cpu host -smp 2,cores=2 -m 8G -boot menu=on \
-drive id=disk,file=/mnt/hdd1/Images/win10_x64,if=none,format=raw \
-device intel-iommu \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0 \
-netdev user,smb=/home/archie,id=vmnic -device virtio-net,netdev=vmnic \
-vga qxl \
-spice unix,addr=/tmp/vm_spice.socket,disable-ticketing \
-usbdevice tablet \
-device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent \
-soundhw hda \
-balloon virtio \
#-drive file=/home/archie/Downloads/Win10_1607_English_x64.iso,index=3,media=cdrom \
#-drive file=/home/archie/Downloads/virtio-win-0.1.126.iso,index=3,media=cdrom \
#spicy --uri="spice+unix:///tmp/vm_spice.socket"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment