Unable to get the stray to destroy

I just deleted a large directory that I no longer need. Unfortunately, he had several stray cases when I neglected the first and the first to destroy him, and I can not get them to leave now.

If I run a “roving global status”, I get four results, all have a name of “default”, three use a hypervisor, and one uses a virtual box (not sure why I have a virtual server instance at all), everything except virtual and all in directories that no longer exist.

I just opened the hyper-v manager and none of these instances exist.

If I try to use "rogue destroy" against any of the identifiers in the global status output, I get the following error:

There are errors in the configuration of this machine. Please fix the following errors and try again: vm: * A box must be specified 

If I look at the “roaming box list” command, it gives one idooid box, but I seem to be unable to do anything with it, since I will get the same error as above when I try to delete it.

What can I do to 1) get rid of the last of the directories that will not be deleted, since vagrant seems to use files and 2) clear these entries that should no longer be here, the status of the command?

Thanks!

+6
source share
3 answers

I finished removing Vagrant and deleted the directories Vagrant used. Then I installed again and there were no more ghostly Vagrant instances.

0
source

To clear the global status of vagrants, use the --prune flag.

I'm not sure why you don't see Hyper-V machines in your Hyper-V manager, though.

+6
source

I was able to remove the Vagrant VM entry from global status using vagrant destroy <id> after I manually removed the virtual machine from the "Oracle VM VirtualBox". VM was ubuntu 14.04, window 10 was the host.

0
source

Source: https://habr.com/ru/post/974747/


All Articles