# Adding Host to vSphere fails

**URL:** <https://forums.suse.com/t/adding-host-to-vsphere-fails/3120>\
**Category:** Rancher 1.x\
**Created:** [June 15, 2016, 9:43am UTC](https://forums.suse.com/t/adding-host-to-vsphere-fails/3120 "2016-06-15T09:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alxndr13](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@alxndr13](https://forums.suse.com/u/alxndr13)\
**Post date:** [June 15, 2016, 9:43am UTC](https://forums.suse.com/t/adding-host-to-vsphere-fails/3120/1 "2016-06-15T09:43:31Z")

</div>

Rancher Version 1.1.0-dev4

When im adding a host using the machine-driver for vSphere, the machine is created but gets immediately deleted after pulling the rancher/agent image.

The interesting log part:  
`time=“2016-06-15T09:33:26Z” level=info msg=“Activating Machine” eventId=1ef5bc85-d16d-41b1-b0c6-db873e272021 resourceId=1ph46  
time=“2016-06-15T09:33:26Z” level=info msg="Pulling rancher/agent:v1.0.1 image."  
time=“2016-06-15T09:33:26Z” level=info msg=“starting cleanup…” machine name=host02  
time=“2016-06-15T09:33:27Z” level=info msg=“cleanup successful” machine name=host02  
time=“2016-06-15T09:33:27Z” level=error msg=“Error processing event” err=“Post [https://xx.xxx.x.xxx:2376/images/create?fromImage=rancher%2Fagent&tag=v1.0.1:](https://xx.xxx.x.xxx:2376/images/create?fromImage=rancher%2Fagent&tag=v1.0.1:) Forbidden” eventId=1ef5bc85-d16d-41b1-b0c6-db873e272021 eventName=“physicalhost.bootstrap;handler=goMachineService” resourceId=1ph46

I tried the docker-machine command which rancher created, manually and the machine persists after this. I even tried to use docker-machine v0.7 and 0.8-rc1. None of them work.

Sidenote: Im behind a corporate proxy, but im passing the http\_proxy/https\_proxy variable to the docker engine 😕

Maybe, some of the devs can help we. I would like to introduce Rancher in my company, but i cant until this isnt fixed ☹

Thanks in advance! 🙂  
`

---

<div class="post-metadata">

**Author:** ![mmencel](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mmencel/32/1626_2.png) [@mmencel](https://forums.suse.com/u/mmencel)\
**Post date:** [August 25, 2016, 7:18pm UTC](https://forums.suse.com/t/adding-host-to-vsphere-fails/3120/2 "2016-08-25T19:18:09Z")

</div>

Did you ever get this figured out? I’m having a similar issue getting started with Rancher and VMware. Mine won’t even get to the point where it starts to create the vm and I wonder if it’s because of the http\_proxy. Maybe I have to set no\_proxy somewhere first?

Also, where do you see those logs, because I’m getting nothing in /var/lib/cattle/logs when this fails.

Thanks!
