This project bundles govcsim which is a vCenter Server and ESXi API based simulator written using govmomi (vSphere SDK for Go) into an easy to use Docker Container. This is a slight enhancement to the original work by Brian Burke which can be found here
docker build -t lamw/govcsim .
docker pull lamw/govcsim
The simulator can simulate either a vCenter server or an ESXi server, starting it with default values assumes vCenter server.
docker run --rm -d -p 443:443 lamw/govcsim
type=vcenter
virtualmachine=20
host=30
datacenter=2
cluster=3
folder=5
datastore=6
resourcepool=7
network=8
standalonehost=9
storagecluster=10
vapp=11
Note: The filename of the VC Sim configuration file can be named anything you want
docker run --rm -d -p 443:443 --env-file vcenter-vcsim.conf lamw/govcsim
type=esxi
virtualmachine=20
datastore=6
resourcepool=7
network=8
Start it as a ESXi server passing in configuration file esxi-vcsim.conf
:
docker run --rm -d -p 443:443 --env-file esxi-vcsim.conf lamw/govcsim
docker ps
docker stop [PID]