Cloning Error

nzt92

New Member
Oct 25, 2022
9
0
1
Hello, can anyone help me? I got the following error

create full clone of drive efidisk0 (WD:100/base-100-disk-0.raw/101/base-101-disk-0.qcow2) Formatting '/mnt/pve/WD/images/105/vm-105-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=540672 lazy_refcounts=off refcount_bits=16 create full clone of drive tpmstate0 (WD:100/base-100-disk-1.raw/101/vm-101-disk-1.qcow2) Formatting '/mnt/pve/WD/images/105/vm-105-disk-1.raw', fmt=raw size=4194304 preallocation=off transferred 0.0 B of 4.0 MiB (0.00%) qemu-img: Could not open '/mnt/pve/WD/images/101/vm-101-disk-1.qcow2': Image is not in qcow2 format TASK ERROR: clone failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f qcow2 -O raw /mnt/pve/WD/images/101/vm-101-disk-1.qcow2 zeroinit:/mnt/pve/WD/images/105/vm-105-disk-1.raw' failed: exit code 1

pveversion -v proxmox-ve: 7.2-1 (running kernel: 5.15.30-2-pve) pve-manager: 7.2-3 (running version: 7.2-3/c743d6c1) pve-kernel-helper: 7.2-2 pve-kernel-5.15: 7.2-1 pve-kernel-5.15.30-2-pve: 5.15.30-3 ceph-fuse: 15.2.16-pve1 corosync: 3.1.5-pve2 criu: 3.15-1+pve-1 glusterfs-client: 9.2-1 ifupdown2: 3.1.0-1+pmx3 ksm-control-daemon: 1.4-1 libjs-extjs: 7.0.0-1 libknet1: 1.22-pve2 libproxmox-acme-perl: 1.4.2 libproxmox-backup-qemu0: 1.2.0-1 libpve-access-control: 7.1-8 libpve-apiclient-perl: 3.2-1 libpve-common-perl: 7.1-6 libpve-guest-common-perl: 4.1-2 libpve-http-server-perl: 4.1-1 libpve-storage-perl: 7.2-2 libspice-server1: 0.14.3-2.1 lvm2: 2.03.11-2.1 lxc-pve: 4.0.12-1 lxcfs: 4.0.12-pve1 novnc-pve: 1.3.0-3 proxmox-backup-client: 2.1.8-1 proxmox-backup-file-restore: 2.1.8-1 proxmox-mini-journalreader: 1.3-1 proxmox-widget-toolkit: 3.4-10 pve-cluster: 7.2-1 pve-container: 4.2-1 pve-docs: 7.2-2 pve-edk2-firmware: 3.20210831-2 pve-firewall: 4.2-5 pve-firmware: 3.4-1 pve-ha-manager: 3.3-4 pve-i18n: 2.7-1 pve-qemu-kvm: 6.2.0-5 pve-xtermjs: 4.16.0-1 qemu-server: 7.2-2 smartmontools: 7.2-pve3 spiceterm: 3.2-2 swtpm: 0.7.1~bpo11+1 vncterm: 1.7-1 zfsutils-linux: 2.1.4-pve1
 
Hi,
there was an old issue where TPM was not forced to be allocated as raw. That has been fixed here: https://git.proxmox.com/?p=qemu-ser...0;hp=64cc310f0a67abe37a578cf181ed726d69bd1f82

But the image is not actually qcow2 anymore, because swtpm has overwritten it: qemu-img: Could not open '/mnt/pve/WD/images/101/vm-101-disk-1.qcow2': Image is not in qcow2 format. I think you should be fine just changing the extension to .raw and accordingly in the configuration of the template, but to be sure, make a backup first.
 
  • Like
Reactions: nzt92

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!