TASK ERROR: unable to create CT failed: exit code 2

rojoblandino

Member
Sep 11, 2019
31
4
13
40
I am trying to create a new LXC container but i am getting following output:

Code:
Formatting '/var/lib/vz/images/144/vm-144-disk-0.raw', fmt=raw size=8589934592
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 7535df79-b3c6-4c77-8fb9-0d60da9e1dd8
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
extracting archive '/var/lib/vz/template/cache/debian-10-standard_10.7-1_amd64.tar.gz'
tar: Skipping to next header
Total bytes read: 1986560 (1.9MiB, 68MiB/s)
tar: Exiting with failure status due to previous errors
TASK ERROR: unable to create CT 144 - 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/144/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2


Code:
S.ficheros     Tamaño Usados  Disp Uso% Montado en
udev             1.9G      0  1.9G   0% /dev
tmpfs            375M    11M  365M   3% /run
/dev/sda5         15G   4.0G   10G  29% /
tmpfs            1.9G    43M  1.8G   3% /dev/shm
tmpfs            5.0M      0  5.0M   0% /run/lock
tmpfs            1.9G      0  1.9G   0% /sys/fs/cgroup
/dev/sda6         15G    80M   14G   1% /var/log
/dev/sda1        512M   5.3M  506M   2% /boot/efi
/dev/sda3        413G   303G   90G  78% /var/lib/vz
/dev/fuse         30M    40K   30M   1% /etc/pve
tmpfs            375M      0  375M   0% /run/user/0
 
hi,

tar: Skipping to next header
the template archive might be corrupted somehow? can you verify the checksum:
Code:
$ sha256sum /var/lib/vz/template/cache/debian-10-standard_10.7-1_amd64.tar.gz 
9c466b15266f2c5cc109595cb47419f4641b3851056ea2250cd35d8a6ef57c6a  /var/lib/vz/template/cache/debian-10-standard_10.7-1_amd64.tar.gz

if it doesn't match this sum then i'd suggest you to delete and download it again.
 
hi,


the template archive might be corrupted somehow? can you verify the checksum:
Code:
$ sha256sum /var/lib/vz/template/cache/debian-10-standard_10.7-1_amd64.tar.gz
9c466b15266f2c5cc109595cb47419f4641b3851056ea2250cd35d8a6ef57c6a  /var/lib/vz/template/cache/debian-10-standard_10.7-1_amd64.tar.gz

if it doesn't match this sum then i'd suggest you to delete and download it again.
Thanks. It was corrupted.
 
great that it works now, please mark the thread [SOLVED] so others know what to expect :)