I understand this is in tech preview as of 4.1, but couldn't find any documentation. How can we experiment with this new feature?
can this be changed for a container that already exists?
is it this option inside the webinterface?
pct restore 109 dump/vzdump-lxc-109-2016_04_18-00_33_19.tar.lzo --unprivileged
...
extracting archive '/var/lib/vz/dump/vzdump-lxc-109-2016_04_18-00_33_19.tar.lzo'
tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not permitted
tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not permitted
Total bytes read: 1186508800 (1.2GiB, 306MiB/s)
tar: Exiting with failure status due to previous errors
command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf /var/lib/vz/dump/vzdump-lxc-109-2016_04_18-00_33_19.tar.lzo --totals --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-xattr-write' -C /var/lib/lxc/109/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
... This does not include device nodes, which means you'll have to remove them from the archive and either change the postfix configuration or mount the container after restoring and create those devices manually.
What exactly is a Device Node?
A device node is a special file in /dev. These create "file" entries that expose access to devices. Unprivileged containers cannot create them, their /dev is populated by the lxc startup process.What exactly is a Device Node? I'm searching for that term on the Prox wiki and don't see anything. Are you referring to hardware devices like NICs or Drives?
Unprivileged container templates are extracted _as_ the unprivileged user, so it can only extract things the user would otherwise be able to create. This does not include device nodes, which means you'll have to remove them from the archive and either change the postfix configuration or mount the container after restoring and create those devices manually.
extracting archive '/MasterPool/template/cache/debian-8-turnkey-mediaserver_14.2-1_amd64.tar.gz'
tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not permitted
tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not permitted
Total bytes read: 957327360 (913MiB, 100MiB/s)
tar: Exiting with failure status due to previous errors
TASK ERROR: command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf /proc/self/fd/11 --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' -C /var/lib/lxc/233/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
pct restore 1110 /my/vzdump_backup/vzdump-lxc-1100-2018_03_02-02_31_03.tar.gz -ignore-unpack-errors 1 -unprivileged --storage myStorage
tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not permitted
tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not permitted