title: macOS - vagrant up failed, /dev/vboxnetctl: no such file or directory
body: <p>Can be useful, I found this error. The common solution is reinstall virtualbox but there are a better way.</p>
  
  <p><strong>Solution</strong></p>
  
  <pre><code>sudo /Library/StartupItems/VirtualBox/VirtualBox restart
  </code></pre>
  
  <p>or</p>
  
  <pre><code>sudo /Library/StartupItems/VirtualBox/VirtualBox start
  </code></pre>
  
  <p><strong>VirtualBox 4.3+</strong></p>
  
  <p>On recents versions, the file (/Library/StartupItems/VirtualBox/VirtualBox) don't exists, so you need to use the command below:</p>
  
  <pre><code>sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
  </code></pre>
  
  <hr>
  
  <p><strong>Error</strong></p>
  
  <p>Print: <a href="http://d.pr/i/1Bvi" rel="noreferrer">http://d.pr/i/1Bvi</a></p>
  
  <blockquote>
    <p>There was on error while executing <code>VBoxManage</code>, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below
    Command: ["hostonlyif", "create"]</p>
    
    <p>Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error:
    Failed to create the host-only adapter VBoxManage: error:
    VBoxNetAdpCtl: Error while adding new interface: failed to open
    /dev/vboxnetctl: No such file or directory</p>
    
    <p>VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005),
    component HostNetworkInterface, interface IHostNetworkInterface
    VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)"
    at line 68 of file VBoxManageHostonly.cpp</p>
  </blockquote>
  
  <p>Vagrant Git issue about the error: <a href="https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107" rel="noreferrer">https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107</a></p>