Writing a Blueprint for Windows VM Automation
Table of Contents
Why Windows VMs in a Blueprint?
CE Prerequisites
Enable NCM Self-Service on CE
Preparing the Windows Image
Step 1 β Download VirtIO ISO
Step 2 β Install Windows with VirtIO
Step 3 β Install Cloudbase-Init
Step 4 β Configure Cloudbase-Init
Step 5 β Sysprep and Shutdown
Sysprep and Cloudbase-Init Primer
Blueprint Structure for a Windows VM
Writing the Blueprint β Step by Step
Navigate to NCM Self-Service
Define the Service
Configure the Substrate
Guest Customization Script (Sysprep XML injected via config drive)
Credentials and WinRM Configuration
Define Credentials
Enable WinRM in the Create Action
Install Tasks via PowerShell
Task: Install IIS
Task: Configure IIS Site
Task: Set VM Output Variables
Day 2 Actions for Windows VMs
Action: Windows Update
Action: Join Domain
Action: Snapshot Before Patch
Using calm-dsl to Define the Blueprint as Code
Install calm-dsl
Windows VM Blueprint in Python
Push Blueprint to Prism Central
Publishing to the Marketplace
Troubleshooting Common Windows Blueprint Issues
Symptom
Likely Cause
Fix
Next Steps
PreviousBlueprint Syntax and Best PracticesNextBuilding a Windows Golden Image with HashiCorp Packer
Last updated