26 lines
910 B
Markdown
26 lines
910 B
Markdown
# esxlib
|
|
|
|
Library/Service to interact with ESX server that allows us to use cloud init based images for quickly launching VMs
|
|
|
|
# Where to get images:
|
|
* [Ubuntu Cloud Images\(https://cloud-images.ubuntu.com/)
|
|
* ....
|
|
|
|
# Setup
|
|
See configs/ubuntu-lunar.cloudinit.tmpl, configs/ubuntu-lunar.esx.tmpl
|
|
|
|
The .esxtmpl file is the VMware Vm definition template
|
|
The .cloudinit.tmpl is the cloudinit file template
|
|
|
|
Change them to your needs, they are pretty basic and should work by default
|
|
|
|
Then configure the server:\
|
|
cp server.example.json to server.json
|
|
fill in your details and the slugs you want to present. Slugs are used to fill in the esx.tmpl file
|
|
|
|
Make sure that ssh is enabled on your esx server. And that wherever you are running cmd/serviced can ssh to it. (I typically run serviced on the hypervisor itself)
|
|
|
|
SSH is needed because without a commercial license we can't use the VIM API to create vms.
|
|
|
|
|