Skip to content

Instantly share code, notes, and snippets.

@knabben
Created April 29, 2022 18:04
Show Gist options
  • Save knabben/fd01ceb2b6b62f685ca8398564cf9ebb to your computer and use it in GitHub Desktop.
Save knabben/fd01ceb2b6b62f685ca8398564cf9ebb to your computer and use it in GitHub Desktop.
packer
vsphere: PLAY RECAP *********************************************************************
vsphere: default : ok=60 changed=54 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0
vsphere:
2022/04/29 16:44:15 [INFO] (telemetry) ending ansible
2022/04/29 16:44:15 [INFO] (telemetry) Starting provisioner windows-restart
==> vsphere: Restarting Machine
2022/04/29 16:44:15 packer-builder-vsphere-iso plugin: [INFO] starting remote command: powershell "& {(Get-WmiObject win32_operatingsystem).LastBootUpTime > C:\ProgramData\lastboot.txt; Restart-Computer -force}"
2022/04/29 16:44:17 packer-builder-vsphere-iso plugin: [INFO] command 'powershell "& {(Get-WmiObject win32_operatingsystem).LastBootUpTime > C:\ProgramData\lastboot.txt; Restart-Computer -force}"' exited with code: 0
2022/04/29 16:44:17 [INFO] 0 bytes written for 'stderr'
2022/04/29 16:44:17 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 0
2022/04/29 16:44:17 [INFO] 0 bytes written for 'stdout'
2022/04/29 16:44:17 [INFO] RPC client: Communicator ended with: 0
2022/04/29 16:44:17 [INFO] RPC endpoint: Communicator ended with: 0
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] RPC client: Communicator ended with: 0
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: Check if machine is rebooting...
==> vsphere: Waiting for machine to restart...
2022/04/29 16:44:17 packer-builder-vsphere-iso plugin: [INFO] starting remote command: shutdown /r /f /t 60 /c "packer restart test"
2022/04/29 16:44:17 packer-builder-vsphere-iso plugin: [INFO] command 'shutdown /r /f /t 60 /c "packer restart test"' exited with code: 1115
2022/04/29 16:44:17 packer-builder-vsphere-iso plugin: [INFO] RPC endpoint: Communicator ended with: 1115
2022/04/29 16:44:17 [INFO] 0 bytes written for 'stdout'
2022/04/29 16:44:17 [INFO] 40 bytes written for 'stderr'
2022/04/29 16:44:17 [INFO] RPC client: Communicator ended with: 1115
2022/04/29 16:44:17 [INFO] RPC endpoint: Communicator ended with: 1115
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] 40 bytes written for 'stderr'
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: [INFO] RPC client: Communicator ended with: 1115
2022/04/29 16:44:17 packer-provisioner-windows-restart plugin: Reboot already in progress, waiting...
==> vsphere: A system shutdown is in progress.(1115)
2022/04/29 16:44:27 packer-provisioner-windows-restart plugin: Check if machine is rebooting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment