Created
September 21, 2021 07:45
-
-
Save codingarchitect/2e27d6ad4ee4457b748f7df080aefe42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021/09/21 07:39:34 [INFO] (telemetry) Starting provisioner powershell | |
==> oracle-oci: Provisioning with Powershell... | |
2021/09/21 07:39:34 packer-provisioner-powershell plugin: Found command: & C:\Windows\Panther\Generalize.cmd | |
2021/09/21 07:39:34 packer-provisioner-powershell plugin: Found command: while($true) { $imageState = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State | Select ImageState; if($imageState.ImageState -ne 'IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE') { Write-Output $imageState.ImageState; Start-Sleep -s 10 } else { break } } | |
==> oracle-oci: Provisioning with powershell script: /tmp/powershell-provisioner557910254 | |
2021/09/21 07:39:34 packer-provisioner-powershell plugin: Opening /tmp/powershell-provisioner557910254 for reading | |
2021/09/21 07:39:34 packer-provisioner-powershell plugin: Uploading env vars to c:/Windows/Temp/packer-ps-env-vars-61498a73-f1d0-2cad-3480-cb143477bb4c.ps1 | |
2021/09/21 07:39:34 packer-provisioner-powershell plugin: [INFO] 76 bytes written for 'uploadData' | |
2021/09/21 07:39:34 [INFO] 76 bytes written for 'uploadData' | |
2021/09/21 07:39:34 packer-builder-oracle-oci plugin: Uploading file to 'c:/Windows/Temp/packer-ps-env-vars-61498a73-f1d0-2cad-3480-cb143477bb4c.ps1' | |
2021/09/21 07:39:39 packer-provisioner-powershell plugin: [INFO] 311 bytes written for 'uploadData' | |
2021/09/21 07:39:39 [INFO] 311 bytes written for 'uploadData' | |
2021/09/21 07:39:39 packer-builder-oracle-oci plugin: Uploading file to 'c:/Windows/Temp/script-61498a73-6714-2afb-3bbc-52b28926f749.ps1' | |
2021/09/21 07:39:44 packer-builder-oracle-oci plugin: [INFO] starting remote command: powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-61498a73-f1d0-2cad-3480-cb143477bb4c.ps1; &'c:/Windows/Temp/script-61498a73-6714-2afb-3bbc-52b28926f749.ps1'; exit $LastExitCode }" | |
oracle-oci: | |
oracle-oci: C:\Users\opc>C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /quit /unattend:C:\Windows\Panther\unattend.xml | |
oracle-oci: | |
oracle-oci: C:\Users\opc>PowerShell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Panther\Post-Generalize.ps1 | |
oracle-oci: Transcript started, output file is C:\Windows\Panther\Post-Generalize.log | |
oracle-oci: Current CmdLine | |
oracle-oci: | |
oracle-oci: | |
oracle-oci: CmdLine : oobe\windeploy.exe | |
oracle-oci: PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\Setup | |
oracle-oci: PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System | |
oracle-oci: PSChildName : Setup | |
oracle-oci: PSDrive : HKLM | |
oracle-oci: PSProvider : Microsoft.PowerShell.Core\Registry | |
oracle-oci: | |
oracle-oci: Updating CmdLine | |
oracle-oci: New CmdLine | |
oracle-oci: CmdLine : C:\Windows\Panther\Specialize.cmd | |
oracle-oci: PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\Setup | |
oracle-oci: PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System | |
oracle-oci: PSChildName : Setup | |
oracle-oci: PSDrive : HKLM | |
oracle-oci: PSProvider : Microsoft.PowerShell.Core\Registry | |
oracle-oci: | |
oracle-oci: Transcript stopped, output file is C:\Windows\Panther\Post-Generalize.log | |
oracle-oci: | |
oracle-oci: | |
oracle-oci: | |
oracle-oci: C:\Users\opc>PowerShell.exe -ExecutionPolicy Unrestricted -Command "Start-Sleep -Seconds 20" | |
2021/09/21 07:41:04 packer-builder-oracle-oci plugin: [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-61498a73-f1d0-2cad-3480-cb143477bb4c.ps1; &'c:/Windows/Temp/script-61498a73-6714-2afb-3bbc-52b28926f749.ps1'; exit $LastExitCode }"' exited with code: 16001 | |
2021/09/21 07:41:04 packer-builder-oracle-oci plugin: [INFO] RPC endpoint: Communicator ended with: 16001 | |
2021/09/21 07:41:04 [INFO] 1131 bytes written for 'stdout' | |
2021/09/21 07:41:04 [INFO] 0 bytes written for 'stderr' | |
2021/09/21 07:41:04 [INFO] RPC client: Communicator ended with: 16001 | |
2021/09/21 07:41:04 [INFO] RPC endpoint: Communicator ended with: 16001 | |
2021/09/21 07:41:04 packer-provisioner-powershell plugin: [INFO] 1131 bytes written for 'stdout' | |
2021/09/21 07:41:04 packer-provisioner-powershell plugin: [INFO] 0 bytes written for 'stderr' | |
2021/09/21 07:41:04 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 16001 | |
2021/09/21 07:41:04 packer-provisioner-powershell plugin: c:/Windows/Temp/script-61498a73-6714-2afb-3bbc-52b28926f749.ps1 returned with exit code 16001 | |
2021/09/21 07:41:04 [INFO] (telemetry) ending powershell | |
==> oracle-oci: Provisioning step had errors: Running the cleanup provisioner, if present... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment