How to import qcow2 to pve?

uranus12

New Member
Jun 22, 2021
20
0
1
40
I am run qm importdisk Prompt to report an error.

Code:
qm importdisk 120 ./atrust_sdpc_20210618.qcow2 local
qemu-img: Could not open './atrust_sdpc_20210618.qcow2': bitmaps_ext: Invalid extension length: Unknown error -8
Formatting '/var/lib/vz/images/120/vm-120-disk-1.raw', fmt=raw size=0
qemu-img: Could not open './atrust_sdpc_20210618.qcow2': bitmaps_ext: Invalid extension length: Unknown error -8

command 'qemu-img convert ./atrust_sdpc_20210618.qcow2 -p -n -O raw zeroinit:/var/lib/vz/images/120/vm-120-disk-1.raw' failed: exit code 1
 
Hi,
how was the qcow2 Image created? It seems like it might be corrupted. What is the output of qemu-img info ./atrust_sdpc_20210618.qcow2? What is your pveversion -v?
 
Hi,
how was the qcow2 Image created? It seems like it might be corrupted. What is the output of qemu-img info ./atrust_sdpc_20210618.qcow2? What is your pveversion -v?
qemu-img info ./atrust_sdpc_20210618.qcow2
Code:
qemu-img: Could not open './atrust_sdpc_20210618.qcow2': bitmaps_ext: Invalid extension length: Unknown error -8

Hello,my pveversion is
Code:
proxmox-ve: 5.4-2 (running kernel: 4.15.18-30-pve)
pve-manager: 5.4-15 (running version: 5.4-15/d0ec33c6)
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
pve-kernel-4.15.18-28-pve: 4.15.18-56
pve-kernel-4.15.18-27-pve: 4.15.18-55
pve-kernel-4.15.18-26-pve: 4.15.18-54
pve-kernel-4.15.18-12-pve: 4.15.18-36
ceph: 12.2.13-pve1~bpo9
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-12
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-56
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-14
libpve-storage-perl: 5.0-44
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
openvswitch-switch: 2.7.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-38
pve-container: 2.0-42
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-7
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
qemu-server: 5.0-56
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2
 
Please try to re-create the qcow2 Image if you can.

Shouldn't be related to the issue at hand, but note that PVE 5 is end-of-life since quite a bit. You should consider upgrading to PVE 6.
Hi,I am try at the pve6 run qemu-img info display the same error.
qemu-img info atrust_proxy_20210618.qcow2
qemu-img: Could not open 'atrust_proxy_20210618.qcow2': bitmaps_ext: Invalid extension length: Unknown error -8
 

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!