Skip to content

Sometimes VM fails to start due to out of memory error, even though qmemman did freed (supposedly) enough #9431

@marmarek

Description

@marmarek

How to file a helpful issue

Qubes OS release

R4.3

Brief summary

Sometimes VM fails to start with internal error: libxenlight failed to create new domain message. libxl logs shows it's about out of memory.

Steps to reproduce

Not sure exactly. Happens from time to time during integration tests, I think more often when starting two VMs at once.

Expected behavior

VM starts normally

Actual behavior

VM fails to start
libxl-driver.log contains

2024-08-23 20:39:24.619+0000: xc: panic: xg_dom_boot.c:119: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2024-08-23 20:39:24.619+0000: libxl: libxl_dom.c:581:libxl__build_dom: xc_dom_boot_mem_init failed: Device or resource busy
2024-08-23 20:39:24.638+0000: libxl: libxl_create.c:1753:domcreate_rebuild_done: Domain 58:cannot (re-)build domain: -3

I suspect the calculation how much free memory is needed to start a VM needs an update.

This started happening after update to Xen 4.19 (from Xen 4.17).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: coreThis issue pertains to a Qubes core component.P: majorPriority: major. Between "default" and "critical" in severity.affects-4.3This issue affects Qubes OS 4.3.diagnosedTechnical diagnosis of this issue has been performed.pr submittedA pull request has been submitted for this issue.r4.2-host-stabler4.3-host-cur-test

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions