Help with resizing disk

mallado

New Member
Apr 16, 2018
2
0
1
57
Hello,

I need to resize a qcow2 disk, but, by the moment, is unable for me. This is the disk's actual state:

image: vm-215-disk-1.qcow2
file format: qcow2
virtual size: 100G (107374182400 bytes)
disk size: 193G
cluster_size: 65536
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 instalacionkm 0 2017-09-29 08:15:05 94:10:49.518
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false

I need to increase virtual size in +100G, but I can't because 500 error: "this feature or command is not currently supported". I see that exist a snapshot, but this image (actually running) is a manual backup from original image, and (sorry, I know) I forgot also copy snapshot... I have tried to delete snapshot from command line, but qemu-img tool don't find snapshot named "instalacionkm" (of course, really the file doesn´t exist because I forgot copy when manual backup). Any solution, any idea to delete snapshot "embedded" in disk?

Additional info: in vm config doesn't exist any snapshot reference.

Any help will be VERY appreciated.
Thanks in advance.
 
Not exactly, but inspiration has come from you...

First: qemu-img snapshot -d 1 vm-215-disk-1.qcow2 (delete the "embedded" snapshot)
Last: qemu-img resize vm-215-disk-1.qcow2 +100G (your suggestion)

It's works!!!
Solved. Thanks!!!