# Ansible/Vagrant error (Trellis) - ease of use?

**URL:** https://discourse.roots.io/t/ansible-vagrant-error-trellis-ease-of-use/16300
**Category:** bedrock
**Tags:** ansible, deploys, trellis
**Created:** 2019-08-08T07:10:06Z
**Posts:** 9

## Post 1 by @trainoasis — 2019-08-08T07:10:06Z

Hello.

I’m at a point where Bedrock & Sage feel comfortable - and have thus decided I want to use Trellis for deployment too to further improve my workflow. Until now I’ve been ssh-ing to remote server’s and doing

`git pull`

and transferring `yarn build:production` generated `dist` folder to the server afterwards.

This doesn’t feel very clean, and with many sites I do want to improve it badly.

I followed [GitHub - roots/roots-example-project.com: Example Roots stack project (Trellis, Bedrock, Sage)](https://github.com/roots/roots-example-project.com) but was stopped already at step 3 for **Fire up the server**. `vagrant up` throws:

```
trellis git:(master) vagrant --version
Vagrant 2.2.5
➜ trellis git:(master) vboxmanage --version
6.0.6r130049
➜ trellis git:(master) vagrant reload
==> default: Checking if box 'bento/ubuntu-18.04' version '201906.18.0' is up to date...
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

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
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
```

Tried to restart/reload vagrant, to no avail.

Is working with vagrant always such a pain? (I can remember trying something similar years ago on a non-WP project and also was stopped with errors…).

I hope someone can convince me to still try and use Trellis for Bedrock/Sage dev :blush:

Also, is [Capistrano](https://github.com/capistrano/capistrano/blob/master/README.md) maybe an easier solution?

Thanks!

---

## Post 2 by @JordanC26 — 2019-08-08T07:45:41Z

Quick question, have you got Virtualbox installed?

- [https://www.virtualbox.org/wiki/Downloads](https://www.virtualbox.org/wiki/Downloads)

---

## Post 3 by @trainoasis — 2019-08-08T07:56:11Z

Indeed I have.

```
vboxmanage --version
```

should show that :slight_smile: Also running `virtualbox` opens GUI from CLI

---

## Post 4 by @alwaysblank — 2019-08-08T15:54:24Z

Based on the error it looks like VirtualBox is having trouble setting up its network adapter to allow the VM to communicate with the host. I think I had a problem similar to this recently, but I don’t recall the exact solution. IIRC it had to do with my initial VirtualBox install not building with the correct drivers or headers, and the solution was to reinstall with the dkms package (this was on Manjaro w/ a custom kernel). I was eventually able to track down a solution by googling the VirtualBox error message I got.

---

## Post 5 by @jonathanlaf — 2019-08-08T23:43:44Z

Don’t use version 6 of VirtualBox, downgrade to 5 it will be ok :wink:

---

## Post 6 by @carlosfaria — 2019-10-08T09:38:20Z

I had the same problem and it seems a permissions issue with OSX.  
I followed the instructions here to grant permission in the Security & Privacy pane, and everything works like a charm now, even with Virtualbox 6.0.12

> **[Fixing ‘The Installation Failed’ VirtualBox Error on Mac High Sierra](https://medium.com/@DMeechan/fixing-the-installation-failed-virtualbox-error-on-mac-high-sierra-7c421362b5b5)**
>
> When installing VirtualBox on Mac High Sierra, the ‘Installation Failed’ error can be quite stubborn. Let’s fix that.

Check out the 2019 update as I needed to reach the Allow button using Tab key as stated here:

> **[Nice article.](https://medium.com/@leo_49724/nice-article-c258c7ca8237)**
>
> Nice article. I had a strange situation where although the ‘Allow’ button was shown, I couldn’t click on it. The install failed even after running `sudo spctl — master-disable`. Eventually I…

---

## Post 7 by @trainoasis — 2019-10-09T07:39:41Z

Thanks for your comment, but this seems as the issue with **installing** VirtualBox, not running vagrant up ? I can run Virtual Box and open it just fine, just not vagrant properly.

---

## Post 8 by @carlosfaria — 2019-10-09T08:46:12Z

Yep, running vagrant up lead me to this issue.  
I reinstalled Virtualbox and fixed the problem pressing the allow button with the tab key + space.

---

## Post 9 by @trainoasis — 2019-10-09T10:52:53Z

Indeed, the reinstall of virtualbox (via brew) helped. thanks! Did not even have to “Allow” again.
