I have these configurations on old lxd 2.21:
lxc config show --expanded my-container | grep -e raw.lxc -e lxc.id_map
raw.lxc: |
lxc.id_map =
lxc.id_map = u 0 100000 4000
lxc.id_map = g 0 100000 4000
lxc.id_map = u 4000 10011 1
lxc.id_map = g 4000 5001 1
lxc.id_map = u 4001 104001 61535
lxc.id_map = g 4001 104001 61535
For newer lxd 4.0.9, I tried setting these manually, for example:
lxc config set my-container raw.lxc="lxc.id_map =\n"
However when I do that I see in the logs:
lxc 20230508224024.263 ERROR confile - confile.c:set_config_unsupported_key:153 - Invalid argument - Unsupported config key "lxc.id_map"