Deploy Photon OS with HashiCorp Packer on a VMware Workstation installation - dcasota/photonos-scripts GitHub Wiki
Initial cache staging on a laptop with Microsoft Windows 10
-
Ensure internet connectivity
-
Check the hardware requirements for VMware Workstation
-
Download VMware workstation eg. from your VMUG Advantage subscription, minimal version 15 for Rest API functionality
-
Install VMware Workstation
-
Start VMware Workstation, set your license. if applicable, upgrade to the latest version.
-
In a cmdline window, set the Rest API credentials.
-
Recipe from here to prevent 'Could not determine network mappings' build issues
Start Virtual Network editor
Click 'Change Settings'
Click 'OK'. -
Recipe from here to prevent 'This host supports Intel VT-x, but the Intel VT-x implementation is incompatible with VMware Workstation.' and 'This host does not support Intel EPT haRDWARE ASSISTED mmu VIRTUALIZATION' build issues in c:\programdata\VMware\VMware Workstation\config.ini, add
-
Download and install Hashicorp Packer
-
Download and install Hashicorp Vagrant
-
Download and install the Hashicorp Vagrant VMware Utility
Build
The following configuration steps are originated from https://github.com/vmware/photon-packer-templates.
Run a cmdline window with local administrative privileges.
git clone https://github.com/vmware/photon-packer-templates.git
cd .\photon-packer-templaes
packer init -var-file .\photon-4.0-R2.pkrvars.hcl .
packer validate -var-file .\photon-4.0-R2.pkrvars.hcl .
packer build --force -only=vmware-iso.vagrant-vmw -var-file .\photon-4.0-R2.pkrvars.hcl .