I have created CentOS 8 VM of the cloud init variation as follows:
$ lxc launch images:centos/8/cloud c4 -p default -p vm --vm
When I try to access the bash with lxc exec the following error occurs:
$ lxc exec c4 bash
Error: Failed to connect to lxd-agent
Here’s my default profile:
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
And my vm profile:
config: {}
description: Default LXD profile
devices:
config:
source: cloud-init:config
type: disk
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: vm
Note that if I launch an Ubuntu VM everything works normally, my only issue is with CentOS 8 VMs both with and without the cloud init variation.
All help would be appreciated.