vagrant 'hostonlyif' create not working

后端 未结 7 1056
别那么骄傲
别那么骄傲 2021-01-31 18:42

I\'m trying to do a vagrant up on a box, and I get the following error.

INFO interface: error: There was an error executing the following command with VBo

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 19:04

    I didn't see the version of VirtualBox you are running in your question but for version 4.2.x the command listed by the previous answers:

    sudo /Library/StartupItems/VirtualBox/VirtualBox restart
    

    should fix your issue. If you are running 4.3.x though the equivalent to this command is:

    sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
    

    This will also restart the VirtualBox services and should fix your issue.

    As a side note I have run into the issue where running that command will silently fail and cause VirtualBox to emit the same behavior you described. This is usually caused due to a VM still being active and can usually be resolved by suspending or destroying your vagrant instances or other VMs and rerunning the command.

提交回复
热议问题