On a Focal server with 4.0 LTS I’m suddenly unable to start pre-existing VMs. I also can’t launch new VMs, no problems with containers. Running lxc info --show-log host
tells me that the log is empty, similar to Fail to start VM / saving config failed (disk full) But in my case there are no storage problems. Starting with debug I get:
DBUG[11-29|11:21:36] Got response struct from LXD
DBUG[11-29|11:21:36]
{
"id": "13076d4b-e948-4c4e-9a6f-a71de7532172",
"class": "task",
"description": "Starting instance",
"created_at": "2022-11-29T11:21:36.991844668Z",
"updated_at": "2022-11-29T11:21:36.991844668Z",
"status": "Running",
"status_code": 103,
"resources": {
"instances": [
"/1.0/instances/docker-host"
]
},
"metadata": null,
"may_cancel": false,
"err": "",
"location": "none"
}
Error: Failed to run: forklimits limit=memlock:unlimited:unlimited fd=3 fd=4 fd=5 -- /snap/lxd/23991/bin/qemu-system-x86_64 -S -name docker-host -uuid 3f9e8cd9-186c-44db-b58f-331485b00a96 -daemonize -cpu host -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=deny,resourcecontrol=deny -readconfig /var/snap/lxd/common/lxd/logs/docker-host/qemu.conf -spice unix=on,disable-ticketing=on,addr=/var/snap/lxd/common/lxd/logs/docker-host/qemu.spice -pidfile /var/snap/lxd/common/lxd/logs/docker-host/qemu.pid -D /var/snap/lxd/common/lxd/logs/docker-host/qemu.log -smbios type=2,manufacturer=Canonical Ltd.,product=LXD -runas lxd: : Process exited with non-zero value -1
Try `lxc info --show-log docker-host` for more info
Empty log:
$ lxc info --show-log docker-host
Name: docker-host
Location: none
Remote: unix://
Architecture: x86_64
Created: 2022/03/17 19:23 UTC
Status: Stopped
Type: virtual-machine
Profiles: default, default-net, docker-net-80, docker-net-81, docker-net-82, docker-net-83, storage-net
Snapshots:
snap121 (taken at 2022/11/25 03:14 UTC) (expires at 2022/11/30 03:14 UTC) (stateless)
snap122 (taken at 2022/11/26 03:14 UTC) (expires at 2022/12/01 03:14 UTC) (stateless)
snap123 (taken at 2022/11/27 03:14 UTC) (expires at 2022/12/02 03:14 UTC) (stateless)
snap124 (taken at 2022/11/28 03:14 UTC) (expires at 2022/12/03 03:14 UTC) (stateless)
snap125 (taken at 2022/11/29 03:14 UTC) (expires at 2022/12/04 03:14 UTC) (stateless)
Log:
And storage:
$ lxc storage info default
info:
description: ""
driver: zfs
name: default
space used: 348.30GiB
total space: 5.07TiB
used by:
images:
- 2cb17b544f303fefdfae6bcbe70cece933b924019b8d25f3236ce75c2dd6c301
- 672583a05778fdd42770408068c5f932d8383539b4cdf20f11b92a0bf3b24d45
instances:
- docker-host
profiles:
- default
Any ideas? I suspect that this is a qemu problem due to a kernel update.
$ uname -a
Linux plopp 5.4.0-132-generic #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux