Hi folks,
I am running Vagrant on Fedora 34 using libvirt as provider. When issuing vagrant destroy
, it only shutdown VM, but does not delete libvirt image at /home/${USER}/.local/share/libvirt/images/
Is there any option for a clear destroy on Linux using libvirt?
EDIT:
The file left behind appears to be the vagrant box file copied from /home/${USER}/.vagrant.d/boxes/ to the libvirt image folder.
Before vagrant destroy
:
$ ls -la /home/${USER}/.local/share/libvirt/images
total 1070948
-rwxr--r--. 1 fedora fedora 1090156032 Jul 30 15:03 generic-VAGRANTSLASH-centos8_vagrant_box_image_3.3.2.img
-rw-------. 1 fedora fedora 6160384 Jul 30 15:07 Vagrant_default.img
After vagrant destroy
:
$ ls -la /home/${USER}/.local/share/libvirt/images
total 1070948
-rwxr--r--. 1 fedora fedora 1090156032 Jul 30 15:03 generic-VAGRANTSLASH-centos8_vagrant_box_image_3.3.2.img
… where the leftover file appears to be a copy from /home/$USER/.vagrant.d/boxes/generic-VAGRANTSLASH-centos8/3.3.2/libvirt/box.img