Products › LamBoot › Docs › Troubleshooting

Troubleshooting

Every common problem and fix, recovery procedures, and the boot-report reference.

Version: 0.17.0
Updated: December 2026


First Steps

Before debugging, check the boot log:

cat /boot/efi/EFI/LamBoot/reports/boot.log

The boot log records every phase with timestamps. During early boot (before the menu), it writes to the ESP in real time, so even if LamBoot crashes you will see how far it got.

For automated diagnostics, use lamboot-diagnose:

sudo lamboot-diagnose

Common Problems

LamBoot does not appear after reboot

Symptoms: System boots directly into GRUB, systemd-boot, or the OS.

Causes and fixes:

  1. Not in boot order: Run efibootmgr to check. LamBoot should appear as a boot entry.
    sudo efibootmgr
    # Look for: Boot0002* LamBoot
    Fix: sudo lamboot-install --set-default to move LamBoot to first in the boot order.
  2. Other bootloader is first: The UEFI boot order has another bootloader before LamBoot. Fix: Use efibootmgr -o to reorder, or lamboot-install --set-default.
  3. Binary not on ESP: Verify the file exists:
    ls -la /boot/efi/EFI/LamBoot/lambootx64.efi
    Fix: Re-run lamboot-install.

Menu appears but no boot entries

Symptoms: LamBoot menu shows "No bootable entries found" or only system actions.

Causes:

  1. No BLS entries on ESP: LamBoot reads \loader\entries\*.conf on the ESP only.
    ls /boot/efi/loader/entries/
    Fix: Run lamboot-install to generate BLS entries, or ensure your distro writes them to the ESP.
  2. /boot on a filesystem LamBoot can't read: LamBoot reads ext4, btrfs, XFS, exFAT, ZFS (single-disk, mirror and RAIDZ1 boot pools) and FAT natively, read-only and in place, with no firmware driver, so a separate ext4, btrfs or XFS /boot is read directly. LamBoot ships no filesystem drivers from 0.17.0 on. For f2fs, NTFS or a standalone ISO 9660 /boot, put a UEFI driver in EFI/LamBoot/drivers/ on the ESP (under Secure Boot, signed by a key your firmware or shim trusts), or move /boot to ext4. If /boot is on an unsupported layout (for example an encrypted ZFS pool, RAIDZ2/3, or a multi-vdev pool), LamBoot refuses it cleanly and doesn't guess.
    ls /boot/efi/EFI/LamBoot/drivers/
  3. Policy filtering: The allowlist or denylist in policy.toml may be hiding entries. Check the policy file.

Entry shows ! (warning) or X (error) indicator

Symptoms: An exclamation mark or X appears on the right side of a boot entry.

These are advisory only and never block booting. You can still select and boot the entry.

IndicatorMeaningCommon cause
!Warning: potential issue detectedMissing initrd, no root= parameter, architecture mismatch
XError: file not foundKernel or EFI binary missing from ESP

To see the specific message, select the entry and the footer shows the preflight detail.

Fix: Check that the kernel and initrd paths in the BLS entry point to files that exist on the ESP or an accessible volume.

Crash loop detected

Symptoms: Boot log shows "Crash loop detected", auto-boot may be disabled or a fallback entry is selected.

What happened: LamBoot incremented the crash counter on each boot attempt, and lamboot-mark-success.service never ran to clear it (because the OS never fully booted).

Fixes:

  1. Select a known-good kernel: Use the menu to manually select an older kernel version.
  2. Reset the counter: Boot into a working kernel, then:
    # The mark-success service resets it automatically
    sudo systemctl status lamboot-mark-success.service
  3. Adjust the threshold: In policy.toml, increase crash_threshold:
    [security]
    crash_threshold = 5
  4. After VM snapshot restore: The crash counter should auto-reset via vmgenid detection. If it does not, the vmgenid device may not be configured on the VM.

Shim reports "Failed to start MokManager"

A MOK request is pending, and the shim LamBoot's entry starts has no MokManager (mmx64.efi) beside it, so shim doesn't go on to boot. Boot the distribution's own entry from the firmware boot menu, then copy MokManager into place (sudo cp /boot/efi/EFI/<distro>/mmx64.efi /boot/efi/EFI/LamBoot/) or run lamboot-install --update from 0.17.0 or later. The MOK Enrollment Guide has the details.

"Verification failed: (0x1A) Security Violation" in a blue box

Shim refused LamBoot: Its signing certificate is neither an enrolled MOK nor in firmware db. The box waits for a key. After that, firmware goes on to the next boot entry. Enroll the certificate (sudo mokutil --import /boot/efi/EFI/LamBoot/db.der, reboot, confirm at MokManager). From 0.17.0 an unattended install or update no longer leaves a machine in this state. See "Unattended runs under Secure Boot" in the install reference.

"'Entry' failed to start" on the menu

Symptoms: The menu comes back with a line such as 'Debian 6.12' failed to start (INVALID_PARAMETER). and counts down to another entry, or waits without a countdown.

What happened: The kernel or UKI didn't boot. It failed to load, or its EFI stub gave up and came back, for example because an initrd it names isn't there. LamBoot skips that entry for the rest of the boot and goes on to fallback_order, or to the first bootable entry that passed preflight. When every bootable entry has failed, the menu waits for you. The trust log has a kernel_load_failed event with the same status, and the console log shows the kernel's own messages just before it.

Fixes: Check the entry's linux, initrd and options lines against the files on the boot volume, then boot the entry again from the menu.

Black screen after selecting an entry

Symptoms: Screen goes black after choosing a boot entry. System may or may not be booting.

Causes:

  1. Kernel is booting normally: Many Linux kernels clear the screen during early init. Wait 10 to 20 seconds for the OS to start, then try SSH.
  2. Console driver state: LamBoot reconnects the UEFI GraphicsConsole driver before handing off. If this fails, text output may be invisible. The kernel should still boot correctly. Check via SSH or serial console.

Module appears to hang

Symptoms: After selecting a diagnostic module (diag-shell, pci-inventory), the "Booting: ..." screen stays and nothing happens.

Causes:

  1. GraphicsConsole not reconnected: This was a known bug (fixed in v0.2.0). LamBoot's GUI opens the GOP protocol exclusively, which disconnects the UEFI text console driver. After the fix, connect_controller is called before starting any child image.
  2. PCI scan on large bus: The PCI inventory scans all 256 PCI buses. On systems with many bridges, this can take several seconds. Wait for it to complete.

Auto-boot selects wrong entry

Symptoms: The auto-boot timer selects an entry you did not expect.

Fix: Set default_entry in policy.toml:

default_entry = "bls-fedora-6.19.9"

Without default_entry, LamBoot selects the first boot entry by sort order (highest version, per UAPI.10 sorting).


Recovery Procedures

F2: Firmware Setup

Press F2 from the LamBoot menu (or select "Firmware Setup" from the right column) to reboot into the UEFI setup. From there you can change the boot order, disable Secure Boot, or access the UEFI Shell.

F12: Cold Reboot

Press F12 for an immediate system reset.

Removing LamBoot from the Proxmox Host

If the VM is stuck in LamBoot and cannot boot:

# On the Proxmox host:
qm stop VMID
lvchange -ay pve/vm-VMID-disk-N
qemu-nbd --connect=/dev/nbd0 -f raw /dev/pve/vm-VMID-disk-N
mount /dev/nbd0p1 /tmp/esp

# Remove LamBoot
rm -rf /tmp/esp/EFI/LamBoot

# Or fix a specific file
# cp fixed-lambootx64.efi /tmp/esp/EFI/LamBoot/lambootx64.efi

umount /tmp/esp
qemu-nbd -d /dev/nbd0
qm start VMID

Resetting the Crash Counter

From inside the booted OS:

# The mark-success service handles this automatically
sudo systemctl start lamboot-mark-success.service

# Or manually delete the NVRAM variables
sudo efivar -d -n 4c414d42-4f4f-5400-0000-000000000001-LamBootCrashCount
sudo efivar -d -n 4c414d42-4f4f-5400-0000-000000000001-LamBootState

Booting with a Different Bootloader

If LamBoot is first in the boot order and you need to skip it:

  1. Enter UEFI firmware setup (press the firmware's key during POST, usually Del, F2, or F10)
  2. Change the boot order to put your other bootloader first
  3. Or use the one-time boot menu (usually F8 or F11 during POST)

Boot Report Reference

boot.json Fields

FieldDescription
lamboot_versionLamBoot binary version
lamboot_archArchitecture (x86_64 or aarch64)
timestampISO 8601 timestamp from UEFI RTC
entry_idSelected entry's identifier
entry_nameSelected entry's display name
entry_typelinux_legacy, uki, or chainload
pathKernel or EFI binary path
system_manufacturerSMBIOS manufacturer (e.g., "QEMU")
system_productSMBIOS product name
fleet_idFleet identifier from OEM strings
vmidVM ID from OEM strings
os_nameDetected OS name (when available)
hypervisorDetected hypervisor (KVM, Hyper-V, etc.)
iommuIOMMU type (Intel VT-d or AMD-Vi)
iommu_unitsNumber of IOMMU hardware units
boot_timingPer-phase timing in milliseconds: health, drivers, discovery, total (boot_timing_ms in 0.16.5 and earlier)

boot.log Phases

Log messagePhaseWhat is happening
Crash counter: NHealthBoot health assessment
System: ...SMBIOSHardware identification
Hypervisor: ...DetectionCPUID-based hypervisor detection
Loaded N filesystem driver(s)DriversDrivers you added to EFI/LamBoot/drivers/; any for a filesystem LamBoot reads natively are skipped
Discovering boot entries...DiscoveryBLS and ESP scanning
Found N boot entriesDiscoveryEntry count summary
Boot init: N msTelemetryTotal init time
Selected: ...MenuUser or auto-boot selection

Using lamboot-tools for Diagnostics

The lamboot-tools companion package provides automated diagnostic and repair tools:

SituationToolCommand
General boot health checklamboot-diagnosesudo lamboot-diagnose
ESP filesystem issueslamboot-espsudo lamboot-esp check
Backup before changeslamboot-backupsudo lamboot-backup save
Automated boot repairlamboot-repairsudo lamboot-repair
Offline VM repair from hostlamboot-repairsudo lamboot-repair --offline /dev/pve/vm-201-disk-1
Migrating from GRUBlamboot-migratesudo lamboot-migrate to-lamboot
BIOS to UEFI conversionlamboot-migratesudo lamboot-migrate to-uefi

See Also

  • User Guide: getting started, daily use
  • Configuration Guide: policy.toml reference
  • Proxmox Guide: VM-specific deployment and monitoring
  • LamBoot Tools: diagnostic and repair toolkit
  • Security Guide: Secure Boot, TPM, crash loop details