Tuesday, April 20, 2021

Cleaning up libvirt images

 

 

Running out of storage in / 

 

I was using libvirt + vm images and it is filling up /var/lib/libvirt/images/.

 

So to delete the vm & its corresponding image:

(You are going to delete the *data* , take backup if required)

 # virsh list --all 

# virsh undefine <domain  name>  --remove-all-storage

 

For more details:

# man virsh