Advertisement
Guest User

Untitled

a guest
Jan 4th, 2021
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.70 KB | None | 0 0
  1. + 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
  2. 2021/01/04 09:43:09 [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  3. 2021/01/04 09:43:09 [DEBUG] Discovered plugin: windows-update = /bin/packer-provisioner-windows-update
  4. 2021/01/04 09:43:09 using external provisioners [windows-update]
  5. 2021/01/04 09:43:09 Checking 'PACKER_CONFIG' for a config file path
  6. 2021/01/04 09:43:09 'PACKER_CONFIG' not set; checking the default config file path
  7. 2021/01/04 09:43:09 Attempting to open config file: /root/.packerconfig
  8. 2021/01/04 09:43:09 [WARN] Config file doesn't exist: /root/.packerconfig
  9. 2021/01/04 09:43:09 Setting cache directory: /drone/src/packer_cache
  10. Running in background, not using a TTY
  11. 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
  12. 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-builder-vsphere-iso"}
  13. 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
  14. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  15. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Checking 'PACKER_CONFIG' for a config file path
  16. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: 'PACKER_CONFIG' not set; checking the default config file path
  17. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Attempting to open config file: /root/.packerconfig
  18. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  19. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Setting cache directory: /drone/src/packer_cache
  20. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: args: []string{"packer-builder-vsphere-iso"}
  21. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Plugin address: unix /tmp/packer-plugin858797447
  22. 2021/01/04 09:43:09 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin858797447
  23. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Waiting for connection...
  24. 2021/01/04 09:43:09 packer-builder-vsphere-iso plugin: Serving a plugin connection...
  25. 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer-provisioner-windows-update
  26. 2021/01/04 09:43:09 Starting plugin: /bin/packer-provisioner-windows-update []string{"/bin/packer-provisioner-windows-update"}
  27. 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer-provisioner-windows-update
  28. 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)
  29. 2021/01/04 09:43:09 Received unix RPC address for /bin/packer-provisioner-windows-update: addr is /tmp/packer-plugin379062130
  30. 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Plugin address: unix /tmp/packer-plugin379062130
  31. 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Waiting for connection...
  32. 2021/01/04 09:43:09 packer-provisioner-windows-update plugin: 2021/01/04 09:43:09 Serving a plugin connection...
  33. 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
  34. 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
  35. 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
  36. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  37. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Checking 'PACKER_CONFIG' for a config file path
  38. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: 'PACKER_CONFIG' not set; checking the default config file path
  39. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Attempting to open config file: /root/.packerconfig
  40. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  41. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Setting cache directory: /drone/src/packer_cache
  42. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: args: []string{"packer-provisioner-powershell"}
  43. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Plugin address: unix /tmp/packer-plugin843517350
  44. 2021/01/04 09:43:09 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin843517350
  45. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Waiting for connection...
  46. 2021/01/04 09:43:09 packer-provisioner-powershell plugin: Serving a plugin connection...
  47. 2021/01/04 09:43:09 Creating plugin client for path: /bin/packer
  48. 2021/01/04 09:43:09 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-powershell"}
  49. 2021/01/04 09:43:09 Waiting for RPC address for: /bin/packer
  50. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  51. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Checking 'PACKER_CONFIG' for a config file path
  52. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: 'PACKER_CONFIG' not set; checking the default config file path
  53. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Attempting to open config file: /root/.packerconfig
  54. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  55. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Setting cache directory: /drone/src/packer_cache
  56. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: args: []string{"packer-provisioner-powershell"}
  57. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Plugin address: unix /tmp/packer-plugin126410690
  58. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin126410690
  59. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Waiting for connection...
  60. 2021/01/04 09:43:10 packer-provisioner-powershell plugin: Serving a plugin connection...
  61. 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer-provisioner-windows-update
  62. 2021/01/04 09:43:10 Starting plugin: /bin/packer-provisioner-windows-update []string{"/bin/packer-provisioner-windows-update"}
  63. 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer-provisioner-windows-update
  64. 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)
  65. 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Plugin address: unix /tmp/packer-plugin278842767
  66. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer-provisioner-windows-update: addr is /tmp/packer-plugin278842767
  67. 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Waiting for connection...
  68. 2021/01/04 09:43:10 packer-provisioner-windows-update plugin: 2021/01/04 09:43:10 Serving a plugin connection...
  69. 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
  70. 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-provisioner-windows-restart"}
  71. 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
  72. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  73. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Checking 'PACKER_CONFIG' for a config file path
  74. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: 'PACKER_CONFIG' not set; checking the default config file path
  75. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Attempting to open config file: /root/.packerconfig
  76. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  77. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Setting cache directory: /drone/src/packer_cache
  78. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: args: []string{"packer-provisioner-windows-restart"}
  79. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Plugin address: unix /tmp/packer-plugin224073069
  80. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin224073069
  81. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Waiting for connection...
  82. 2021/01/04 09:43:10 packer-provisioner-windows-restart plugin: Serving a plugin connection...
  83. 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
  84. 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-shell-local"}
  85. 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
  86. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  87. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Checking 'PACKER_CONFIG' for a config file path
  88. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: 'PACKER_CONFIG' not set; checking the default config file path
  89. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Attempting to open config file: /root/.packerconfig
  90. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  91. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Setting cache directory: /drone/src/packer_cache
  92. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: args: []string{"packer-post-processor-shell-local"}
  93. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Plugin address: unix /tmp/packer-plugin899924519
  94. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Waiting for connection...
  95. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin899924519
  96. 2021/01/04 09:43:10 packer-post-processor-shell-local plugin: Serving a plugin connection...
  97. 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
  98. 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-vsphere"}
  99. 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
  100. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  101. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Checking 'PACKER_CONFIG' for a config file path
  102. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: 'PACKER_CONFIG' not set; checking the default config file path
  103. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Attempting to open config file: /root/.packerconfig
  104. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  105. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Setting cache directory: /drone/src/packer_cache
  106. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: args: []string{"packer-post-processor-vsphere"}
  107. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Plugin address: unix /tmp/packer-plugin793764417
  108. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Waiting for connection...
  109. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin793764417
  110. 2021/01/04 09:43:10 packer-post-processor-vsphere plugin: Serving a plugin connection...
  111. 2021/01/04 09:43:10 Creating plugin client for path: /bin/packer
  112. 2021/01/04 09:43:10 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-post-processor-vsphere-template"}
  113. 2021/01/04 09:43:10 Waiting for RPC address for: /bin/packer
  114. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: [INFO] Packer version: 1.6.6 [go1.15.6 linux amd64]
  115. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Checking 'PACKER_CONFIG' for a config file path
  116. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: 'PACKER_CONFIG' not set; checking the default config file path
  117. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Attempting to open config file: /root/.packerconfig
  118. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: [WARN] Config file doesn't exist: /root/.packerconfig
  119. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Setting cache directory: /drone/src/packer_cache
  120. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: args: []string{"packer-post-processor-vsphere-template"}
  121. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Plugin address: unix /tmp/packer-plugin592115736
  122. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Waiting for connection...
  123. 2021/01/04 09:43:10 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin592115736
  124. 2021/01/04 09:43:10 Preparing build: srv2019
  125. 2021/01/04 09:43:10 packer-post-processor-vsphere-template plugin: Serving a plugin connection...
  126. 2021/01/04 09:43:10 Build debug mode: false
  127. 2021/01/04 09:43:10 Force build: false
  128. 2021/01/04 09:43:10 On error: cleanup
  129. 2021/01/04 09:43:10 Waiting on builds to complete...
  130. 2021/01/04 09:43:10 Starting build run: srv2019
  131. srv2019: output will be in this color.
  132.  
  133. 2021/01/04 09:43:10 Running builder: vsphere-iso
  134. 2021/01/04 09:43:10 [INFO] (telemetry) Starting builder vsphere-iso
  135. 2021/01/04 09:43:10 packer-builder-vsphere-iso plugin: No CD files specified. CD disk will not be made.
  136. ==> srv2019: File /drone/src/packer_cache/0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso already uploaded; continuing
  137. ==> srv2019: File [Datastore02.SSD] packer_cache//0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso already exists; skipping upload.
  138. ==> srv2019: Creating VM...
  139. ==> srv2019: Customizing hardware...
  140. ==> srv2019: Mounting ISO images...
  141. 2021/01/04 09:43:10 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
  142. 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: ISO path not identified as a Content Library path
  143. 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: Using [Datastore02.SSD] packer_cache//0de8309e4bb7d1ed78e7348ba1ea0e27fd51246c.iso as the datastore path
  144. 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'
  145. 2021/01/04 09:43:11 packer-builder-vsphere-iso plugin: Check if ISO path is a Content Library path
  146. 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: ISO path identified as a Content Library path
  147. 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: Finding the equivalent datastore path for the Content Library ISO file path
  148. 2021/01/04 09:43:12 packer-builder-vsphere-iso plugin: [WARN] Couldn't find datastore name for library ISO-files
  149. 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
  150. 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'
  151. ==> srv2019: Destroying VM...
  152. 2021/01/04 09:43:12 [INFO] (telemetry) ending vsphere-iso
  153. ==> Wait completed after 2 seconds 110 milliseconds
  154. 2021/01/04 09:43:12 machine readable: error-count []string{"1"}
  155. ==> Some builds didn't complete successfully and had errors:
  156. 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'."}
  157. ==> Builds finished but no artifacts were created.
  158. 2021/01/04 09:43:12 [INFO] (telemetry) Finalizing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement