Azure Virtual Desktop | Custom image templates | Failing on Language scripts reboots
- Dominant language
- PowerShell
- Stars
- 524
- Forks
- 610
- PR merge metrics
- No merged PRs in 30d
Description
Hi Everyone + @murajput
I cannot finish an image build from _Azure Virtual Desktop | Custom image templates _
I have noticed that if I remove the Language scripts the build finishes fine.
In the json file I can see that a reboot is added automatically after the language scripts.
Is there a way out of this?
See attached part of that customization.log
*PACKER OUT azure-arm: *** Starting AVD AIB CUSTOMIZER PHASE: Set default Language ***
*PACKER OUT azure-arm: *** AVD AIB CUSTOMIZER PHASE : Set default language - Language pack for en-GB is installed already***
*PACKER ERR 2023/07/03 16:53:52 packer-plugin-azure plugin: 2023/07/03 16:53:52 [INFO] command 'powershell -executionpolicy bypass -file "C:/Windows/Temp/packer-elevated-shell-64a2fd16-3116-14e7-f37b-e7c4e8263c2e.ps1"' exited with code: 0
*PACKER OUT azure-arm:
*PACKER ERR 2023/07/03 16:53:52 packer-plugin-azure plugin: 2023/07/03 16:53:52 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER OUT azure-arm: Language Language Packs Language Features
*PACKER ERR 2023/07/03 16:53:52 [INFO] 0 bytes written for 'stderr'
*PACKER OUT azure-arm: -------- -------------- -----------------
*PACKER OUT azure-arm: en-GB LpCab BasicTyping, Handwriting, Speech, TextToSpeech, OCR
*PACKER ERR 2023/07/03 16:53:52 [INFO] 896 bytes written for 'stdout'
*PACKER OUT azure-arm: *** AVD AIB CUSTOMIZER PHASE: Set default Language - English (United Kingdom) with en-GB has been set as the default System Preferred UI Language***
*PACKER ERR 2023/07/03 16:53:52 [INFO] RPC client: Communicator ended with: 0
*PACKER OUT azure-arm: *** AVD AIB CUSTOMIZER PHASE: Set default Language - English (United Kingdom) with en-GB has been set as the default region***
*PACKER ERR 2023/07/03 16:53:52 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER OUT azure-arm: *** AVD AIB CUSTOMIZER PHASE: Set default Language - Exit Code: ***
*PACKER ERR 2023/07/03 16:53:52 packer-provisioner-powershell plugin: [INFO] 896 bytes written for 'stdout'
*PACKER OUT azure-arm: *** AVD AIB CUSTOMIZER PHASE: Set default Language - Time taken: 00:00:05.1241766 ***
*PACKER ERR 2023/07/03 16:53:52 packer-provisioner-powershell plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:52 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:52 packer-provisioner-powershell plugin: c:/Windows/Temp/script-64a2f759-5151-9e8c-25c5-f4ebc1202851.ps1 returned with exit code 0
*PACKER ERR 2023/07/03 16:53:52 packer-provisioner-powershell plugin: [INFO] 511 bytes written for 'uploadData'
*PACKER ERR 2023/07/03 16:53:52 [INFO] 511 bytes written for 'uploadData'
*PACKER ERR 2023/07/03 16:53:52 packer-plugin-azure plugin: 2023/07/03 16:53:52 Uploading file to 'c:/Windows/Temp/packer-cleanup-64a2f759-dbd7-02c3-d00a-af14dd44064b.ps1'
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [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-64a2f759-786c-ef1f-6697-062aaaa52167.ps1; &'c:/Windows/Temp/packer-cleanup-64a2f759-dbd7-02c3-d00a-af14dd44064b.ps1'; exit $LastExitCode }"
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [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-64a2f759-786c-ef1f-6697-062aaaa52167.ps1; &'c:/Windows/Temp/packer-cleanup-64a2f759-dbd7-02c3-d00a-af14dd44064b.ps1'; exit $LastExitCode }"' exited with code: 0
*PACKER OUT ==> azure-arm: Restarting Machine
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:54 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:54 [INFO] RPC client: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-powershell plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-powershell plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:54 [INFO] (telemetry) ending powershell
*PACKER ERR 2023/07/03 16:53:54 [INFO] (telemetry) Starting provisioner windows-restart
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-powershell plugin: [INFO] RPC client: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [INFO] starting remote command: shutdown /r /f /t 0 /c "packer restart"
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [INFO] command 'shutdown /r /f /t 0 /c "packer restart"' exited with code: 0
*PACKER OUT ==> azure-arm: Waiting for machine to restart...
*PACKER ERR 2023/07/03 16:53:54 packer-plugin-azure plugin: 2023/07/03 16:53:54 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:54 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:54 [INFO] RPC client: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 [INFO] RPC endpoint: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-windows-restart plugin: [INFO] RPC client: Communicator ended with: 0
*PACKER ERR 2023/07/03 16:53:54 packer-provisioner-windows-restart plugin: Check if machine is rebooting...
*PACKER ERR 2023/07/03 16:53:55 packer-plugin-azure plugin: 2023/07/03 16:53:55 [INFO] starting remote command: shutdown /r /f /t 60 /c "packer restart test"
**_### *PACKER ERR 2023/07/03 16:53:55 packer-plugin-azure plugin: 2023/07/03 16:53:55 [INFO] command 'shutdown /r /f /t 60 /c "packer restart test"' exited with code: 1115
*PACKER OUT ==> azure-arm: A system shutdown is in progress.(1115)
*PACKER ERR 2023/07/03 16:53:55 packer-plugin-azure plugin: 2023/07/03 16:53:55 [INFO] RPC endpoint: Communicator ended with: 1115
*PACKER ERR 2023/07/03 16:53:55 [INFO] 40 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:55 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:55 [INFO] RPC client: Communicator ended with: 1115
*PACKER ERR 2023/07/03 16:53:55 [INFO] RPC endpoint: Communicator ended with: 1115
*PACKER ERR 2023/07/03 16:53:55 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:53:55 packer-provisioner-windows-restart plugin: [INFO] 40 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:53:55 packer-provisioner-windows-restart plugin: [INFO] RPC client: Communicator ended with: 1115
*PACKER ERR 2023/07/03 16:53:55 packer-provisioner-windows-restart plugin: Reboot already in progress, waiting...
*PACKER ERR 2023/07/03 16:54:05 packer-provisioner-windows-restart plugin: Check if machine is rebooting..._**
*PACKER ERR 2023/07/03 16:54:06 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:06 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:06 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:06 packer-provisioner-windows-restart plugin: Waiting for machine to reboot with timeout: 5m0s
PACKER ERR 2023/07/03 16:54:06 packer-provisioner-windows-restart plugin: Waiting for machine to become available...
*PACKER ERR 2023/07/03 16:54:06 packer-provisioner-windows-restart plugin: Checking that communicator is connected with: 'powershell.exe -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQAgAD0AIAAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwA7AGUAYwBoAG8AIAAoACIAewAwAH0AIAByAGUAcwB0AGEAcgB0AGUAZAAuACIAIAAtAGYAIABbAFMAeQBzAHQAZQBtAC4ATgBlAHQALgBEAG4AcwBdADoAOgBHAGUAdABIAG8AcwB0AE4AYQBtAGUAKAApACkA'
*PACKER ERR 2023/07/03 16:54:06 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:12 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:12 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:12 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:12 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:12 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:18 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:18 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:18 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:18 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:18 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:24 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:24 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:24 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:24 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:24 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:30 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:30 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:30 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:30 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:30 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:36 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:36 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:36 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:36 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:36 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:42 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:42 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:42 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:42 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:42 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:48 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:48 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:48 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:48 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:48 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:54 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:54 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:54:54 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:54:54 packer-provisioner-windows-restart plugin: echo didn't succeed; retrying...
*PACKER ERR 2023/07/03 16:54:54 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:55:00 [INFO] 0 bytes written for 'stdout'
*PACKER ERR 2023/07/03 16:55:00 [INFO] 0 bytes written for 'stderr'
*PACKER ERR 2023/07/03 16:55:00 packer-provisioner-windows-restart plugin: [INFO] 0 bytes written for 'stdout'
[aed01
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.