# QEMU configuration for the Windows 11 virtual machine. The accelerators and machine type # are in -.ini (os is linux or darwin), which QEMU reads after # this file. # # build-windows-base.sh fills in the file path placeholders below, writes the result # to /qemu.ini and passes it to QEMU with -readconfig. Options that # have no -readconfig equivalent (-cpu, -display), the network and the installation # media are still added by the script. # # Every device here has an inbox Windows driver: the base image made from this # installation contains no VirtIO drivers. [name] guest = "windows11" [memory] size = "8G" [smp-opts] cpus = "8" # UEFI firmware: read-only code and the per-VM variable store. [drive "pflash0"] if = "pflash" format = "raw" readonly = "on" file = "${uefi_code}" [drive "pflash1"] if = "pflash" format = "raw" file = "${uefi_vars}" # System disk image; the device that exposes it (and the NIC, which is # attached to the user-mode network "net0" that the installer defines with # -netdev) is in the architecture file. [drive "system_disk"] if = "none" format = "qcow2" file = "${disk_image}" # Register the USB tablet after vdagent so QEMU selects it as the active pointer. [device "usb_controller"] driver = "qemu-xhci" [device "tablet0"] driver = "usb-tablet" bus = "usb_controller.0" # The QEMU monitor, on a socket in the state directory: build-windows-base.sh # presses a key through it at the "Press any key to boot from CD or DVD" prompt. [chardev "monitor"] backend = "socket" path = "${monitor_socket}" server = "on" wait = "off" [mon "monitor0"] chardev = "monitor" mode = "readline"