Can't resize disk VM - block by snapshot.

krogac

Member
Jul 18, 2018
35
0
11
42
Hello,

i have VM which was migrate from pure KVM. I must resize disk of this VM, but PVE say "VM 101 qmp command 'block_resize' failed - Can't resize an image which has snapshots (500)"

I check by: qemu-img snapshot -l /path_to_vm_/vm.qcow2
and there was a snapshots. I remove them and now are any snapshots.
What can I do with this situation?
 
To resize qcow2 file with snapshots you have to copy each snapshot in a separate image file with qemu-img convert, resize all images with qemu-img resize, then rebase in order with qemu-img rebase each image on the appropriate precedent image (snapshot) and push to base with qemu-img commit and create a snapshot with qemu-img snapshot.
 

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!