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

MrPete

Member
Aug 6, 2021
67
44
23
66
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. :)
 

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!