Repository navigation
qemu: fail early when vmnet networking is not entitled - #8045
Merged
Merged
Conversation
A UTM built without the VM entitlement profiles (ad-hoc signed, which is what a checkout without CodeSigning.xcconfig builds) has no com.apple.vm.networking. Starting a VM with a Shared Network interface (the default for new VMs) then failed in QEMU with "cannot create vmnet interface", which does not say what to change. UTM now reports whether QEMULauncher, the process that opens vmnet and is signed separately from UTM, has the entitlement as a capability, read from its code signature. Starting a VM with a Shared Network, Host Only or Bridged interface without it fails before QEMU starts, with an error that names the entitlement and the fix. Which modes use vmnet is now decided in one place, shared with the QEMU arguments. New VMs still default to Shared Network so creation behavior does not depend on how UTM was signed. To test: build without CodeSigning.xcconfig. A VM with Shared Network fails to start with "This build of UTM does not have the entitlement for Shared Network, Host Only or Bridged networking. Change the network mode to Emulated VLAN." After changing it to Emulated VLAN it starts. A signed build starts the Shared Network VM as before. Assisted-by: Claude:claude-opus-5-5
osy
force-pushed
the
fix/unsigned-networking
branch
from
November 12, 2026 03:52
5d70852 to
32d224f
Compare
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.
A UTM built without the VM entitlement profiles (ad-hoc signed, which is what a checkout without CodeSigning.xcconfig builds) has no
com.apple.vm.networking. Starting a VM with a Shared Network interface (the default for new VMs) then failed in QEMU with "cannot create vmnet interface", which does not say what to change.UTM now reports whether QEMULauncher, the process that opens vmnet and is signed separately from UTM, has the entitlement as a capability, read from its code signature. Starting a VM with a Shared Network, Host Only or Bridged interface without it fails before QEMU starts, with an error that names the entitlement and the fix. Which modes use vmnet is now decided in one place (
UTMQemuConfigurationNetwork.isVmnet), shared with the QEMU arguments. New VMs still default to Shared Network so creation behavior does not depend on how UTM was signed.Testing: Tested by a human on macOS 27.2, MacBook Pro (Apple M2 Max).
QEMULauncher-unsigned.entitlements: a Shared Network VM and a Host Only VM fail to start with "This build of UTM does not have the entitlement for Shared Network, Host Only or Bridged networking. Change the network mode to Emulated VLAN." and QEMU is not launched; after switching to Emulated VLAN the VM starts (-netdev user).-netdev vmnet-shared).The author acknowledges that this change has been tested and/or reviewed by a human in accordance with UTM's AI contribution guidelines.