Giter VIP home page Giter VIP logo

docker-vcsim's Introduction

vCenter and ESXi API based simulator

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

Building the simulator from source

docker build -t lamw/govcsim .

Pulling the simulator from Dockerhub

docker pull lamw/govcsim

Running the simulator

The simulator can simulate either a vCenter server or an ESXi server, starting it with default values assumes vCenter server.

Start it with default settings as a vCenter server

docker run --rm -d -p 443:443 lamw/govcsim

Start it as a vCenter server passing in configuration file vcenter-vcsim.conf:

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

Run simulator as a ESXi server passing in configuration file esxi-vcsim.conf:

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

Stoping the simulator

Search for Docker Container ID:

docker ps

stopping the Docker Container:

docker stop [PID]

docker-vcsim's People

Contributors

ltuits avatar community-vsphere-tag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.