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

Discussion in 'Proxmox VE: Installation and configuration' started by Marcos Mendez, Mar 15, 2019.

  1. Marcos Mendez

    Marcos Mendez New Member

    Joined:
    May 19, 2017
    Messages:
    15
    Likes Received:
    0
    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.
     
  2. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    3,475
    Likes Received:
    317
    it seems that the image contains device nodes, this cannot work when creating unprivileged containers -> use a different image or create them as privileged
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. R34L

    R34L New Member

    Joined:
    Apr 5, 2019
    Messages:
    1
    Likes Received:
    0
    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
     
  4. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,125
    Likes Received:
    91
    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))
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice