I am getting: Error: Failed to connect to lxd-agent running lxc exec vmname -- bash on a running VM. Observing boot with lxc console vmname ,error is: [FAILED] Failed to start LXD - agent. I tried couple of different images from both images: and ubuntu: repo, with same result. Issue is same on snap lxd package and package from Arch linux community.
On another Ubuntu 18.04 everything is working as expected and on another Arch linix the issue is same as described. Havent find anything related on Google search, so I am posting here…
I was able to run VMs in past with images from images: repo. Running containers works just fine…
Yes, that is correct. I have tried on another Ubuntu machine and another Arch linux machine. It is working on Ubuntu ok and not working on both Arch linux machines.
After further testing, on spare Arch linux machine (VM on proxmox if thats matter), with lxd snap package (both stable 4.4 and candidate 4.5) I was able to successfully run following VMs:
images:ubuntu/focal/cloud
images:centos/7
images:centos/7/cloud
I could not run:
images:alpine/3.12
images:archlinux
getting Failed to connect to lxd-agent error.
On the same machine, with snap lxd removed and Arch linux community package installed, issue remains, I was not able to run any VMs.
I suspect it will be something to do with the Go version of C libraries Arch is using to compile the lxd-agent making it incompatible with the VMs being run.
As for the snap package lxd-agent not working with alpine and archlinux, @monstermunchkin is that expected?
You need to set security.secureboot=false as both Alpine and Arch don’t support it. Simply run lxc config set <vm> security.secureboot=false, and start the VM. That should do the trick.