Hi everyone,
I’ve encountered a bug when running nested VMs via Incus (6.0.4) on Debian Trixie in Hyper-V (Version 10.0.26100.5074) on Windows 11.
I get the following Error:
Code=qemu-system-x86_64: hw/core/cpu-system.c:90: cpu_asidx_from_attrs: Assertion `ret < cpu->num_ases && ret >= 0' failed.
Reproducer
Create a new Gen2 Hyper-V VM with the following settings
-
20GB of memory (just to be sure it’s not due to OOM)
-
disabled dynamic memory
-
disabled secure boot
-
enable nested virtualization (As admin:
Set-VMProcessor -VMName "Trixie Crash Test" -ExposeVirtualizationExtensions $true)
Then, install Debian 13 Trixie with all default values, for features only SSH Server + standard system utilities only.
In that new VM, I then ran as root:
apt update && apt upgrade
apt install incus
# Choose the default for everything
incus admin init
incus init images:debian/13 debian-test --vm -c limits.memory=8GB
incus start debian-test --console
# You will be thrown back to your root prompt after a few seconds
# Then, you find the error from above using
incus info debian-test --show-log
Error:
Name: debian-test
Description:
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2025/10/06 10:34 PDT
Last Used: 2025/10/06 10:34 PDT
Log:
KVM: entry failed, hardware error 0xffffffff
EAX=00000000 EBX=94003d38 ECX=000000b2 EDX=000000b2
ESI=00000000 EDI=00000058 EBP=94003ca0 ESP=94003c78
EIP=00008000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=1 HLT=0
ES =0000 00000000 ffffffff 00809300
CS =f900 7eff9000 ffffffff 00809300
SS =0000 00000000 ffffffff 00809300
DS =0000 00000000 ffffffff 00809300
FS =0000 00000000 ffffffff 00809300
GS =0000 00000000 ffffffff 00809300
LDT=0000 00000000 00000000 00000000
TR =0040 04a2b000 00004087 00008b00
GDT= 04a29000 0000007f
IDT= 00000000 00000000
CR0=00050032 CR2=b2a01000 CR3=00228000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=qemu-system-x86_64: hw/core/cpu-system.c:90: cpu_asidx_from_attrs: Assertion `ret < cpu->num_ases && ret >= 0' failed.
I’ve then tried to narrow down the maximum amount of Memory I can give the machine using binary search and arrived at 2815MiB
incus config set debian-test limits.memory 2815MiB
incus start debian-test --console
# Works, you get the debian serial console login prompt
incus config set debian-test limits.memory 2816MiB
incus start debian-test --console
# Does not work, thrown back to root shell
The hardware I am running this on is the following:
Operating System: Windows 11 Pro 64-bit (10.0, Build 26100) (26100.ge_release.240331-1435)
Language: English (Regional Setting: English)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: X570 AORUS ELITE
BIOS: F37 (type: UEFI)
Processor: AMD Ryzen 7 3800X 8-Core Processor (16 CPUs), ~3.9GHz
Memory: 65536MB RAM
Available OS Memory: 65464MB RAM
Page File: 63623MB used, 5936MB available
The Question
Is this a known issue, and if not, would you be open to helping me debug this? I can of course provide more informationand offer my help as well ![]()