# Add Host to vmware vsphere hangs

**URL:** <https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139>\
**Category:** Rancher 1.x\
**Created:** [March 23, 2016, 7:14pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139 "2016-03-23T19:14:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhamilton](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hhamilton/32/584_2.png) [@hhamilton](https://forums.suse.com/u/hhamilton)\
**Post date:** [March 23, 2016, 7:14pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/1 "2016-03-23T19:14:28Z")

</div>

When I “Add Host” in Rancher v0.63.1 using the vmwarevsphere driver it creates the VM on vSphere 5.5 and starts it. However in the Rancher GUI it hangs saying "Creating , Setting Up machine, Creating Machine " in Rancher and never comes back.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [March 23, 2016, 7:41pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/2 "2016-03-23T19:41:03Z")

</div>

Can you provide the rancher/server logs for when you launch the host? Hide any sensitive information.

Also, can you confirm that the docker-machine command that you find from the logs can be launched through docker-machine with no issues?

---

<div class="post-metadata">

**Author:** ![hhamilton](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hhamilton/32/584_2.png) [@hhamilton](https://forums.suse.com/u/hhamilton)\
**Post date:** [March 24, 2016, 2:42pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/3 "2016-03-24T14:42:01Z")

</div>

I can’t seem to find any good log messages from the server but This is what I see when I run docker-machine from the same box that has the Rancher Server:

[root@ny-dock-reg-npd01 ~]# docker-machine -D create --driver vmwarevsphere --vmwarevsphere-username=root --vmwarevsphere-password=\*\*\*\*\*\* --vmwarevsphere-vcenter=X.X.X.X --vmwarevsphere-hostsystem=X.X.X.X --vmwarevsphere-disk-size=10000 --vmwarevsphere-datastore=EXT\_STORAGE3 --vmwarevsphere-datacenter=“X.X.X.X” --vmwarevsphere-boot2docker-url=https://releases.rancher.com/os/latest/ranch  
Docker Machine Version: 0.6.0, build e27fb87  
Found binary path at /usr/local/bin/docker-machine  
Launching plugin server for driver vmwarevsphere  
Plugin server listening at address 127.0.0.1:33642  
() Calling .GetVersion  
Using API Version 1  
() Calling .SetConfigRaw  
() Calling .GetMachineName  
(flag-lookup) Calling .GetMachineName  
(flag-lookup) Calling .DriverName  
(flag-lookup) Calling .GetCreateFlags  
Found binary path at /usr/local/bin/docker-machine  
Launching plugin server for driver vmwarevsphere  
Plugin server listening at address 127.0.0.1:38646  
() Calling .GetVersion  
Using API Version 1  
() Calling .SetConfigRaw  
() Calling .GetMachineName  
(ny-rancheros-test03) Calling .GetMachineName  
(ny-rancheros-test03) Calling .DriverName  
(ny-rancheros-test03) Calling .GetCreateFlags  
(ny-rancheros-test03) Calling .SetConfigFromFlags  
Running pre-create checks…  
(ny-rancheros-test03) Calling .PreCreateCheck  
(ny-rancheros-test03) DBG | Connecting to vSphere for pre-create checks…  
(ny-rancheros-test03) Calling .GetConfigRaw  
Creating machine…  
(ny-rancheros-test03) Calling .Create  
(ny-rancheros-test03) Downloading /root/.docker/machine/cache/boot2docker.iso from [https://releases.rancher.com/os/latest/rancheros.iso](https://releases.rancher.com/os/latest/rancheros.iso)…

Message from syslogd@ny-dock-reg-npd01 at Mar 24 10:40:01 …  
kernel:unregister\_netdevice: waiting for lo to become free. Usage count = 1  
(ny-rancheros-test03) 0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%  
(ny-rancheros-test03) Generating SSH Keypair…  
(ny-rancheros-test03) Creating VM…  
(ny-rancheros-test03) Uploading Boot2docker ISO …  
(ny-rancheros-test03) Reconfiguring VM…  
(ny-rancheros-test03) Waiting for VMware Tools to come online…

And it just hangs there.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [March 24, 2016, 4:41pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/4 "2016-03-24T16:41:15Z")

</div>

Can you confirm that you are trying to launch RancherOS?

---

<div class="post-metadata">

**Author:** ![hhamilton](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hhamilton/32/584_2.png) [@hhamilton](https://forums.suse.com/u/hhamilton)\
**Post date:** [March 24, 2016, 8:03pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/5 "2016-03-24T20:03:42Z")

</div>

Yes, I"m using this url to grab rancherOS :  
–vmwarevsphere-boot2docker-url=https://releases.rancher.com/os/latest/rancheros.iso

docker-machine --debug create --driver vmwarevsphere --vmwarevsphere-username=xxxxx  
–vmwarevsphere-password=xxxx --vmwarevsphere-vcenter=xxxxx  
–vmwarevsphere-hostsystem=xxxxx  
–vmwarevsphere-disk-size=10000  
–vmwarevsphere-datastore=‘EXT\_STORAGE1 (1)’  
–vmwarevsphere-datacenter=“xxxxxx”  
–vmwarevsphere-boot2docker-url=https://releases.rancher.com/os/latest/rancheros.iso ny-rancheros-test07

---

<div class="post-metadata">

**Author:** ![Moridinmhael](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/moridinmhael/32/144_2.png) [@Moridinmhael](https://forums.suse.com/u/Moridinmhael)\
**Post date:** [March 26, 2016, 9:08am UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/6 "2016-03-26T09:08:56Z")

</div>

The docker VMvSphere does not support RancherOS, only supports boot2docker.

> **[VMware vSphere](https://docs.docker.com/machine/drivers/vsphere/)**
>
> Creates machines on a VMware vSphere Virtual Infrastructure. The machine must have a working vSphere ESXi installation. You can use a paid license or free 60 day trial license. Your...

I would love it too support RancherOS, but there are better solutions coming or out there specifically from VMWare:

> **[VMware Cloud-Native Apps Announcements at VMworld 2015 - Cloud-Native Apps](https://blogs.vmware.com/cloudnative/2015/08/31/vmware-cloud-native-apps-announcements-vmworld-2015/)**
>
> Announcing VMware vSphere Integrated Containers and VMware Photon Platform It’s been a whirlwind few months for us in the Cloud-Native Apps team at VMware.  We announced a number of new projects and products, presented at many conferences and...

VIC and Photon

---

<div class="post-metadata">

**Author:** ![guzmo](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@guzmo](https://forums.suse.com/u/guzmo)\
**Post date:** [September 11, 2016, 6:17pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/7 "2016-09-11T18:17:33Z")

</div>

Is this possible to fix? I looked in the docker-machine code and it didn’t look hard to add it. B2D username/password is hardcoded though. How are we supposed to run rancheros instead of b2d in production for example? Do we have to create custom hosts? I like that when we create the hosts via rancher ( api ) it will also remove the hosts when we delete the environment so we don’t have to handle all the cleanup ( Databases etc is enought to cleanup 😛 )

---

<div class="post-metadata">

**Author:** ![SvenDowideit](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/svendowideit/32/2159_2.png) [@SvenDowideit](https://forums.suse.com/u/SvenDowideit)\
**Post date:** [April 19, 2017, 11:06pm UTC](https://forums.suse.com/t/add-host-to-vmware-vsphere-hangs/2139/8 "2017-04-19T23:06:18Z")

</div>

I’ve been using Docker-machine to create vbox and vmware (workstation) RancherOS boxes for at least 0.9 and 1.0 - so I presume you mean something needs to be modfied in the esxi machine driver?
