Fix qemu-guest-agent startup failure by replacing --blacklist with --block-rpcs#16275
Open
Travisivart wants to merge 1 commit intomicrosoft:3.0-devfrom
Open
Fix qemu-guest-agent startup failure by replacing --blacklist with --block-rpcs#16275Travisivart wants to merge 1 commit intomicrosoft:3.0-devfrom
Travisivart wants to merge 1 commit intomicrosoft:3.0-devfrom
Conversation
70b17c2 to
eb19e58
Compare
QEMU 9.1 removed the deprecated --blacklist CLI option from qemu-ga, replacing it with --block-rpcs. The systemd service file still used the old flag, causing qemu-guest-agent to fail to start. Update qemu-guest-agent.service and qemu-ga.sysconfig to use --block-rpcs and rename the BLACKLIST_RPC environment variable to BLOCK_RPCS. Fixes: microsoft#15843
eb19e58 to
6d25395
Compare
jeremyhouser-ms
approved these changes
Mar 25, 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.
Merge Checklist
*-staticsubpackages, etc.) have had theirReleasetag incremented.*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
QEMU 9.1 removed the deprecated
--blacklistCLI option fromqemu-ga, replacing it with--block-rpcs. Theqemu-guest-agentsystemd service file and sysconfig still referenced--blacklist, causing the guest agent to fail to start with:qemu-ga: unrecognized option '--blacklist'
This PR updates the service file and sysconfig to use the new
--block-rpcsflag and renames theBLACKLIST_RPCenvironment variable toBLOCK_RPCS.Change Log
--blacklist=${BLACKLIST_RPC}with--block-rpcs=${BLOCK_RPCS}inqemu-guest-agent.serviceBLACKLIST_RPCtoBLOCK_RPCSand update comments inqemu-ga.sysconfigDoes this affect the toolchain?
NO
Associated issues
Test Methodology
qemu-ga --helpconfirms--block-rpcsis the correct replacement flag--blacklistwas removed in QEMU 9.1