Add QEMU Guest Agent checksum verification with SHA256#413
Closed
kallioli wants to merge 1 commit into
Closed
Conversation
* Add new [virtio_qemu_guest_agent] configuration section with url and checksum options * Implement SHA256 checksum verification in Download-QemuGuestAgent function * Update documentation with QEMU Guest Agent configuration examples and checksum usage * Maintain full backward compatibility with existing configurations
kallioli
added a commit
to kallioli/windows-imaging-tools
that referenced
this pull request
Jun 5, 2026
Add a [virtio_qemu_guest_agent] config section with two optional options:
* url: overrides the default QEMU guest agent MSI installer URL selected
by install_qemu_ga (which must be set to True).
* checksum: SHA256 hash of the installer. When set, the downloaded MSI is
verified with Get-FileHash and the image build fails on mismatch. It
applies to the installer selected by either url or the default URL.
Download-QemuGuestAgent gains optional -CustomUrl and -Checksum parameters
and warns when a custom URL is used without a checksum. The default behaviour
(install_qemu_ga True/False/custom-URL string) is unchanged, so this is fully
backward compatible. Documented in the example config and README.
Relates-to: cloudbase#413
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds SHA256 checksum verification for QEMU Guest Agent installation, enhancing security while maintaining full backward compatibility.
New Features
[virtio_qemu_guest_agent]configuration section withurlandchecksumparametersDownload-QemuGuestAgentfunctionConfiguration Example
Benefits
Security: Verifies downloaded file integrity
Control: Know exactly which version will be installed
Protection: Prevents man-in-the-middle attacks
Compliance: Facilitates security audits
Backward Compatibility
All existing configurations continue to work without modification:
Files Modified
Config.psm1
WinImageBuilder.psm1
Examples/windows-image-config-example.ini
README.md