Skip to content

Instantly share code, notes, and snippets.

@philipz
Last active November 16, 2017 12:48
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save philipz/2eb126f6c68568a1ef57 to your computer and use it in GitHub Desktop.
Save philipz/2eb126f6c68568a1ef57 to your computer and use it in GitHub Desktop.
Docker-Machine for VMware vSphere

Docker Machine and VMware vSphere

  1. Install govc go get github.com/vmware/govmomi/govc and go install github.com/vmware/govmomi/govc
  2. export GOVC_URL='https://[USERNAME]:[PASSWORD]@[ESXI-OR-VCENTER-HOSTNAME-OR-IP]/sdk' and export GOVC_INSECURE=1 from govmomi (vSphere SDK for Go), govc CLI & Kubernetes on vSphere
  3. docker-machine create vmdocker --driver vmwarevsphere --vmwarevsphere-datacenter ha-datacenter --vmwarevsphere-vcenter 192.168.2.12 --vmwarevsphere-username root --vmwarevsphere-password PASSWORD --vmwarevsphere-datastore 500G --vmwarevsphere-network "VM Network"
  4. For RancherOS on VMware vSphere

docker-machine create MyRancherOSMachine -d vmwarevsphere --vmwarevsphere-boot2docker-url https://github.com/rancher/os/releases/download/v0.4.0/rancheros.iso --vmwarevsphere-datacenter ha-datacenter --vmwarevsphere-vcenter 192.168.2.12 --vmwarevsphere-username root --vmwarevsphere-password PASSWORD --vmwarevsphere-datastore 500G --vmwarevsphere-network "VM Network"

docker-machine create MyRancherOSMachine -d vmwarevsphere --vmwarevsphere-boot2docker-url file:///home/user/rancheros.iso --vmwarevsphere-datacenter ha-datacenter --vmwarevsphere-vcenter 192.168.2.12 --vmwarevsphere-username root --vmwarevsphere-password PASSWORD --vmwarevsphere-datastore 500G --vmwarevsphere-network "VM Network"

@rbucker
Copy link

rbucker commented Nov 16, 2017

I'm still looking into this... the rancheros.iso boots but does not autoinstall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment