QEMU起動スクリプト
This content is a draft and will not be included in production builds.
#!/bin/sh
set -eu
#loader=/usr/share/ovmf/x64/OVMF_CODE.secboot.fdloader=/usr/share/ovmf/x64/OVMF_CODE.fdnvram=OVMF_VARS.fd
exec qemu-system-x86_64 -m 8G -smp 2 \ -machine q35,smm=on,type=pc,accel=kvm \ -device nvme,drive=nvme0,serial=0 \ -drive file=win.img,cache=writethrough,id=nvme0,if=none \ -drive if=pflash,unit=0,format=raw,read-only=on,file=$loader \ -drive if=pflash,unit=1,format=raw,file=$nvram \ -global driver=cfi.pflash01,property=secure,value=on \ -global ICH9-LPC.disable_s3=0 \ -global ICH9-LPC.disable_s4=0 \ -device virtio-net-pci,netdev=ether0 \ -netdev user,id=ether0,net=10.0.2.0/24 \ -audiodev pa,id=snd0,server=/run/user/$(id -u)/pulse/native \ -device intel-hda \ -device hda-duplex,audiodev=snd0 \ -vga virtio -display gtk,grab-on-hover=on,gl=on \ -usb -device usb-tablet