Mac : There was an error while executing `VBoxManage`, a CLI used by Vagrant

岁酱吖の 提交于 2019-12-12 13:12:00

问题


I am working with aerospike and installing it using vagrant virtual box.

After installation, when i am trying to start the virtual machine, it is giving the following error:

. There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dff6693e-52c8-4c9e-922a-243d18c7f666", "--type", "headless"]

Stderr: VBoxManage: error: The VM session was closed before any attempt to power it on VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession

i am using mac machine for this setup.

Any suggestion?


回答1:


Proceeding with the following steps helped me out:

  1. restart the virtual box using:

    sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
    
  2. Stop vagrant as follows:

    vagrant halt
    
  3. start vagrant as follows:

    vagrant up
    



回答2:


I had the same problem. You can simply restart your system and then restart Vagrant as well. The error majorly occurs when the virtual box was stopped abruptly. Good luck!



来源:https://stackoverflow.com/questions/54286789/mac-there-was-an-error-while-executing-vboxmanage-a-cli-used-by-vagrant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!