vagrant booting error

Error.1 NS_ERROR_FAILURE

Using macos to debug c program is annoying…

Tried to use vagrant vm, but I met error while booting the vm

1
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Solution

https://stackoverflow.com/questions/52689672/virtualbox-ns-error-failure-0x80004005-macos

I tried reinstall Virtualbox, not working

I tried reboot mbp, this time it worked

Don’t know the root reason yet

Error.2 umount: /mnt: not mounted

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ vagrant up

...

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

umount /mnt

Stdout from the command:



Stderr from the command:

umount: /mnt: not mounted

then I can vagrant ssh into the machine, seem above error is not a big deal

But I want to make it go away…

Reason

seems related to vagrant plugin vagrant-vbguest

1
2
vagrant plugin list
vagrant plugin uninstall vagrant-vbguest

Solution

Unistall the plugin and reboot the vagrant vm

1
2
3
4
vagrant halt
vagrant destroy
vagrant up
vagrant ssh

Error.3 Remote connection disconnect. Retrying and ask for ssh password

https://github.com/puphpet/puphpet/issues/1253#issuecomment-145429092

for some dumb people like me, do not use /home/vagrant as your shared folder (in your vm), because the .ssh files are not accesible.

don’t understand the reason, but this is the cause, remove the config.vm.synced_folder resolved the problem

How to debug

1
2
vagrant ssh-config
vagrant ssh --debug

Solution

rm config.vm.synced_folder in Vagrantfile and try again