What should I change in my config to make it work?

Hello. I have an old profile for LXC 2.0 How to make it work in LXD 3.3? I know that LXD 3.3 doesn’t support raw.lxc
It fails with an error: Failed to get raw.lxc

  lxc.aa_profile = unconfined
  raw.lxc: |-
    lxc.cgroup.devices.allow = a
    lxc.mount.auto=proc:rw sys:rw
    lxc.cap.drop =

As mentioned on Github, lxc.aa_profile isn’t a valid config key, it must go inside the raw.lxc section and since you’re using liblxc 3.0 or higher, it’s now called lxc.apparmor.profile.

The list of renamed keys was documented in the LXC 2.1 announcement and then linked to from the LXC 3.0 announcement: LXC 2.1 has been released

The full list of configuration keys supported in current liblxc (git) can be found at: