Clone not working any more getting Task Error

Bidi

Renowned Member
Feb 12, 2016
109
2
83
36
Hello,

I started to have a problem, cloning an lxc, was working before and now i start to get this error even if i recreate the lxc, tryed 10 times allready.

I use proxmox 5.2

create full clone of mountpoint rootfs (local:1000/base-1000-disk-1.raw)
Formatting '/var/lib/vz/images/168/vm-168-disk-1.raw', fmt=raw size=10737418240
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/2621440 done
Creating filesystem with 2621440 4k blocks and 655360 inodes
Filesystem UUID: 05b4acec-ef88-40be-aad2-cf48fd4aa762
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

losetup: /var/lib/vz/images/1000/base-1000-disk-1.raw: failed to set up loop device: Operation not permitted
TASK ERROR: clone failed: command 'losetup --show -f /var/lib/vz/images/1000/base-1000-disk-1.raw' failed: exit code 1

Any ideas about this ?
 
losetup: /var/lib/vz/images/1000/base-1000-disk-1.raw: failed to set up loop device: Operation not permitted
TASK ERROR: clone failed: command 'losetup --show -f /var/lib/vz/images/1000/base-1000-disk-1.raw' failed: exit code 1

Try

Code:
losetup /dev/loop0 /var/lib/vz/images/1000/base-1000-disk-1.raw

Check possibly which loop devices are already occupied before by
Code:
losetup -a

and use the next free one (instead of /dev/loop0 in the command above).
 

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!