Snapcraft lxc container never starts

I can’t get the build with lxc working. Appears to be lxc issue but maybe someone can give some insight on this issue? My setup is a regular Kubuntu 23.10

❯ snapcraft pack
LXD is required but not installed. Do you wish to install LXD and configure it with the defaults? [y/N]: y
lxd 5.19-8635f82 from Canonical✓ installed
craft-providers error: Failed to launch instance 'base-instance-snapcraft-buildd-base-v30--ebe48dea8e0ee8ae59ed'.
* Command that failed: "lxc --project snapcraft launch craft-com.ubuntu.cloud-buildd:core22 local:base-instance-snapcraft-buildd-base-v30--ebe48dea8e0ee8ae59ed --config 'raw.idmap=both 1000 0' --config security.syscalls.intercept.mknod=true --config user.craft_providers.status=STARTING --config user.craft_providers.timer=2023-12-23T09:38:48.547485+00:00"
* Command exit code: 1

So I tried to run a regular ubuntu container with lxc launch ubuntu. But here I am getting weirder errors where only similar things I googled happened on different Linux distros:

lxc exact-trout 20231223093037.409 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3621 - newuidmap binary is missing
lxc exact-trout 20231223093037.409 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3627 - newgidmap binary is missing
lxc exact-trout 20231223093037.409 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3621 - newuidmap binary is missing
lxc exact-trout 20231223093037.410 WARN     conf - ../src/src/lxc/conf.c:lxc_map_ids:3627 - newgidmap binary is missing
lxc exact-trout 20231223093037.503 ERROR    cgfsng - ../src/src/lxc/cgroups/cgfsng.c:cgfsng_mount:2139 - No such file or directory - Failed to create cgroup at_mnt 24()
lxc exact-trout 20231223093037.503 ERROR    conf - ../src/src/lxc/conf.c:lxc_mount_auto_mounts:852 - No such file or directory - Failed to mount "/sys/fs/cgroup"
lxc exact-trout 20231223093037.503 ERROR    conf - ../src/src/lxc/conf.c:lxc_setup:4433 - Failed to setup remaining automatic mounts
lxc exact-trout 20231223093037.503 ERROR    start - ../src/src/lxc/start.c:do_start:1272 - Failed to setup container "exact-trout"
lxc exact-trout 20231223093037.503 ERROR    sync - ../src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)```

Im not sure if this is your issue, but I had also run into some issues with the lxd automatic install/configure.

I think it had something to do with the “lxd” group being created but not assigned to the current user?

Manually trying to assign it didnt work so I restarted the computer and then reinstalled/autoconfigured the lxd snap and it worked.