Skip to content

Instantly share code, notes, and snippets.

@tleepa
Created April 16, 2021 09:26
Show Gist options
  • Save tleepa/710e2882b36b9de9b163f860ab0c6a02 to your computer and use it in GitHub Desktop.
Save tleepa/710e2882b36b9de9b163f860ab0c6a02 to your computer and use it in GitHub Desktop.
2021/04/16 07:26:25 [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
2021/04/16 07:26:25 Checking 'PACKER_CONFIG' for a config file path
2021/04/16 07:26:25 'PACKER_CONFIG' not set; checking the default config file path
2021/04/16 07:26:25 Attempting to open config file: /root/.packerconfig
2021/04/16 07:26:25 [WARN] Config file doesn't exist: /root/.packerconfig
2021/04/16 07:26:25 Setting cache directory: /var/lib/jenkins/workspace/vmware/release/qa/packer/vmware/packer_cache
2021/04/16 07:26:25 Creating plugin client for path: /usr/bin/packer
2021/04/16 07:26:25 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-vsphere-iso"}
2021/04/16 07:26:25 Waiting for RPC address for: /usr/bin/packer
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Checking 'PACKER_CONFIG' for a config file path
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: 'PACKER_CONFIG' not set; checking the default config file path
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Attempting to open config file: /root/.packerconfig
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Setting cache directory: /var/lib/jenkins/workspace/vmware/release/qa/packer/vmware/packer_cache
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: args: []string{"packer-builder-vsphere-iso"}
2021/04/16 07:26:25 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin107812274
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Plugin address: unix /tmp/packer-plugin107812274
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Waiting for connection...
2021/04/16 07:26:25 packer-builder-vsphere-iso plugin: Serving a plugin connection...
2021/04/16 07:26:25 Creating plugin client for path: /usr/bin/packer
2021/04/16 07:26:25 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/04/16 07:26:25 Waiting for RPC address for: /usr/bin/packer
2021/04/16 07:26:25 packer-provisioner-shell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
2021/04/16 07:26:25 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path
2021/04/16 07:26:25 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path
2021/04/16 07:26:25 packer-provisioner-shell plugin: Attempting to open config file: /root/.packerconfig
2021/04/16 07:26:25 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/04/16 07:26:25 packer-provisioner-shell plugin: Setting cache directory: /var/lib/jenkins/workspace/vmware/release/qa/packer/vmware/packer_cache
2021/04/16 07:26:25 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/04/16 07:26:25 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin103257764
2021/04/16 07:26:25 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin103257764
2021/04/16 07:26:25 packer-provisioner-shell plugin: Waiting for connection...
2021/04/16 07:26:25 packer-provisioner-shell plugin: Serving a plugin connection...
2021/04/16 07:26:25 Creating plugin client for path: /usr/bin/packer
2021/04/16 07:26:25 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/04/16 07:26:25 Waiting for RPC address for: /usr/bin/packer
2021/04/16 07:26:25 packer-provisioner-shell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
2021/04/16 07:26:25 packer-provisioner-shell plugin: Checking 'PACKER_CONFIG' for a config file path
2021/04/16 07:26:25 packer-provisioner-shell plugin: 'PACKER_CONFIG' not set; checking the default config file path
2021/04/16 07:26:25 packer-provisioner-shell plugin: Attempting to open config file: /root/.packerconfig
2021/04/16 07:26:25 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/04/16 07:26:25 packer-provisioner-shell plugin: Setting cache directory: /var/lib/jenkins/workspace/vmware/release/qa/packer/vmware/packer_cache
2021/04/16 07:26:25 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/04/16 07:26:25 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin571585329
2021/04/16 07:26:25 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin571585329
2021/04/16 07:26:25 packer-provisioner-shell plugin: Waiting for connection...
2021/04/16 07:26:25 packer-provisioner-shell plugin: Serving a plugin connection...
2021/04/16 07:26:25 Preparing build: vsphere-iso
2021/04/16 07:26:25 Build debug mode: false
2021/04/16 07:26:25 Force build: false
2021/04/16 07:26:25 On error:
2021/04/16 07:26:25 Waiting on builds to complete...
2021/04/16 07:26:25 Starting build run: vsphere-iso
2021/04/16 07:26:25 Running builder: vsphere-iso
2021/04/16 07:26:25 [INFO] (telemetry) Starting builder vsphere-iso
2021/04/16 07:26:26 packer-builder-vsphere-iso plugin: No URLs were provided to Step Download. Continuing...
==> vsphere-iso: Creating CD disk...
2021/04/16 07:26:26 packer-builder-vsphere-iso plugin: CD label is set to OEMDRV
2021/04/16 07:26:26 packer-builder-vsphere-iso plugin: CD path: /tmp/packer663790441.iso
2021/04/16 07:26:26 packer-builder-vsphere-iso plugin: Wrote 1615 bytes to ks.cfg
2021/04/16 07:26:26 packer-builder-vsphere-iso plugin: Executing: /usr/bin/mkisofs [-joliet -volid OEMDRV -o /tmp/packer663790441.iso /tmp/packer_to_cdrom489479092]
vsphere-iso: Warning: creating filesystem with Joliet extensions but without Rock Ridge
vsphere-iso: extensions. It is highly recommended to add Rock Ridge.
vsphere-iso: Total translation table size: 0
vsphere-iso: Total rockridge attributes bytes: 0
vsphere-iso: Total directory bytes: 0
vsphere-iso: Path table size(bytes): 10
vsphere-iso: Max brk space used 0
vsphere-iso: 181 extents written (0 MB)
vsphere-iso: Done copying paths from CD_dirs
==> vsphere-iso: Uploading packer663790441.iso to packer_cache/packer663790441.iso
==> vsphere-iso: Creating VM...
==> vsphere-iso: Customizing hardware...
==> vsphere-iso: Mounting ISO images...
2021/04/16 07:26:32 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
2021/04/16 07:26:32 packer-builder-vsphere-iso plugin: ISO path not identified as a Content Library path
2021/04/16 07:26:32 packer-builder-vsphere-iso plugin: Using [defr6-bcsvvc001-fr6-gps-ds03] SW/rhel-8.2-x86_64-dvd.iso as the datastore path
2021/04/16 07:26:32 packer-builder-vsphere-iso plugin: Creating CD-ROM on controller '&{{{} 200 0xc000be8ee0 <nil> <nil> <nil> 0 <nil>} 0 []}' with iso '[defr6-bcsvvc001-fr6-gps-ds03] SW/rhel-8.2-x86_64-dvd.iso'
2021/04/16 07:26:33 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
2021/04/16 07:26:34 packer-builder-vsphere-iso plugin: ISO path not identified as a Content Library path
2021/04/16 07:26:34 packer-builder-vsphere-iso plugin: Using [defr6-bcsvvc001-fr6-gps-ds03] packer_cache//packer663790441.iso as the datastore path
2021/04/16 07:26:34 packer-builder-vsphere-iso plugin: Creating CD-ROM on controller '&{{{} 200 0xc0009a9460 <nil> <nil> <nil> 0 <nil>} 0 [3000]}' with iso '[defr6-bcsvvc001-fr6-gps-ds03] packer_cache//packer663790441.iso'
==> vsphere-iso: Adding configuration parameters...
==> vsphere-iso: Set boot order temporary...
2021/04/16 07:26:34 packer-builder-vsphere-iso plugin: No floppy files specified. Floppy disk will not be made.
==> vsphere-iso: Power on VM...
==> vsphere-iso: Waiting 10s for boot...
==> vsphere-iso: Typing boot command...
[redacted]
2021/04/16 07:27:52 packer-builder-vsphere-iso plugin: Special code '<enter>' found, replacing with: CodeReturnEnter
2021/04/16 07:27:52 packer-builder-vsphere-iso plugin: [INFO] Waiting 1s
==> vsphere-iso: Waiting for IP...
2021/04/16 07:27:53 packer-builder-vsphere-iso plugin: [INFO] Waiting for IP, up to total timeout: 30m0s, settle timeout: 5s
2021/04/16 07:33:32 packer-builder-vsphere-iso plugin: VM IP aquired: [redacted]
2021/04/16 07:33:33 packer-builder-vsphere-iso plugin: VM IP is still the same: [redacted]
2021/04/16 07:33:35 packer-builder-vsphere-iso plugin: VM IP is still the same: [redacted]
2021/04/16 07:33:36 packer-builder-vsphere-iso plugin: VM IP is still the same: [redacted]
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: VM IP is still the same: [redacted]
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: VM IP seems stable enough: [redacted]
==> vsphere-iso: IP address: [redacted]
==> vsphere-iso: Using ssh communicator to connect: [redacted]
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: [INFO] Waiting for SSH, up to timeout: 20m0s
==> vsphere-iso: Waiting for SSH to become available...
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: [INFO] Attempting SSH connection to [redacted]:22...
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: [DEBUG] reconnecting to TCP connection for SSH
2021/04/16 07:33:38 packer-builder-vsphere-iso plugin: [DEBUG] handshaking with SSH
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] handshake complete!
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [INFO] no local agent socket, will not connect agent
==> vsphere-iso: Connected to SSH!
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: Running the provision hook
2021/04/16 07:33:39 [INFO] (telemetry) Starting provisioner shell
==> vsphere-iso: Provisioning with shell script: /tmp/packer-shell350809523
2021/04/16 07:33:39 packer-provisioner-shell plugin: Opening /tmp/packer-shell350809523 for reading
2021/04/16 07:33:39 packer-provisioner-shell plugin: [INFO] 81 bytes written for 'uploadData'
2021/04/16 07:33:39 [INFO] 81 bytes written for 'uploadData'
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] Starting remote scp process: scp -vt /tmp
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] Started SCP session, beginning transfers...
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] Copying input data into temporary file so we can read the length
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] scp: Uploading script_2441.sh: perms=C0644 size=81
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] SCP session complete, closing stdin pipe.
2021/04/16 07:33:39 packer-builder-vsphere-iso plugin: [DEBUG] Waiting for SSH session to complete.
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] scp stderr (length 30): Sink: C0644 81 script_2441.sh
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_2441.sh
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: chmod +x /tmp/script_2441.sh; PACKER_BUILDER_TYPE='vsphere-iso' PACKER_BUILD_NAME='vsphere-iso' PACKER_HTTP_ADDR='[redacted]:0' PACKER_HTTP_IP='[redacted]' PACKER_HTTP_PORT='0' /tmp/script_2441.sh
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] 0 bytes written for 'stdout'
2021/04/16 07:33:40 [INFO] 0 bytes written for 'stderr'
2021/04/16 07:33:40 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout'
2021/04/16 07:33:40 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr'
2021/04/16 07:33:40 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: rm -f /tmp/script_2441.sh
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:40 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:40 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: rm -f
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:41 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:41 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:41 [INFO] (telemetry) ending shell
2021/04/16 07:33:41 [INFO] (telemetry) Starting provisioner shell
==> vsphere-iso: Provisioning with shell script: /tmp/packer-shell597249244
2021/04/16 07:33:41 packer-provisioner-shell plugin: Opening /tmp/packer-shell597249244 for reading
2021/04/16 07:33:41 packer-provisioner-shell plugin: [INFO] 289 bytes written for 'uploadData'
2021/04/16 07:33:41 [INFO] 289 bytes written for 'uploadData'
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Starting remote scp process: scp -vt /tmp
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Started SCP session, beginning transfers...
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Copying input data into temporary file so we can read the length
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] scp: Uploading script_6833.sh: perms=C0644 size=289
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] SCP session complete, closing stdin pipe.
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Waiting for SSH session to complete.
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] scp stderr (length 31): Sink: C0644 289 script_6833.sh
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: chmod 0755 /tmp/script_6833.sh
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:41 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:41 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:41 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: chmod +x /tmp/script_6833.sh; PACKER_BUILDER_TYPE='vsphere-iso' PACKER_BUILD_NAME='vsphere-iso' PACKER_HTTP_ADDR='[redacted]:0' PACKER_HTTP_IP='[redacted]' PACKER_HTTP_PORT='0' /tmp/script_6833.sh
2021/04/16 07:33:42 [INFO] 0 bytes written for 'stdout'
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] 0 bytes written for 'stderr'
2021/04/16 07:33:42 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout'
2021/04/16 07:33:42 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr'
2021/04/16 07:33:42 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: rm -f /tmp/script_6833.sh
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [DEBUG] Opening new ssh session
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [DEBUG] starting remote command: rm -f
2021/04/16 07:33:42 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] RPC endpoint: Communicator ended with: 0
2021/04/16 07:33:42 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2021/04/16 07:33:42 [INFO] (telemetry) ending shell
==> vsphere-iso: Shutting down VM...
2021/04/16 07:33:43 packer-builder-vsphere-iso plugin: Waiting max 5m0s for shutdown to complete
==> vsphere-iso: Deleting Floppy drives...
==> vsphere-iso: Eject CD-ROM drives...
==> vsphere-iso: Deleting CD-ROM drives...
==> vsphere-iso: Convert VM into template...
==> vsphere-iso: Clear boot order...
2021/04/16 07:33:58 packer-builder-vsphere-iso plugin: Deleting CD disk: /tmp/packer663790441.iso
2021/04/16 07:33:58 [INFO] (telemetry) ending vsphere-iso
==> Wait completed after 7 minutes 32 seconds
==> Builds finished. The artifacts of successful builds are:
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact-count []string{"1"}
Build 'vsphere-iso' finished after 7 minutes 32 seconds.
==> Wait completed after 7 minutes 32 seconds
==> Builds finished. The artifacts of successful builds are:
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact []string{"0", "builder-id", "jetbrains.vsphere"}
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact []string{"0", "id", "RHEL8"}
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact []string{"0", "string", "RHEL8"}
--> vsphere-iso: RHEL8
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact []string{"0", "files-count", "0"}
2021/04/16 07:33:58 machine readable: vsphere-iso,artifact []string{"0", "end"}
2021/04/16 07:33:58 [INFO] (telemetry) Finalizing.
2021/04/16 07:33:58 waiting for all plugin processes to complete...
2021/04/16 07:33:58 /usr/bin/packer: plugin process exited
2021/04/16 07:33:58 /usr/bin/packer: plugin process exited
2021/04/16 07:33:58 /usr/bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment