Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
806e70a
Add the SCVMM Lab on AWS blueprint
mbomb67 Nov 2, 2026
7931d70
Point the SCVMM lab tiers at the Windows Server 2025 build with all e…
mbomb67 Nov 2, 2026
0d7e356
Retry the domain join rename when the domain controller is busy
mbomb67 Nov 2, 2026
beacbf3
Rename the guest before joining the domain
mbomb67 Nov 2, 2026
994824a
Upload long lab scripts in pieces instead of one WinRM command line
mbomb67 Nov 2, 2026
9bed053
Install the hosts' Windows features on every host at once
mbomb67 Nov 2, 2026
634fbd9
Install SQL Server from the Developer ISO instead of the SSEI bootstr…
mbomb67 Nov 2, 2026
6f65b75
Download the SCVMM media from Microsoft by default
mbomb67 Nov 2, 2026
30803d0
Delete a server's DNS records with its computer object, and check lab…
mbomb67 Nov 3, 2026
f9c4095
Create the lab cluster without needing its name to resolve, and wait …
mbomb67 Nov 3, 2026
aba40d3
Retry the local cluster after New-Cluster fails, and destroy the lab …
mbomb67 Nov 3, 2026
1699835
Say when the teardown found no cluster instead of claiming it destroy…
mbomb67 Nov 3, 2026
be5a04c
Point every Create Hyper-V Cluster cmdlet at this host, not the clust…
mbomb67 Nov 3, 2026
498fa84
Look up the lab cluster in SCVMM by listing clusters, not Get-SCVMHos…
mbomb67 Nov 3, 2026
3a1011b
Give the SCVMM Run As account DOMAIN\user, not user@domain
mbomb67 Nov 3, 2026
05114de
Accept an SCVMM add that reports an error when every node is managed …
mbomb67 Nov 3, 2026
2a383b1
Record what the SCVMM lab has run live
mbomb67 Nov 3, 2026
dfb2a43
Move the core cluster group to the first host before limiting IP owners
mbomb67 Nov 4, 2026
f3cd870
Report why Remove-Cluster failed at teardown, not only its generic me…
mbomb67 Nov 4, 2026
499aef7
Record the uninterrupted SCVMM lab build and its teardown
mbomb67 Nov 4, 2026
08b98ec
Delete the lab cluster's DNS record and its protected computer object…
mbomb67 Nov 4, 2026
ff579d1
Say that Remove-Cluster removes the cluster's DNS record itself
mbomb67 Nov 4, 2026
65e2049
Merge remote-tracking branch 'origin/main' into scvmm-aws-lab
mbomb67 Nov 4, 2026
94d0f64
Merge main and regenerate the catalog
mbomb67 Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions CATALOG.md

Large diffs are not rendered by default.

224 changes: 224 additions & 0 deletions blueprints/BP-9zp8udce/BP-9zp8udce_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
{
"any_group_can_deploy": false,
"auto_historical_resources": false,
"deployment_items": [
{
"all_environments_enabled": true,
"allowed_os_families": [
"Windows"
],
"applications": null,
"deploy_seq": 1,
"description": "Windows Server 2025 Hyper-V hosts; order two or more. Use an instance type AWS lists as supporting nested virtualization (for example m8i, c8i, r8i or m7i sizes) or a .metal size.",
"environment_selection_orchestration": null,
"execute_in_parallel": true,
"hostname_template": "hvlab-00X",
"id": "BDI-wctopceu",
"name": "Hyper-V Hosts",
"os_build": {
"href": "/api/v3/cmp/osBuilds/OSB-bocl2o1o/",
"title": "Windows Server 2025"
},
"rate": null,
"restrict_applications": false,
"show_on_order_form": true,
"tier_type": "server"
},
{
"all_environments_enabled": true,
"allowed_os_families": [
"Windows"
],
"applications": null,
"deploy_seq": 2,
"description": "Windows Server 2025 SCVMM management server; order one.",
"environment_selection_orchestration": null,
"execute_in_parallel": false,
"hostname_template": "vmmlab-00X",
"id": "BDI-olzewnbv",
"name": "SCVMM Server",
"os_build": {
"href": "/api/v3/cmp/osBuilds/OSB-bocl2o1o/",
"title": "Windows Server 2025"
},
"rate": null,
"restrict_applications": false,
"show_on_order_form": true,
"tier_type": "server"
},
{
"action_name": "Prepare SCVMM Lab on AWS",
"continue_on_failure": false,
"dependencies": {
"hook": "plugins/OHK-q6fb9833"
},
"deploy_seq": 3,
"description": "Turns on nested virtualization and adds a cluster IP address on each host, and attaches the storage volume to the SCVMM server and shares it to the hosts over iSCSI.",
"enabled": true,
"execute_in_parallel": false,
"id": "BDI-pbj83dx6",
"name": "Prepare SCVMM Lab on AWS",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "plugin"
},
{
"action_name": "Install SCVMM",
"continue_on_failure": false,
"dependencies": {
"hook": "plugins/OHK-8f9o1496"
},
"deploy_seq": 4,
"description": "Installs SQL Server Developer, the Windows ADK and SCVMM on the SCVMM server, while the hosts are configured.",
"enabled": true,
"execute_in_parallel": true,
"id": "BDI-1ezqmxtt",
"name": "Install SCVMM",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "plugin"
},
{
"action_name": "Configure Hyper-V Hosts",
"continue_on_failure": false,
"dependencies": {
"hook": "plugins/OHK-8ioy2cbi"
},
"deploy_seq": 5,
"description": "Installs Hyper-V and Failover Clustering on the hosts, connects them to the iSCSI disks and creates the NAT switch.",
"enabled": true,
"execute_in_parallel": false,
"id": "BDI-g70u7vc5",
"name": "Configure Hyper-V Hosts",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "plugin"
},
{
"action_name": "Create Hyper-V Cluster",
"continue_on_failure": false,
"dependencies": {
"hook": "plugins/OHK-77f19kly"
},
"deploy_seq": 6,
"description": "Creates the failover cluster with one IP address per host, a cluster shared volume and a disk witness.",
"enabled": true,
"execute_in_parallel": false,
"id": "BDI-x24qf0f1",
"name": "Create Hyper-V Cluster",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "plugin"
},
{
"action_name": "Add Hyper-V Cluster to SCVMM",
"continue_on_failure": false,
"dependencies": {
"hook": "plugins/OHK-ive3ka22"
},
"deploy_seq": 7,
"description": "Adds the cluster to SCVMM under All Hosts with a Run As account for the domain service account.",
"enabled": true,
"execute_in_parallel": false,
"id": "BDI-eotua3t6",
"name": "Add Hyper-V Cluster to SCVMM",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "plugin"
}
],
"deployment_permissions": [],
"description": "Builds an SCVMM 2025 test lab on AWS: two or more nested-virtualization Hyper-V hosts in a failover cluster with iSCSI shared storage, and an SCVMM server that manages the cluster, all joined to an existing domain.",
"favorited": false,
"id": "BP-9zp8udce",
"is_orderable": true,
"labels": [],
"last_updated": "2026-11-02",
"management_actions": [],
"metadata_version": "2026.1.0",
"name": "SCVMM Lab on AWS",
"parameters": [
{
"allow_multiple": false,
"available_all_servers": false,
"constraints": "Unconstrained",
"description": "Where the SCVMM 2025 setup zip comes from: Microsoft's Evaluation Center link by default, or a File Archives reference (archive/file[@version]) for servers without internet access, pinned as this parameter's only option.",
"destination": "Resource",
"field_dependency_controlling_set": [],
"field_dependency_dependent_set": [],
"global_options": [],
"id": "CF-0374eazp",
"label": "SCVMM Setup Media",
"name": "scvmm_media",
"options": [
"https://go.microsoft.com/fwlink/?linkid=2292412"
],
"placeholder": null,
"relevant_osfamilies": [],
"required": true,
"show_as_attribute": true,
"show_on_servers": false,
"type": "STR",
"value_pattern_string": null
},
{
"allow_multiple": false,
"available_all_servers": false,
"constraints": "Unconstrained",
"description": "Size of the gp3 volume on the SCVMM server that holds the cluster's iSCSI disks, setup downloads and the VMM library, pinned as this parameter's only option.",
"destination": "Resource",
"field_dependency_controlling_set": [],
"field_dependency_dependent_set": [],
"global_options": [],
"id": "CF-m80lzl6h",
"label": "Lab Storage (GB)",
"name": "scvmm_lab_storage_gb",
"options": [
250
],
"placeholder": null,
"relevant_osfamilies": [],
"required": true,
"show_as_attribute": true,
"show_on_servers": false,
"type": "INT",
"value_pattern_string": null
}
],
"resource_name_template": "scvmm-lab-00X",
"resource_type": {
"icon": "fas fa-server",
"internal_only": false,
"label": "SCVMM Lab",
"lifecycle": "ACTIVE",
"list_view_columns": [],
"name": "scvmm_lab",
"plural_label": "SCVMM Labs"
},
"sequence": 0,
"show_recipient_field_on_order_form": false,
"teardown_items": [
{
"action_name": "Remove Hyper-V Cluster Object",
"continue_on_failure": true,
"dependencies": {
"hook": "plugins/OHK-kzb6pzzu"
},
"deploy_seq": -1,
"description": "Destroys the cluster from a running host and deletes its computer object and DNS record from Active Directory; the servers and the storage volume are deleted with the resource.",
"enabled": true,
"execute_in_parallel": false,
"id": "BDI-w9x43skq",
"name": "Remove Hyper-V Cluster Object",
"rate": null,
"run_on_scale_up": false,
"show_on_order_form": false,
"tier_type": "teardown_plugin"
}
]
}
84 changes: 84 additions & 0 deletions blueprints/BP-9zp8udce/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# SCVMM Lab on AWS

Builds an SCVMM 2025 test lab on AWS:
- Two or more Windows Server 2025 Hyper-V hosts on nested-virtualization EC2 instances, in a failover cluster.
- Shared storage over iSCSI from a gp3 volume.
- One SCVMM server that manages the cluster.

Every server joins an existing Active Directory domain. The build runs unattended and takes about an hour, mostly SQL Server and SCVMM setup.

## Contents
| Role | ID | Name |
|---|---|---|
| Server tier (seq 1, parallel) | — | Hyper-V Hosts (OS build "Windows Server 2025"; hostname `hvlab-00X`; all environments enabled; order 2 or more) |
| Server tier (seq 2) | — | SCVMM Server (OS build "Windows Server 2025"; hostname `vmmlab-00X`; all environments enabled; order 1) |
| Build (Plug-in, seq 3) | OHK-q6fb9833 | Prepare SCVMM Lab on AWS |
| Build (Plug-in, seq 4, parallel) | OHK-8f9o1496 | Install SCVMM |
| Build (Plug-in, seq 5) | OHK-8ioy2cbi | Configure Hyper-V Hosts |
| Build (Plug-in, seq 6) | OHK-77f19kly | Create Hyper-V Cluster |
| Build (Plug-in, seq 7) | OHK-ive3ka22 | Add Hyper-V Cluster to SCVMM |
| Teardown (before the servers are deleted) | OHK-kzb6pzzu | Remove Hyper-V Cluster Object: destroys the cluster with `Remove-Cluster -CleanupAD` on a running host, which deletes its computer object and DNS record, and deletes whichever of them is left |
| Shared module | SHM-dpj24dfj | `scvmm_lab`: guest scripts, scheduled-task steps, EC2 calls |

Blueprint parameters, each pinned as its only option, so the order form hides them:
- `scvmm_media`: where `SCVMM_2025.zip` comes from. The default is the Evaluation Center's link, `https://go.microsoft.com/fwlink/?linkid=2292412`, which downloads without registration. For a lab without internet access, set it to a File Archives reference instead, such as `scvmm/SCVMM_2025.zip`.
- `scvmm_lab_storage_gb`: size of the lab volume (default 250).

## What gets built
| Piece | How |
|---|---|
| Nested virtualization | Each host is stopped, gets `NestedVirtualization=enabled`, and is started again. Not needed on `.metal` sizes. The appliance's botocore predates the field, so the shared module adds it to the signed request itself. |
| Cluster addresses | Each host gets one secondary private IP. The cluster has one IP address resource per host, each owned only by its host, joined by an OR dependency. The cluster name is `hvc-<resource ID>`. |
| Shared storage | The SCVMM server gets a gp3 volume (labeled `CBLab`, deleted with the server) and runs the iSCSI Target Server role. The volume holds a 1 GB disk witness and a cluster shared volume of the volume size minus 40 GB, both dynamically expanding. |
| SCVMM server | Root volume grown to 80 GB. SQL Server 2022 Developer (default instance), Windows ADK Deployment Tools + WinPE, and SCVMM 2025 evaluation. The VMM service runs as Local System; the library share is on the lab volume. |
| Hosts | Hyper-V and Failover Clustering are installed. An internal switch `CBLab-NAT` with NAT `192.168.250.0/24` (gateway `.1`) is created on every host; its address is not registered in DNS. |
| SCVMM | Run As account `CloudBolt SCVMM Lab Hosts` for the domain service account; the cluster is added under All Hosts. |

Resource attributes: `scvmm_lab_domain`, `scvmm_lab_cluster`, `scvmm_lab_cluster_ips`, `scvmm_lab_vmm_server`.

## Prerequisites
- **Domain join content.** Install [PKG-nf407lm5](../../packages/PKG-nf407lm5/) (Join Windows Server to AD Domain), with `domain_ou` and `domain_service_account` set on the AWS environment. Every lab server must get the same `domain_service_account`. That account:
- is a member of the local Administrators group on the lab servers, for example through a Group Policy linked to their OU;
- has **Create Computer objects** on that OU, for the cluster's computer object.
- **Teardown rights.** The LDAP Utility's account must be able to delete computer objects in that OU and DNS records in the domain's zone. Windows protects the cluster's computer object from accidental deletion, so the teardown deletes it from a running host as the domain service account that created it. When `Remove-Cluster` leaves the object behind, that account removes the protection and deletes it.
- **Runbooks package.** [PKG-v20qv308](../../packages/PKG-v20qv308/) provides the `file_archives` shared module that Install SCVMM imports. File Archives itself is needed only when `scvmm_media` names a File Archives file.
- **AWS environment.** Windows Server 2025 instances CloudBolt can run scripts on, through SSM (with an instance profile allowing `AmazonSSMManagedInstanceCore`) or through WinRM.
- **Security group:** allow all traffic between its own members (a rule whose source is the group itself).
- **Internet access** from the SCVMM server, to download SQL Server, the ADK and the SCVMM media from Microsoft.
- **IAM.** The AWS handler's credentials also need:
- `ec2:ModifyInstanceCpuOptions`, `ec2:StopInstances`, `ec2:StartInstances`, `ec2:DescribeInstanceTypes`
- `ec2:AssignPrivateIpAddresses`
- `ec2:CreateVolume`, `ec2:AttachVolume`, `ec2:CreateTags`, `ec2:ModifyInstanceAttribute`
- `ec2:ModifyVolume`, `ec2:DescribeVolumesModifications`

## Setup
1. On the AWS environment's **Parameters** tab:
- Add instance types that support nested virtualization to **Instance type**, for example `m7i.xlarge`, `m8i.xlarge` or `r7i.xlarge`. Bare metal sizes also work. SCVMM's documented minimum is 8 cores and 16 GB of RAM; `m7i.2xlarge` meets it, and `m7i.xlarge` saves cost in a lab.
- Add **Quantity** with minimum 1 and maximum 8. Without it the order form has no host count and an order with more than one host is refused. Adding it to the ordering group instead works too.
2. Sync the blueprint, then open it in **Catalog**:
- Both tiers have all environments enabled. The tier's OS build limits them to environments that offer it; re-point both tiers to your Windows Server 2025 build (`OSB-bocl2o1o` is instance-specific), or restrict their environments.
- Without internet access from the lab, upload `SCVMM_2025.zip` from the [Evaluation Center](https://www.microsoft.com/en-us/evalcenter/download-system-center-2025) unchanged to File Archives (**Admin > Custom Extensions > Runbooks > File Archives**; raise **Largest upload** to 1100 MB). Then set the `scvmm_media` option to its reference.
3. Grant the groups that may order it.
4. Order it with **Hyper-V Hosts** quantity 2 or more and **SCVMM Server** quantity 1.

## Notes
- **Re-running a build item.** Every step is skipped when it is already done.
- **DNS names.** Prepare and Create Hyper-V Cluster check that every lab server's name resolves to its own address, because the cluster and SCVMM reach the servers by name. The usual cause of a failure is a record left by an earlier server with the same name. The zone lets only a record's owner update it, so the new server cannot replace it. Delete the record named in the error, then re-run the item. HPA-q181uofy deletes the records of the servers it deletes.
- **The cluster's name** is registered with one domain controller while the cluster is created. Other DNS servers answer for it only after directory replication. A resolver that cached "no such name" during creation keeps that answer until it expires, which can take up to the zone's minimum TTL (an hour by default). So Add Hyper-V Cluster to SCVMM waits up to an hour for the name to resolve from the SCVMM server; in testing it took from one to 18 minutes. Create Hyper-V Cluster does not need the name.
- **Slow steps** run as scheduled tasks under `\CloudBolt\` and are polled every 30 seconds. Steps that reach AD or other servers sign in as the domain service account, so there is no double hop. Their logs are in the job's progress.
- **The service account's password** goes to the guest inside the script body, base64 encoded for quoting only. On AWS that body stays in Systems Manager's command history.
- **Scale-up is not supported.** Order a new lab for more hosts.
- **Nested VMs** reach the network only through their host's NAT (`192.168.250.0/24`), because EC2 drops frames from unknown MAC addresses. They are not reachable from the VPC.
- **SCVMM has no templates, logical networks or IP pools yet.** Add them in the console.
- **Deleting the lab** deletes the instances. The storage volume goes with the SCVMM server, and the teardown item destroys the cluster, which deletes its computer object and the cluster name's DNS record. When `Remove-Cluster` does not run or fails, the teardown deletes them itself; a DNS record another account owns is left alone and reported. The servers' own computer objects and DNS records are deleted only by HPA-q181uofy, when it is installed.

### Not yet run live
Two labs built in one uninterrupted run each, in 43 minutes, with SCVMM managing the cluster. Their teardowns destroyed the cluster and deleted its computer object, and the second found no DNS record of the cluster left. Not yet run:
- **Failing the core group over to another host.** One IP resource per host is AWS's clustering pattern for hosts in separate subnets; here the hosts share a subnet. If the cluster name does not come online on the other host, keep only the first host's address and pin the group to that host.
- **Teardown of a cluster whose creation failed partway.** On one such lab, `Remove-Cluster` failed with only a generic message, and the cluster's computer object was left in Active Directory. The teardown now reports the underlying error, removes the protection and deletes the object from a host, and deletes the DNS record the object owned; those paths have not run live.

### Caveats
- **SCVMM's DHCP server extension.** On the test labs, SCVMM installed its agent on both hosts, but copying the DHCP server extension (`DHCPExtn.msi`) to them over BITS failed, so the add job failed. Add Hyper-V Cluster to SCVMM then ends with a warning that quotes SCVMM's message. The cluster and its nodes are managed. The extension is needed only for SCVMM-managed DHCP on virtual networks.
- **SQL Server media download.** The ISO URL in Install SCVMM (`SQL_ISO_URL`) is Microsoft's file, but no Microsoft page documents it, so it can move.
- **SQL Server edition.** SCVMM 2025 lists Standard, Enterprise and Datacenter. Developer is the Enterprise engine, for test use only.
- **SCSI-3 persistent reservations** on the iSCSI target are not validated: `Test-Cluster` is not run. Run cluster validation in Failover Cluster Manager for a supported configuration.
Loading