Note To Self: How To Fix A VirtualBox Machine With The Name ‘dashboard’ Already Exists..
3 Min Read
Recently started having this issue when I tried to bring up my VirtualBox machine with the name ‘dashboard’. I wasn’t able to do so because of the dreaded message ‘The name ‘dashboard’ is already in use by another virtual machine.’ Deleting the vm was not an option as it would take me a long time to get it to work due to low internet connectivity at the time.
In this post I will detail how I fixed this issue.
Running the following command in the terminal:
vboxmanage list vms
Outputs the following:
Then I had to replace the id of the vm with the id of the vm that had the name ‘dashboard’ from the output of the command above.
echo "baf04c7b-8248-4954-be66-c4379e5b7af7" > .vagrant/machines/dashboard/virtualbox/id
After replacing the id of the vm with the id of the vm that had the name ‘dashboard’ I ran the following command in the terminal:
And kept on getting the warning below, where ssh authentication kept failing.
The fix was to add the ssh config to the
Vagrant.configure("2") do |config| config.ssh.username = 'root' config.ssh.password = 'vagrant' config.ssh.insert_key = 'false' ...
Then retried to bring up the vm again: