Description
The existing steps to build a Windows golden image do not work anymore with the new vCenter. We want to fix these to make sure automating the golden image creation process works reliably as intended.
Engineering Details
The configure-vm-tools.ps1 and install-openssh.ps1 scripts throw errors now.
# in configure-vm-tools.ps1
$ Invoke-WebRequest -O tools.conf https://raw.githubusercontent.com/vmware/open-vm-tools/master/open-vm-tools/tools.conf
fails as "The remote name could not be resolved: raw.githubusercontent.com".
and
# in install-openssh.ps1 $ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
fails as "Add-WindowsCapability failed. Error code = 0x8024402c"
This hints at a difference in network settings between the old VMC env, which allowed this outbound requests, and the new vCenter, which is preventing them.
Acceptance Criteria
- Packer runs result in valid windows VM in the DEV/QE environment
- our vsphere CI docs are updated to explain how to run packer in the DEV/QE environment
- is related to
-
WINC-1200 Enable using packer to build Windows templates for vSphere CI
-
- Closed
-
- links to
-
RHBA-2024:132594 Red Hat OpenShift for Windows Containers 10.17.0 product release
- mentioned on