Skip to content

[HCK-CI] Add VSM support and enable VBS for functest - #1144

Open
elizashurov wants to merge 3 commits into
HCK-CI:masterfrom
elizashurov:enable-vsm-support
Open

elizashurov wants to merge 3 commits into
HCK-CI:masterfrom
elizashurov:enable-vsm-support

Conversation

@elizashurov

@elizashurov elizashurov commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Add support for running Windows guests with VSM and enabling VBS during functional tests.

  • Add vsm_state and configure the required VSM QEMU flags, SMM, and TPM CRB.
  • Add a dedicated Windows Server 2025 VSM platform.
  • Propagate --enable-vbs through QemuHCK for both HCKTest and functest.
  • Enable and verify VBS, HVCI, and Credential Guard during functest client preparation.

Validated the VSM/VBS functest flow with:

bin/auto_hck --verbose functest -p Win2025x64_gui_vsm --enable-vbs

For validation, I temporarily changed the VSM platform from 4 vCPUs ("cpus": 4) to 1 vCPU, since the VM currently hangs during boot with multiple vCPUs due to the known boot issue.

The platform remains configured with 4 vCPUs and should be retested once the fix is available.

Comment thread lib/setupmanagers/qemuhck/devices/tpm-crb.json Outdated
Comment thread lib/setupmanagers/qemuhck/qemu_machine.rb Outdated
Add a vsm_state platform option for Windows client VMs.
When enabled, configure the required Hyper-V CPU features and SMM.
Add a dedicated Windows Server 2025 VSM platform.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
Propagate --enable-vbs through QemuHCK and run the guest setup commands
during functest client preparation.

Enable VBS, HVCI, and Credential Guard, reboot with WinRM polling, and
fail when the requested security services are not configured or running.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
Comment thread lib/setupmanagers/functest_client.rb Outdated
Add a secure_boot client option and use it when starting client VMs.
Enable Secure Boot for the Windows 2025 VSM platform and reuse the existing Windows images.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants