Skip to content

Instantly share code, notes, and snippets.

@juanje
Created August 14, 2020 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanje/bada64e055623a00912a41156c769de4 to your computer and use it in GitHub Desktop.
Save juanje/bada64e055623a00912a41156c769de4 to your computer and use it in GitHub Desktop.
Remove libvirt domain after Vagrant fails
# Found hre: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/658#issuecomment-380976825
sudo virsh list --all
# Find the domain is failing (<THE_MACHINE>)
sudo virsh destroy <THE_MACHINE>
sudo virsh undefine <THE_MACHINE> --snapshots-metadata --managed-save
sudo virsh vol-list default
sudo virsh vol-delete --pool default <THE_VOLUME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment