make build VEBA - dcasota/photonos-scripts GitHub Wiki
# https://vmweventbroker.io/kb/contribute-appliance
tdnf install -y curl unzip jq git powershell
# https://developer.vmware.com/web/tool/ovf-tool/
curl -J -L -O https://vdc-download.vmware.com/vmwb-repository/dcr-public/8a93ce23-4f88-4ae8-b067-ae174291e98f/c609234d-59f2-4758-113-0ec5bbe4b120/VMware-ovftool-4.6.2-22220919-lin.x86_64.zip
# https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli
cat > /etc/yum.repos.d/hashicorp.repo << "EOF"
[hashicorp]
name=Hashicorp Stable - $basearch
baseurl=https://rpm.releases.hashicorp.com/fedora/38/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg
EOF
tdnf install -y packer
git clone https://github.com/vmware-samples/vcenter-event-broker-appliance.git
cd vcenter-event-broker-appliance/
packer init .
# modify photon-builder.json or photon.auto.pkrvars.hcl
sed "s/builder_host = "192.168.30.5"/ /g" ./photon.auto.pkrvars.hcl
sed "s/builder_host_username = "root"/ /g" ./photon.auto.pkrvars.hcl
sed "s/builder_host_password = "VMware1!"/ /g" ./photon.auto.pkrvars.hcl
sed "s/builder_host_datastore = "sm-vsanDatastore"/ /g" ./photon.auto.pkrvars.hcl
sed "s/builder_host_portgroup = "VM Network"/ /g" ./photon.auto.pkrvars.hcl
sed "s/ovftool_deploy_vcenter = "192.168.30.3"/ /g" ./photon.auto.pkrvars.hcl
sed "s/ovftool_deploy_vcenter_username = "[email protected]"/ /g" ./photon.auto.pkrvars.hcl
sed "s/ovftool_deploy_vcenter_password = "VMware1!"/ /g" ./photon.auto.pkrvars.hcl
sed "s/vm_name = "VMware_Event_Broker_Appliance"/ /g" ./photon.auto.pkrvars.hcl
sed "s/iso_checksum = "5af288017d0d1198dd6bd02ad40120eb"/ /g" ./photon.auto.pkrvars.hcl
sed "s/iso_url = "https://packages.vmware.com/photon/4.0/Rev2/iso/photon-4.0-c001795b8.iso"/ /g" ./photon.auto.pkrvars.hcl
sed "s/numvcpus = "6"/ /g" ./photon.auto.pkrvars.hcl
sed "s/ramsize = "8192"/ /g" ./photon.auto.pkrvars.hcl
sed "s/guest_username = "root"/ /g" ./photon.auto.pkrvars.hcl
sed "s/guest_password = "##FILL-IN-SECURE-PASSWORD##"/ /g" ./photon.auto.pkrvars.hcl
./build.sh