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 | $ vagrant up |
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 | vagrant plugin list |
Solution
Unistall the plugin and reboot the vagrant vm
1 | vagrant halt |
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 | vagrant ssh-config |
Solution
rm config.vm.synced_folder
in Vagrantfile and try again