dotfiles/qemu/bin/windows10
2023-10-15 11:57:01 +02:00

15 lines
500 B
Bash
Executable file

#!/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" \
"$@"