[SOLVED] Backup vm failed after upgrade to new version

chineseswish

New Member
Nov 12, 2024
10
0
1
Yesterday,I upgrade my pve to new version,Backup job is failed with follow log:

Code:
INFO: starting new backup job: vzdump 118 --storage local --notes-template '{{guestname}}' --mode snapshot --remove 0 --node pve8 --compress zstd --notification-mode auto
INFO: Starting Backup of VM 118 (qemu)
INFO: Backup started at 2024-12-12 08:59:54
INFO: status = running
INFO: VM Name: demos-win11
INFO: include disk 'scsi0' 'Raid5:vm-118-disk-0' 64G
INFO: include disk 'efidisk0' 'local:110/base-110-disk-0.qcow2/118/vm-118-disk-0.qcow2' 528K
INFO: include disk 'tpmstate0' 'local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2' 16896
ERROR: Backup of VM 118 failed - cannot determine size of volume 'local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2' - qemu-img: Could not open '/var/lib/vz/images/118/vm-118-disk-1.qcow2': Image is not in qcow2 format
INFO: Failed at 2024-12-12 08:59:54
INFO: Backup job finished with errors
TASK ERROR: job errors
 
could you post the VM config please? this looks broken, as swtpm doesn't understand qcow2 files..
 
could you post the VM config please? this looks broken, as swtpm doesn't understand qcow2 files..
vm 118 config:
Code:
agent: 1
bios: ovmf
boot: order=scsi0;ide0;ide2;net0
cores: 2
cpu: x86-64-v2-AES
efidisk0: local:110/base-110-disk-0.qcow2/118/vm-118-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: local:iso/virtio-win.iso,media=cdrom,size=708140K
ide2: local:iso/zh-cn_windows_11_consumer_editions_version_23h2_updated_sep_2024_x64_dvd_edcefbe4.iso,media=cdrom,size=7015542K
machine: pc-q35-9.0
memory: 4096
meta: creation-qemu=9.0.2,ctime=1727441939
name: demos-win11
net0: virtio=BC:24:11:73:70:CE,bridge=demos,firewall=1
numa: 0
ostype: win11
scsi0: Raid5:vm-118-disk-0,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=09b26ef4-2fb0-4e1b-939d-7ccf456ffd10
sockets: 2
tpmstate0: local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2,size=16896,version=v2.0
vga: virtio
vmgenid: 3f5bc2d3-c8e1-4b3f-98d9-ff588d9b4c5a

template 110 config:

Code:
agent: 1
bios: ovmf
boot: order=scsi0;ide0;ide2;net0
cores: 2
cpu: x86-64-v2-AES
efidisk0: local:110/base-110-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: local:iso/virtio-win.iso,media=cdrom,size=708140K
ide2: local:iso/zh-cn_windows_11_consumer_editions_version_23h2_updated_sep_2024_x64_dvd_edcefbe4.iso,media=cdrom,size=7015542K
machine: pc-q35-9.0
memory: 4096
meta: creation-qemu=9.0.2,ctime=1727441939
name: template-win-11
net0: virtio=BC:24:11:CF:C4:01,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi0: Raid5:base-110-disk-0,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=5d44eddd-c523-4c61-92c8-cebe83e12697
sockets: 2
template: 1
tpmstate0: local:110/base-110-disk-1.raw,size=4M,version=v2.0
vga: virtio
vmgenid: 230f4c98-5d97-417d-8de3-4ad4c35dd1fd
 
Last edited:
could you post the output of

"qemu-img info --ouptut-format json $(pvesm path local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2)"

?
 
could you post the output of

"qemu-img info --ouptut-format json $(pvesm path local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2)"

?
Code:
root@pve8:~# qemu-img info $(pvesm path local:110/base-110-disk-1.raw/118/vm-118-disk-1.qcow2)
image: /var/lib/vz/images/118/vm-118-disk-1.qcow2
file format: raw
virtual size: 16.5 KiB (16896 bytes)
disk size: 12 KiB
Child node '/file':
    filename: /var/lib/vz/images/118/vm-118-disk-1.qcow2
    protocol type: file
    file length: 16.5 KiB (16896 bytes)
    disk size: 12 KiB
 
you need to rename the file on the storage to .raw instead of .qcow2, and adapt the volume ID in the config in the same fashion.. I'll see if I can reproduce this issue..
 
you need to rename the file on the storage to .raw instead of .qcow2, and adapt the volume ID in the config in the same fashion.. I'll see if I can reproduce this issue..
I rename file and tpmstat0 device missed.I manual remove tpmstat0 and add a new tpm 2.0 device to fixup.
 

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!