amarc
(Amar Cosic)
August 8, 2021, 10:19am
1
Hello,
it seems on templates like alpine/edge/cloud , gentoo/cloud and rockylinux/8/cloud when I create them as VM I can’t “lxc shell c1” because of:
Error: Failed to connect to lxd-agent
Is this something LXD/LXC team does or someone else creates these templates…?
Regards, A.
stgraber
(Stéphane Graber)
August 8, 2021, 3:05pm
2
They all have the agent, are you sure that the VM did in fact boot and isn’t just stuck in the firmware or bootloader?
amarc
(Amar Cosic)
August 8, 2021, 8:16pm
3
You are right… When I do lxc list I see they did not get IPv4 (they did get v6 from /64 subnet tho). Also when I do lxc console c1 I see nothing (like it’s not up and running at all…).
Now question is… Where should I start to debug this ?
I am on 4.16 Ubuntu 20.04
amarc
(Amar Cosic)
August 8, 2021, 8:24pm
4
Update, on gentoo template I am in somekind of
Shell>
when I do
lxc console c1
stgraber
(Stéphane Graber)
August 9, 2021, 2:22am
5
Most often those kind of errors come from having secureboot enabled (default) and the guest OS not being fully signed (Gentoo is one of those).
Make sure you have security.secureboot
set to false
on that instance.
amarc
(Amar Cosic)
August 9, 2021, 6:53am
6
That was it… I usually use Arch as host OS which usually drops error about this. Ubuntu did not complain so I completely forgot about this. Thanks
tomp
(Thomas Parrott)
August 9, 2021, 8:05am
7
There is something of a plan to improve the image format to warn about this when using such an image in the future.