# Issue adding host with virtualbox

**URL:** <https://forums.suse.com/t/issue-adding-host-with-virtualbox/754>\
**Category:** Rancher 1.x\
**Created:** [October 22, 2015, 9:45pm UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754 "2015-10-22T21:45:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [October 22, 2015, 9:45pm UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754/1 "2015-10-22T21:45:12Z")

</div>

Hi, i’m trying to add a host using vbox driver as a way of loading more hosts on my machine for testing…

I’m getting this error: exec: “VBoxManage”: executable file not found in $PATH

I’m running rancher-server in the vagrant setup (0.41)… I tried going into the rancher-server (vagrant ssh) but I dont think VBoxManage is installed there… anyways, I assume it would somehow talk to the host’s virtualbox? I’m a bit lost… has anyone gotten this to work?

What I did:  
OS X  
cloned rancher/rancher repo  
ran “vagrant up”

(Rancher is working locally… I can access it, deploy containers etc… its a single-host so far…so I tried adding another one with custom/vbox) which is when I got the error.

Any idea where I need to put the path, and how to find the correct one? Is it add VBoxManage’s path to my Mac’s path? or somehow install it inside the rancher vagrant machine?

here is the API output of the errored host…: [http://pastebin.com/dZTHCn3K](http://pastebin.com/dZTHCn3K)

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [October 23, 2015, 6:40am UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754/2 "2015-10-23T06:40:54Z")

</div>

I believe that would be a nice feature request, to let rancher/server be able to talk to a remote Virtualbox. I’ve not looked into it, but it ought to be doable 😄

As it is now, rancher/server expects to find VBoxManage on the same host as where it is running, which only makes sense if you’ve managed to run rancher/server on your local machine (or a machine where you actually have virtualbox installed), which, unless I’m mistaken, won’t be the case when you run rancher/server in a container.

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [October 26, 2015, 1:51pm UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754/3 "2015-10-26T13:51:14Z")

</div>

Thanks for clearing that up kaos! I’m not really sure abt the use of it that way… at least for me… But adding a way to add it to a remote virtualbox would be an idea for sure… or maybe a “Vagrantfile exporter”?

In my idea I just wanted to add some hosts to my local machine for testing… I’d then, obviously, replicate the stack and services to another cloud, for example…

---

<div class="post-metadata">

**Author:** ![funkytaco](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/funkytaco/32/421_2.png) [@funkytaco](https://forums.suse.com/u/funkytaco)\
**Post date:** [October 29, 2015, 6:01am UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754/4 "2015-10-29T06:01:19Z")

</div>

So I thought the solution to this was to use Rancher UI (found on github as rancher/ui project) directly on OS X, instead of running **rancher/server** in a Docker container.

But it looks like the UI project doesn’t include the API, as I get this error on `npm start`

> API Proxy GET to /v1/token  
> Proxy Error: on GET to /v1/token : { [Error: connect ECONNREFUSED]  
> code: ‘ECONNREFUSED’,  
> errno: ‘ECONNREFUSED’,  
> syscall: ‘connect’ }  
> API Proxy GET to /v1/schemas?limit=1000  
> Proxy Error: on GET to /v1/schemas?limit=1000 : { [Error: connect ECONNREFUSED]  
> code: ‘ECONNREFUSED’,  
> errno: ‘ECONNREFUSED’,  
> syscall: ‘connect’ }

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [October 29, 2015, 7:26am UTC](https://forums.suse.com/t/issue-adding-host-with-virtualbox/754/5 "2015-10-29T07:26:35Z")

</div>

@funkytaco, the UI needs a rancher server to talk to (i.e. cattle)… so you need to run that locally outside of any container as well…
