When increasing disk space, proxmox informs that the disk has a snapshot for the disk

vb.asta

Member
Feb 12, 2020
11
1
21
37
Hello, could someone please help?
I'm having the following problem:
When increasing disk space, proxmox informs that the disk has a snapshot for the disk.

The disk is of the type qcow2.

I was not able to delete the snapshot through the GUI, so I tried the command "qm delsnapshot" which also returned an error.
So I made the mistake of deleting the lines for the snapshot in the VM's .conf file (/ etc / pve / qemu ...) with the hope that proxmox would manually delete the snapshot from the VM.

However, I realized that the snapshot is inside the virtual disk qcow2.

Is it possible to manually delete this snapshot from the qcow2 disk using any cli/shell command?

Thanks
 
yes with 'qemu-img' , but only use this tool when the vm is powered off (else you get disk corruptions)
 
  • Like
Reactions: vb.asta
Thanks for the answer.
If so, could I use the syntax example for 'qemu-img' or would you give me another syntax to resolve this issue?

Example:
Bash:
qemu-img convert -f raw -O qcow2 converted-image.raw image.qcow2
 
if you want to delete a snapshot from a qcow2 you want something like

Code:
qemu-img snapshot -d 'snapshotname' qcow2file

for details see the manpage: 'man qemu-img'
 
  • Like
Reactions: vb.asta
if you want to delete a snapshot from a qcow2 you want something like

Code:
qemu-img snapshot -d 'snapshotname' qcow2file

for details see the manpage: 'man qemu-img'

As I no longer knew the name of the snapshot, I had to use the command below to list the snapshots on the qcow2 disk:

qemu-img snapshot -l 'diskNameQcow2'

Thank you very much!
 
Even after deleting the snapshot from the qcow2 disk, I cannot resize the disk.
The Proxmox GUI states that it is not possible to resize a disk that contains a snapshot :(
 
Even after deleting the snapshot from the qcow2 disk, I cannot resize the disk.
The Proxmox GUI states that it is not possible to resize a disk that contains a snapshot :(

Hello everyone. I was able to perform the resize after detaching and attaching the disk again.
I hope it helps.

Thanks