diff --git a/qemu/bin/windows b/qemu/bin/windows new file mode 100755 index 0000000..5fd4207 --- /dev/null +++ b/qemu/bin/windows @@ -0,0 +1,9 @@ +#!/bin/sh -ex +qemu-system-x86_64 \ + -enable-kvm \ + -cpu host -smp "$(("$(nproc)" / 2))" \ + -m "$(("$(free | grep '^Mem: ' | awk '{ print $NF }')" / 2))K" \ + -net nic \ + -device virtio-serial \ + -usbdevice tablet \ + "$@" diff --git a/qemu/bin/windows-spice b/qemu/bin/windows-spice new file mode 100755 index 0000000..6327a9a --- /dev/null +++ b/qemu/bin/windows-spice @@ -0,0 +1,7 @@ +#!/bin/sh -x +exec windows \ + -vga qxl \ + -spice port=5900,addr=127.0.0.1,disable-ticketing=on \ + -chardev spicevmc,id=vdagent,name=vdagent \ + -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \ + "$@" diff --git a/qemu/bin/windows10 b/qemu/bin/windows10 deleted file mode 100755 index 9bbac80..0000000 --- a/qemu/bin/windows10 +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -ex -name="$(basename "$0")" -qemu-system-x86_64 \ - -monitor stdio -enable-kvm \ - -bios /usr/share/edk2/x64/OVMF_CODE.fd \ - -usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \ - -cpu host -smp "$(nproc)" \ - -m 4G \ - -drive "file=images/$(basename "$0").qcow2,if=virtio" \ - -net nic -net "user,hostname=${name}" \ - -audiodev pa,id=snd0 -device ich9-intel-hda -device hda-output,audiodev=snd0 \ - -usbdevice tablet \ - -name "$name" \ - "$@" -