Skip to content

Instantly share code, notes, and snippets.

@gangsta
Last active January 16, 2020 10:13
Show Gist options
  • Save gangsta/51ab0bb436b98db907b01fc09251ea83 to your computer and use it in GitHub Desktop.
Save gangsta/51ab0bb436b98db907b01fc09251ea83 to your computer and use it in GitHub Desktop.
How to Remove Vagrant domain from Fedora 30,31

If you removed Vagrantfile but not Vagrant host. you'll get following error:

Name 'vagrantbox_default' of domain about to create is already taken. Please try to run 'vagrant up' command again.

For Fedora users, or force undefine you need following.

To install virsh.

sudo dnf groupinfo virtualization
sudo dnf install @virtualization 

To remove domain.

virsh list --all
virsh destroy <THE_MACHINE> 
virsh undefine <THE_MACHINE> --snapshots-metadata --managed-save
virsh vol-list default
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