From 4d334454de0dff14a3d98e32974fbaa29d5907c4 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 23 Jan 2026 15:18:46 +0000 Subject: [PATCH] fix(windows): enforce minimum 2 CPU cores for Windows 11 guests Fixes #1423 Signed-off-by: Martin Wimpress --- quickemu | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quickemu b/quickemu index ea826b0..7d27e52 100755 --- a/quickemu +++ b/quickemu @@ -516,6 +516,15 @@ function configure_cpu() { GUEST_CPU_CORES="${cpu_cores}" fi + # Windows 11 requires a minimum of 2 CPU cores to install + # https://github.com/quickemu-project/quickemu/issues/1423 + if [ "${guest_os}" == "windows" ] && [[ "${VMNAME}" == *"windows-11"* || "${VMNAME}" == *"win11"* ]]; then + if [ "${GUEST_CPU_CORES}" -lt 2 ]; then + echo " - CPU: Adjusting CPU cores from ${GUEST_CPU_CORES} to 2 (Windows 11 minimum requirement)" + GUEST_CPU_CORES="2" + fi + fi + # macOS guests cannot boot with most core counts not powers of 2. # Find the nearest but lowest power of 2 using a predefined table if [ "${guest_os}" == "macos" ]; then