We are getting strange issue in LXD. After installing, we managed to spin up few containers without any issues. However, after trying out the virtual machine option, it just keeps on rebooting the machine.
Some details i can gather at the moment
Hypervisor used: XCP-NG
OS: Ubuntu 20.04 (don’t have kernel version at the moment but just upgraded to latest one)
LXD Version: lxd 5.6-794016a
Storage backend: Block based BTRFS
I can’t find any obvious issues on /var/log/syslog and lxd.log. However, a colleague have shared the attached log from console when booting in rescue mode.
Another question, since we already have a few container workloads i was wondering how to recover it first while investigating the inability to spin virtual machines.
Does anyone know:
1.) How to forcefully set the containers/VMs to not start (since in rescue mode) i assume lxc commands will not work.
2.) disable the lxd service first on startup and manually bring it up without starting anything. I suspect the lxc start --vm that i did might have caused this issue cause it started from there while lxc containers are perfectly fine.
If you prevent the kvm or vsock modules from loading then that will prevent LXD from trying to start the VM, allowing you to start LXD and then remove the VM:
See for the things that LXD checks to detect VM support:
Thanks a lot. I will try this part but its weird that when i tried start VM the system just reboots. And after few tries it just don’t go up and we needed to restore. Is there any other thing I can check on lxd side what might be causing it probably a dump exactly what it does and persist on some log before rebooting the host OS.