My LXC container fails to restore if it is an unprivileged container:
tar: ./var/lib/docker/overlay2/c9dd9b8b5fcdec7ffed4b6246ab45da0a8a1daf1a7b3ecc59f0375a48fd51262/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/b6a50c2c550cfa595697d9fb3f2deef89b75e751856c00530bf086fa08586d08/diff/var/lib/apt/lists/auxfiles: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/ced7f8096034fb8e480b0647bd5457177e98b217f075b5e80fdae3f3183a71e8/diff/tmp/s6-overlay-amd64-installer: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/2491928852fce238cb3447d82b9fbb8bb854263c03e538013d27d2a18ba90629/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/b5fe9c561076bd2855956e4b554d94c12bdaaf418d053cd533932ef07b6896f7/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/6be083d6bcfeb044ef66026fe2b172582241d8978d76eb7e318c6253f6194d71/diff/usr/local/lib/python3.8/site-packages/pip-20.2.4.dist-info: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/bin/bash: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/var/cache/apk/APKINDEX.2c4ac24e.tar.gz: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/var/cache/apk/APKINDEX.40a3604f.tar.gz: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/bin/openssl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/bin/curl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/lib/bash: Cannot mknod: Operation not permitted
However, restoring with unprivileged unticked, it restores.
However, Docker, etc doesn't work because of AppArmor:
" AppArmor: Permission denied; attempted to load a profile while confined?"
How can I restore it as privileged and change it after it has been created to unprivileged? This seems to be the only way to get the LXC working.
I read somewhere I might find it difficult to make it unprivileged after it is created as privileged (without backing up and restoring). In my case that won't work.
When I edit the lxc config at: /etc/pve/lxc/
and add unprivileged: 1 - when I power on and try to login I get incorrect logins, for details I know work. I don't get this when I restore as privileged.
tar: ./var/lib/docker/overlay2/c9dd9b8b5fcdec7ffed4b6246ab45da0a8a1daf1a7b3ecc59f0375a48fd51262/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/b6a50c2c550cfa595697d9fb3f2deef89b75e751856c00530bf086fa08586d08/diff/var/lib/apt/lists/auxfiles: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/ced7f8096034fb8e480b0647bd5457177e98b217f075b5e80fdae3f3183a71e8/diff/tmp/s6-overlay-amd64-installer: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/2491928852fce238cb3447d82b9fbb8bb854263c03e538013d27d2a18ba90629/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/b5fe9c561076bd2855956e4b554d94c12bdaaf418d053cd533932ef07b6896f7/diff/usr/bin/with-contenv: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/6be083d6bcfeb044ef66026fe2b172582241d8978d76eb7e318c6253f6194d71/diff/usr/local/lib/python3.8/site-packages/pip-20.2.4.dist-info: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/bin/bash: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/var/cache/apk/APKINDEX.2c4ac24e.tar.gz: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/var/cache/apk/APKINDEX.40a3604f.tar.gz: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/bin/openssl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/bin/curl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/8d0607b98400fae7923ad6842eca957f08c8820f01e2da879a5922cf78f322bf/diff/usr/lib/bash: Cannot mknod: Operation not permitted
However, restoring with unprivileged unticked, it restores.
However, Docker, etc doesn't work because of AppArmor:
" AppArmor: Permission denied; attempted to load a profile while confined?"
How can I restore it as privileged and change it after it has been created to unprivileged? This seems to be the only way to get the LXC working.
I read somewhere I might find it difficult to make it unprivileged after it is created as privileged (without backing up and restoring). In my case that won't work.
When I edit the lxc config at: /etc/pve/lxc/
and add unprivileged: 1 - when I power on and try to login I get incorrect logins, for details I know work. I don't get this when I restore as privileged.
Last edited: