How to clear a QCOW2, to restart VM install from scratch?

MrPete

Active Member
Aug 6, 2021
125
62
33
67
I thought this would be a simple thing, yet find no docs nor examples:
  • I want to do the equivalent of reformatting and/or removing all partitions from a QCOW2 file assigned to a VM
  • Why? I started installing a VM, messed it up, and want to start over without redoing the entire hardware config
This is quite simple in non-virtualized systems. What's the trick in Proxmox?

Thanks!
 
Doable, but not available in the GUI. At that point, it's about as easy to delete the entire VM and start over (which is what I finally did, copying and pasting the MAC so I didn't have to redo the assigned static IP in my DHCP server...)
 
Why don't you use the same technique for PVE? My current go to is just a blkdiscard.
AWESOME!!! That's perfect! I was looking for something like this, never found it in searching the thin-provisioned info. Soooo easy. :)