TASK ERROR: unable to create CT 100 - command 'lxc-usernsexec

navigator

Well-Known Member
May 19, 2017
48
0
46
33
São Paulo / Brasil
popsolutions.co
Hey guys, just installed PROXMOX following this instructions right here:
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch

Also I want to provide an NGNIX to dns resolving to my LXC inside the Cluster. I downloaded a Turnkey image of it and when i try to create the LXC it happens>


Virtual Environment 5.3-11


You are logged in as 'root@pam'

()


Task viewer: CT 100 - Create

OutputStatus

Stop
Formatting '/var/lib/vz/images/100/vm-100-disk-0.raw', fmt=raw size=8589934592
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/2097152 done
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 0e141454-9c13-43f0-a1a5-b69b7e41f8fc
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: 0/64 done
Writing inode tables: 0/64 done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/64 done

extracting archive '/var/lib/vz/template/cache/debian-9-turnkey-nginx-php-fastcgi_15.1-1_amd64.tar.gz'
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: 823572480 (786MiB, 109MiB/s)
tar: Exiting with failure status due to previous errors
TASK ERROR: unable to create CT 100 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - -z --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/100/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2

SORRY if the question is out of place.
 
tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not permitted
tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not permitted
it seems that the image contains device nodes, this cannot work when creating unprivileged containers -> use a different image or create them as privileged
 
a mi me sucede el mismo error,no me deja crear un contenedor,y estoy usando una imagen de ubuntu que baje de las imagenes que recomienda proxmox,tengo la version actualizada sin subcripcion de proxmox 5.3-12
el error que me da es el siguiente


Using default stripesize 64.00 KiB.
Logical volume "vm-100-disk-0" created.
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/2097152 done
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 26e5bdcc-224b-49aa-bcf7-8827567c19d0
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: 0/64 done
Writing inode tables: 0/64 done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/64 done

extracting archive '/var/lib/vz/template/cache/ubuntu-18.10-standard_18.10-2_amd64_ssh.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: 784762880 (749MiB, 94MiB/s)
tar: Exiting with failure status due to previous errors
Logical volume "vm-100-disk-0" successfully removed
TASK ERROR: unable to create CT 100 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - -z --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/100/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
 
please post in english (potentially via google translate or a similar service) - since these forums use english to reach as many users as possible.


Else - the error-message indicates that you try to restore the container as _unprivileged_, but if it contains devicenodes ( './var/spool/postfix/dev/random') this does not work. Restore as _privileged_ container.

(The standard-template for ubuntu-18.10 does work as unprivileged container (and already contains postfix))
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!