I’ve installed the lxd snap in the WSL 2 Ubuntu-22.04 instance and it works fine. Now I’m trying to
set lxd to autostart when the WSL 2 Ubuntu-22.04 instance starts but I’ve failed to accomplish this.
When I try to start lxd manually with “sudo /usr/bin/snap run lxd.daemon”, I get this error message:
=> Starting LXD
WARNING[2023-09-29T11:37:35+03:00] AppArmor support has been disabled because of lack of kernel support
WARNING[2023-09-29T11:37:35+03:00] - AppArmor support has been disabled, Disabled because of lack of kernel support
WARNING[2023-09-29T11:37:35+03:00] - Couldn't find the CGroup blkio.weight, disk priority will be ignored
WARNING[2023-09-29T11:37:35+03:00] Instance type not operational driver=qemu err="vhost_vsock kernel module not loaded" type=virtual-machine
Killed
=> LXD failed to start
lxd still starts with “sudo lxc list” so I’m a bit confused what’s going on.