Klonen von CT funktionert nicht

Fabi

Active Member
Jan 25, 2017
17
0
41
35
Hallo zusammen,
(meine Version - Virtual Environment 5.2-1)

ich habe einen LXC Container mit Debian 9 erstellt und dann als Template gespeichert.

Nun wollte ich einen verknüpftne Klon erstellen und das funktioniert nicht.
Auch ein vollständiger Klon geht nicht.
Hier die Fehlermeldung:
create full clone of mountpoint rootfs (local:311/base-311-disk-2.raw)
Formatting '/var/lib/vz/images/312/vm-312-disk-1.raw', fmt=raw size=32212254720
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/7864320 done
Creating filesystem with 7864320 4k blocks and 1966080 inodes
Filesystem UUID: 6c89aed7-d8ff-4a29-81e0-a253d75e48f8
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

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

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

kann mir da jemand beim suchen des Fehlers helfen??
 
Code:
losetup: /var/lib/vz/images/311/base-311-disk-2.raw: failed to set up loop device: Operation not permitted
Mit was für einen Benutzer bist du denn im Webinterface eingeloggt?
 
Gerade getestet. Funktioniert hier auf 3 Server (ZFS) problemlos.
Code:
pve-manager/5.2-6/bcd5f008 (running kernel: 4.15.18-1-pve)
 
Hast Du ein externes file system auf /var/lib/vz gemountet, oder ist das eine standard setup?
 
Es ist ein Standard Setup.

Ich habe nur ein Software-Raid am laufen.

Das einzigste was ich "verstellt" hatte ist, daß der Container einen Mount-Punkt auf dem Host bekommt.
 
Das einzigste was ich "verstellt" hatte ist, daß der Container einen Mount-Punkt auf dem Host bekommt.
Ja das wird glaub ich nicht gehen. Poste doch bitte mal deine Config.
Code:
pct config <id>
 
Hab nur meine IP "gewechselt" :)

arch: amd64
cores: 4
hostname: leer
memory: 4096
net0: name=eth0,bridge=vmbr0,gw=XXX.XXX.XXX.XXX,hwaddr=B6:7B:99:BE:2B:5A,ip=XXX.XXX.XXX.XXX32,type=veth
ostype: debian
rootfs: local:311/base-311-disk-2.raw,size=30G
swap: 8192
template: 1
 
Den Mountpunkt hatte ich auch noch gar nicht gemacht :rolleyes:

Das ist eine frische Installation eines Debian-Systems, ein paar Programme drauf und Einstellungen gemacht.

Dies habe ich dann als Vorlage abgespeichert.
 
Funktioniert hier mit meinem Custom build. Post doch mal bitte den Output von. "pvesm status"