Remove libvirt domain after Vagrant fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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