Skip to content

Commit 196a3f8

Browse files
committed
Mike's updates
1 parent 45ec828 commit 196a3f8

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

articles/dev-box/how-to-troubleshoot-custom-image-validation.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@ Common network-related causes of provisioning failures include:
149149
| Hyper-V generation mismatch | Some deployments might succeed depending on VM size and boot mode | Dev Box requires Generation 2 images |
150150

151151
## Validate your Packer configuration against a known good reference example
152+
153+
<!-- carmada-dev/demo-images links pinned to commit ea786c6 (2025-10-22). Verify and update SHA if referencing newer repo content. -->
154+
152155
The [carmada-dev/demo-images](https://github.com/carmada-dev/demo-images) repository provides a production-ready reference implementation for building Dev Box images with Packer. Compare your configuration against this example. For example:
153156

154-
**Trusted Launch configuration**[_packer/source.pkr.hcl](https://github.com/carmada-dev/demo-images/blob/main/_packer/source.pkr.hcl):
157+
**Trusted Launch configuration**[_packer/source.pkr.hcl](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/_packer/source.pkr.hcl):
155158

156159
```
157160
source "azure-arm" "vm" {
@@ -164,7 +167,7 @@ source "azure-arm" "vm" {
164167
}
165168
```
166169

167-
**Image definition creation with Trusted Launch**[build.sh](https://github.com/carmada-dev/demo-images/blob/main/build.sh#L55-L60):
170+
**Image definition creation with Trusted Launch**[build.sh](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/build.sh#L55-L60):
168171

169172
```
170173
az sig image-definition create \
@@ -173,26 +176,26 @@ az sig image-definition create \
173176
--features 'IsHibernateSupported=true SecurityType=TrustedLaunch'
174177
```
175178

176-
**Sysprep execution**[_scripts/core/Generalize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/main/_scripts/core/Generalize-VM.ps1#L128-L129):
179+
**Sysprep execution**[_scripts/core/Generalize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/_scripts/core/Generalize-VM.ps1#L128-L129):
177180
```
178181
& $env:SystemRoot\System32\Sysprep\Sysprep.exe /generalize /oobe /mode:vm /quiet /quit
179182
```
180183

181-
**Performance optimizations**[_scripts/core/Generalize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/main/_scripts/core/Generalize-VM.ps1#L43-L65):
184+
**Performance optimizations**[_scripts/core/Generalize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/_scripts/core/Generalize-VM.ps1#L43-L65):
182185

183186
- Disables reserved storage (DISM /Set-ReservedStorageState /State:Disabled)
184-
- Runs component store cleanup (DISM /Cleanup-Image /CheckHealth)
187+
- Runs component store cleanup and health check (DISM /Cleanup-Image /CheckHealth)
185188
- Runs disk defragmentation (defrag c: /FreespaceConsolidate)
186189
- Runs boot optimization (defrag c: /BootOptimize)
187190

188-
**Hibernate/Virtual Machine Platform support**[_scripts/core/Initialize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/main/_scripts/core/Initialize-VM.ps1#L152-L161):
191+
**Hibernate/Virtual Machine Platform support**[_scripts/core/Initialize-VM.ps1](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/_scripts/core/Initialize-VM.ps1#L152-L161):
189192
```
190193
Get-WindowsOptionalFeature -Online `
191194
| Where-Object { $_.FeatureName -like "*VirtualMachinePlatform*" -and $_.State -ne "Enabled" } `
192195
| Enable-WindowsOptionalFeature -Online -All -NoRestart
193196
```
194197

195-
**Build orchestration**[_packer/build.pkr.hcl](https://github.com/carmada-dev/demo-images/blob/main/_packer/build.pkr.hcl) shows the complete provisioner sequence including Windows Updates, feature installation, package installation, and finalization.
198+
**Build orchestration**[_packer/build.pkr.hcl](https://github.com/carmada-dev/demo-images/blob/ea786c67b65c9c4dc32cc0c2c40fe010d2268ea4/_packer/build.pkr.hcl) shows the complete provisioner sequence including Windows Updates, feature installation, package installation, and finalization.
196199

197200
## Troubleshooting: Known issues and solutions
198201

@@ -269,7 +272,7 @@ The image is not visible to Dev Box for one or more of the following reasons:
269272

270273
- **Image not replicated to the Dev Center's region:** The image was built and published to a region different from where the Dev Center is located. Dev Box requires the image to be available in the same region as the Dev Center (or the network connection's region for dev box pools).
271274

272-
- **Image definition doesn't meet requirements:** The image definition is missing required metadata (Trusted Launch security type, Gen2, Generalized) and is filtered out silently rather than showing an error.
275+
- **Image not replicated to the network connection's region (where dev boxes are created):** The image definition is missing required metadata (Trusted Launch security type, Gen2, Generalized) and is filtered out silently rather than showing an error.
273276

274277
**Solution:**
275278

0 commit comments

Comments
 (0)