Load the Windows 11 VM hardware from QEMU config files and add port options

Move the QEMU hardware definition of the Windows 11 VM into
qemu/windows11.ini and qemu/windows11-amd64.ini, loaded with -readconfig
like the Linux launchers. The network stays in the launcher because a
config file section cannot hold two hostfwd entries. Add --rdp-port and
--ssh-port, which override the WIN11_VM_*_PORT environment variables.
WIN11_VM_MEMORY and WIN11_VM_CPUS are replaced by the config file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-10-15 12:36:15 +08:00
1 parent 26baf25172
commit e1e5a2149c
4 files changed
+179 -29

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
# amd64 part of the Windows 11 QEMU configuration; read after windows11.ini.
[machine]
type = "q35"