Libxenlight failed to create appvm

I searched and saw quite a few posts with a similar error but none of them seemed to show how to fix it?
I did look at the log and it was one of those rare occasions where i thought i understood it:

2022-01-10 16:38:29.087+0000: xc: panic: xc_dom_boot.c:120: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2022-01-10 16:38:29.087+0000: libxl: libxl_dom.c:593:libxl__build_dom: xc_dom_boot_mem_init failed: Operation not permitted
2022-01-10 16:38:29.113+0000: libxl: libxl_create.c:1623:domcreate_rebuild_done: Domain 37:cannot (re-)build domain: -3
2022-01-12 14:00:58.796+0000: xc: panic: xc_dom_boot.c:120: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2022-01-12 14:00:58.798+0000: libxl: libxl_dom.c:593:libxl__build_dom: xc_dom_boot_mem_init failed: Operation not permitted
2022-01-12 14:00:58.821+0000: libxl: libxl_create.c:1623:domcreate_rebuild_done: Domain 28:cannot (re-)build domain: -3
2022-01-12 14:07:32.414+0000: xc: panic: xc_dom_boot.c:120: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2022-01-12 14:07:32.414+0000: libxl: libxl_dom.c:593:libxl__build_dom: xc_dom_boot_mem_init failed: Operation not permitted
2022-01-12 14:07:32.436+0000: libxl: libxl_create.c:1623:domcreate_rebuild_done: Domain 29:cannot (re-)build domain: -3
2022-01-12 14:14:28.862+0000: xc: panic: xc_dom_boot.c:120: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2022-01-12 14:14:28.862+0000: libxl: libxl_dom.c:593:libxl__build_dom: xc_dom_boot_mem_init failed: Operation not permitted
2022-01-12 14:14:28.884+0000: libxl: libxl_create.c:1623:domcreate_rebuild_done: Domain 30:cannot (re-)build domain: -3
2022-01-12 14:18:08.195+0000: xc: panic: xc_dom_boot.c:120: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2022-01-12 14:18:08.195+0000: libxl: libxl_dom.c:593:libxl__build_dom: xc_dom_boot_mem_init failed: Operation not permitted
2022-01-12 14:18:08.217+0000: libxl: libxl_create.c:1623:domcreate_rebuild_done: Domain 31:cannot (re-)build domain: -3

So i thought it meant that the appvm was taking too much memory, which kinda sounded logical as I had 8gb allocated to it (I have 32gb total sys mem) but i didnt have that many appvms open, but tried closing some, nada, then tried reducing the appvm’s mem from 8gb to 4gb, nada.
to add to it, the appvm seems to be stuck in this state of “starting up” (in the qubes manager it shows a “yellow dot”) but I can not shut it down or kill it (not via qvm-shutdown force nor qvm-kill).

If this can’t be fixed is there at least a way I can mount the appvm and copy the stuff out of it?

Can you check how much memory libvirtd process uses?

I’d try restarting it (systemctl restart libvirtd). It should be harmless for running appvms.

2 Likes

Yeah! Thank you @marmarek! That worked like a charm, much appreciated!