<div dir="ltr">Hi,<div><br></div><div>I have an unprivileged LXD container, c1, running in a physical host. I have exported this container to tar.gz:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>lxc export c1-unprivileged c1-unprivileged.tar.gz</div></blockquote><div><br></div><div>I have created another unprivileged LXD container, c2, with settings for nested containers. Inside the c2 container, I am able to launch a nested unprivileged LXD container, c3. The c3 container is working fine.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>lxc launch ubuntu:18.04 c3-unprivileged-nested</div></blockquote><div><br></div><div>However, when I try to import the c1 tar.gz file inside c2 to create a nested container, it shows the following error message:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>lxc import c1-unprivileged.tar.gz</div><div><br></div><div>tar: rootfs/dev/zero: Cannot mknod: Operation not permitted<br>tar: rootfs/dev/random: Cannot mknod: Operation not permitted<br>tar: rootfs/dev/tty: Cannot mknod: Operation not permitted<br>tar: rootfs/dev/null: Cannot mknod: Operation not permitted<br>tar: rootfs/dev/full: Cannot mknod: Operation not permitted<br>tar: rootfs/dev/urandom: Cannot mknod: Operation not permitted<br></div><div><br></div></blockquote>I am able to import the c1 tar.gz file in a physical host, but unable to import it in an unprivileged container (to create a nested container). The LXD network and storage settings in the physical host and the c2 container are exactly the same.</div><div><br></div><div>How to import the c1 tar.gz in the c2 unprivileged container?</div><div><br></div></div>