Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-1199

Fix packer scripts to work with new vCenter

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • 3
    • False
    • None
    • False

      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

            mohashai Mohammad Shaikh
            mohashai Mohammad Shaikh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: