Packer build halts at uploading PowerShell script on Windows Google Compute Instance
12 views
Skip to first unread message
D Bajaj
unread,
Mar 2, 2023, 1:08:13 PM3/2/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
I am trying to build Windows custom image using Google compute instance using packer. The build exits with following error:
==> googlecompute: Provisioning with powershell script: /tmp/powershell-provisioner2323994912 googlecompute: Downloading Qualys Windows Agent ==> googlecompute: C:\packertemp\qualys.ps1 : System.InvalidOperationException: This command cannot be run due to the error: The file or ==> googlecompute: directory is corrupted and unreadable. ==> googlecompute: at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) ==> googlecompute: At C:\Windows\Temp\script-6400b624-a2a1-b240-5cfc-d2032ae6f885.ps1:1 char:1 ==> googlecompute: + c:\packertemp\qualys.ps1 ==> googlecompute: + ~~~~~~~~~~~~~~~~~~~~~~~~ ==> googlecompute: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException ==> googlecompute: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,qualys.ps1