Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + packer build -on-error=cleanup -var-file=packer/variables.vsphere.json -var vm_name=aa89290db0-$DRONE_BUILD_NUMBER -var vm_guestos=server2019 -var repo_username=${REPO_USERNAME} -var repo_password=${REPO_PASSWORD} -var vsphere_password=${VSPHERE_PASSWORD} -var winrm_password=${WINRM_PASSWORD} packer/windowsserver2019.json
- 2021/01/04 09:43:09 [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:09 [DEBUG] Discovered plugin: windows-update = /bin/packer-provisioner-windows-update
- 2021/01/04 09:43:09 using external provisioners [windows-update]
- 2021/01/04 09:43:09 Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:09 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:09 Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:09 [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:09 Setting cache directory: /drone/src/packer_cache
- Running in background, not using a TTY
- 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-builder-vsphere-iso"}
- 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: args: []string{"packer-builder-vsphere-iso"}
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Plugin address: unix /tmp/packer-plugin858797447
- 2021/01/04 09:43:09 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin858797447
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Waiting for connection...
- 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Serving a plugin connection...
- 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer-provisioner-windows-update
- 2021/01/04 09:43:09 Starting plugin: /bin/packer-provisioner-windows-update []string{"/bin/packer-provisioner-windows-update"}
- 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer-provisioner-windows-update
- 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Starting packer-provisioner-windows-update (version 0.10.1; commit ad602190a6581b956aed38e3a84ba1ddbf5aad98; date 2020-08-25T17:14:00Z)
- 2021/01/04 09:43:09 Received unix RPC address for /bin/packer-provisioner-windows-update: addr is /tmp/packer-plugin379062130
- 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Plugin address: unix /tmp/packer-plugin379062130
- 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Waiting for connection...
- 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Serving a plugin connection...
- 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
- 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: args: []string{"packer-provisioner-powershell"}
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Plugin address: unix /tmp/packer-plugin843517350
- 2021/01/04 09:43:09 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin843517350
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Waiting for connection...
- 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Serving a plugin connection...
- 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
- 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: args: []string{"packer-provisioner-powershell"}
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Plugin address: unix /tmp/packer-plugin126410690
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin126410690
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Waiting for connection...
- 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Serving a plugin connection...
- 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer-provisioner-windows-update
- 2021/01/04 09:43:10 Starting plugin: /bin/packer-provisioner-windows-update []string{"/bin/packer-provisioner-windows-update"}
- 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer-provisioner-windows-update
- 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Starting packer-provisioner-windows-update (version 0.10.1; commit ad602190a6581b956aed38e3a84ba1ddbf5aad98; date 2020-08-25T17:14:00Z)
- 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Plugin address: unix /tmp/packer-plugin278842767
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer-provisioner-windows-update: addr is /tmp/packer-plugin278842767
- 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Waiting for connection...
- 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Serving a plugin connection...
- 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-windows-restart"}
- 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: args: []string{"packer-provisioner-windows-restart"}
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Plugin address: unix /tmp/packer-plugin224073069
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin224073069
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Waiting for connection...
- 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Serving a plugin connection...
- 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-shell-local"}
- 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: args: []string{"packer-post-processor-shell-local"}
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Plugin address: unix /tmp/packer-plugin899924519
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Waiting for connection...
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin899924519
- 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Serving a plugin connection...
- 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-vsphere"}
- 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: args: []string{"packer-post-processor-vsphere"}
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Plugin address: unix /tmp/packer-plugin793764417
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Waiting for connection...
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin793764417
- 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Serving a plugin connection...
- 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
- 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-vsphere-template"}
- 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Checking 'PACKER_CONFIG' for a config file path
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: 'PACKER_CONFIG' not set; checking the default config file path
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Attempting to open config file: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: [WARN] Config file doesn't exist: /root/.packerconfig
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Setting cache directory: /drone/src/packer_cache
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: args: []string{"packer-post-processor-vsphere-template"}
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Plugin address: unix /tmp/packer-plugin592115736
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Waiting for connection...
- 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin592115736
- 2021/01/04 09:43:10 Preparing build: srv2019
- 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Serving a plugin connection...
- 2021/01/04 09:43:10 Build debug mode: false
- 2021/01/04 09:43:10 Force build: false
- 2021/01/04 09:43:10 On error: cleanup
- 2021/01/04 09:43:10 Waiting on builds to complete...
- 2021/01/04 09:43:10 Starting build run: srv2019
- srv2019: output will be in this color.
- 2021/01/04 09:43:10 Running builder: vsphere-iso
- 2021/01/04 09:43:10 [INFO] (telemetry) Starting builder vsphere-iso
- 2021/01/04 09:43:10 packer-builder-vsphere-iso plugin: No CD files specified. CD disk will not be made.
- ==> srv2019: File /drone/src/packer_cache/0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso already uploaded; continuing
- ==> srv2019: File [Datastore02.SSD] packer_cache//0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso already exists; skipping upload.
- ==> srv2019: Creating VM...
- ==> srv2019: Customizing hardware...
- ==> srv2019: Mounting ISO images...
- 2021/01/04 09:43:10 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
- 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: ISO path not identified as a Content Library path
- 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: Using [Datastore02.SSD] packer_cache//0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso as the datastore path
- 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: Creating CD-ROM on controller '&{{{} 200 0xc000781460 <nil> <nil> <nil> 0 <nil>} 0 []}' with iso '[Datastore02.SSD] packer_cache//0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso'
- 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
- 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: ISO path identified as a Content Library path
- 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: Finding the equivalent datastore path for the Content Library ISO file path
- 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: [WARN] Couldn't find datastore name for library ISO-files
- 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: Using ISO-files/VMware-tools-windows-11.2.1-17243207/VMware-tools-windows-11.2.1-17243207.iso as the datastore path
- 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: Creating CD-ROM on controller '&{{{} 200 0xc000ca64c0 <nil> <nil> <nil> 0 <nil>} 0 [3000]}' with iso 'ISO-files/VMware-tools-windows-11.2.1-17243207/VMware-tools-windows-11.2.1-17243207.iso'
- ==> srv2019: Destroying VM...
- 2021/01/04 09:43:12 [INFO] (telemetry) ending vsphere-iso
- ==> Wait completed after 2 seconds 110 milliseconds
- 2021/01/04 09:43:12 machine readable: error-count []string{"1"}
- ==> Some builds didn't complete successfully and had errors:
- 2021/01/04 09:43:12 machine readable: srv2019,error []string{"error mounting an image 'ISO-files/VMware-tools-windows-11.2.1-17243207/VMware-tools-windows-11.2.1-17243207.iso': Invalid datastore path 'ISO-files/VMware-tools-windows-11.2.1-17243207/VMware-tools-windows-11.2.1-17243207.iso'."}
- ==> Builds finished but no artifacts were created.
- 2021/01/04 09:43:12 [INFO] (telemetry) Finalizing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement