Background
Build a virtual machine on an VMware ESXi hypervisor.
Pre-requisites
- A machine with the following packages
- Go
- Ansible
- Hashicorp's Packer
- OpenSSL binary
- Git SCM
Procedure
Setup the repository area
Steps | |
---|---|
1 | First clone the Git repository. |
2 | Run the |
3 | Go to the |
4 | Create a config.example.yml # ESX variables esx_server = "vsphere-1" # ESX server name esx_username = "packer" # ESX user with admin permissions esx_password = "password" # ESX user's password esx_network = "VM Network" # ESX virtual network to create the VM on esx_datastore = "datastore1" # ESX datastore to create the VM on # VM variables ssh_keys_url = "https://github.com/username.keys" Do not commit the yaml file into Git, this file contains ESX password information. |
Building the virtual machine
Steps | |
---|---|
1 | The |
2 | An example argument list to the ./builder -o debian -r bullseye -n vm-1 |
Appendix
Document | Link | |
---|---|---|
1 | The vmware-builder  Git repository | https://github.com/tenzin-io/vmware-builder |
2 | Hashicorp's Packer | https://www.packer.io |