Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitle/a3e44803444f739341234cc567363ea8 to your computer and use it in GitHub Desktop.
Save sitle/a3e44803444f739341234cc567363ea8 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"

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