Bug 2376917

Summary: Cannot boot VM using Incus due UEFI EDK problem
Product: [Fedora] Fedora Reporter: Winicius Allan <winiciusab12>
Component: incusAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: fabian, go-sig, jonathan, ngompa13, rcallicotte, reto.gantenbein
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Winicius Allan 2025-07-07 18:58:07 UTC
Description of problem:
I'm facing a problem with VM creation when using Incus as an engine. The UEFI EDK2 firmware appears to have crashed during the VM boot process. The discussion can be followed here[1]

[1] https://discuss.linuxcontainers.org/t/incus-shows-error-vm-agent-isnt-currently-running/24174 

Incus version 6.12
Linux kernel version 6.15.4

Steps to Reproduce:
$ sudo dnf install -y incus
$ systemctl enable --now incus
$ incus admin init --minimal
$ incus launch images:debian-12 debian-12 --vm

Actual results:
~
❯ incus console first --show-log
0
0
BdsDxe: loading Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BdsDxe: starting Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
!!!! X64 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 0000000000000011  I:1 R:0 U:0 W:0 P:1 PK:0 SS:0 SGX:0
RIP  - 0000000001800200, CS  - 0000000000000038, RFLAGS - 0000000000210006
RAX  - 0000000001800200, RCX - 0000000000000000, RDX - 000000003CF513E8
RBX  - 000000003CF51000, RSP - 000000003EF291B0, RBP - 0000000000000190
RSI  - 000000003CF51000, RDI - 0000000000000010
R8   - 0000000000000085, R9  - 0000000034B487B0, R10 - 0000000010000000
R11  - 00000000F0000000, R12 - 000000003CF51000, R13 - 000000003C6EDEA0
R14  - 000000003C6E85A1, R15 - 000000003C6F8FA0
DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
GS   - 0000000000000030, SS  - 0000000000000030
CR0  - 0000000080010033, CR2 - 0000000001800200, CR3 - 000000003EC01000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 000000003E9E1000 0000000000000047, LDTR - 0000000000000000
IDTR - 000000003E3AE018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 000000003EF28E10
!!!! Find image based on IP(0x3C6EDEA0) (No PDB)  (ImageBase=000000003C6DD000, EntryPoint=000000003C6DE000) !!!!

Expected results:
A booted VM

Additional info:
I've tested different guest OS such as Ubuntu, CentOS and Debian, all of them crashed on boot