#!/bin/sh # install qemu for qemu-system-x86_64 # install spice-client-gtk for spicy # install spice-vdagent for spice and vdagent # libvirt-daemon for /shrug SPICE_PORT=5924 qemu-system-x86_64 \ -enable-kvm \ -daemonize \ -cpu host \ -smp 4 \ -net nic \ -net user,hostname=windowsvm \ -m 8G \ -vga qxl \ -boot d \ -cdrom win.iso \ -drive file=/dev/sdb,cache=none,if=virtio \ # change drive if needed -spice port=${SPICE_PORT},disable-ticketing \ -device virtio-serial \ -chardev spicevmc,id=vdagent,name=vdagent \ -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT}