I have a VM running Ubuntu 22.04.3 LTS which I am patching and hardening. The kernel downgraded from 6.8.0-90-generic to 5.15.0-164-fips when I enabled FIPS
lxc and lxd are on version 5.21.4 LTS
I cannot start any of the lxc containers I had before the kernel downgrade. I have exported the containers from a cloned instance where the containers are running without any issues, which is still running on kernel 6.8.0-90-generic
When importing the containers in the FIPS enabled VM (lxc import vmname.tar.gz), I receive the following error: “Error: Failed importing backup: Failed loading profiles for instance: Profile not found”
lxc profile create vmname gives me the following error: "Error: Error inserting “vmname” into database: The profile already exists)
Any hints or pointers in the right direction would be greatly appreciated
The right direction is the Canonical lxd forums here.
lxd is no longer part of the linuxcontainers project, since it was taken in-house by Canonical. This forum supports incus, the community fork of lxd; it is straightforward to migrate from lxd 5.21 to incus, if that’s what you want to do.
Thank you for the quick response, candlerb. I found my solution another way, listed below:
Import lxc sub-VMs
Source
lxc list
lxc snapshot LXCVMName LXCVMName011926
lxc publish LXCVMName/LXCVMName011926 --alias LXCVMNameexp
lxc image export LXCVMNameexp
Once tar.gz is copied via SCP or SFTP, delete it
lxc info LXCVMName
lxc delete LXCVMName/LXCVMName011926
lxc image delete LXCVMName011926.tar.gz
lxc delete LongString.tar.gz
Target
During import, I ran out of space and received errors about disk space, even though I had over 80 GB free
Check lxc storage space
lxc storage info default
Size was set at 25GiB
lxc storage set default size=40GiB
Import Image
lxc image import LXCVMNamenew.tar.gz --alias LXCVMNameexp
Once tar.gz is imported, delete it
lxc launch LXCVMNameexp LXCVMName
lxc delete LongString.tar.gz
lxc image delete LXCVMNameexp