Image definitions and terraform code supporting my Blog and Video demonstration.
The hyperVWindowsServer2025 directory contains the packer definition, which will:
- Configure hypervisor launch type to automatic
- Install Hyper-V role
- Enable enhanced session mode for Hyper V
- Automatically set mounted disks to offline
- Install SSHd
- Sysprep
You can run the
build.shscript to build the image.
The terraform directories won't work out the box, as i've removed a bunch of hardcoded variables. But they are here as a reference.
The base directory, will deploy the above VM image with the appropriate SKU. It'll also create a storage account with a container, and a SAS token which can be used to upload .vhd files to the container.
The range directory contains the code to deploy the above image, but with mounted disks based on the .vhd files in the expected storage account.