Repository navigation
fix(net): reach vmnet through a root socket_vmnet on macOS 15 (#47) - #49
Merged
Merged
Conversation
macOS 15 treats the entitled app as a vmnet limited client: bridged mode fails with "cannot create vmnet interface", and host-mode members get hostfilter and PRIVATE, so two instances never reach each other. - The first vmnet selection in a process probes vmnet with a paused QEMU on a bridged netdev. A refusal routes both modes through a shared root socket_vmnet (-netdev stream, reconnect-ms=1000); anything else keeps in-process vmnet. CDJ3K_VMNET=helper|inprocess overrides the probe. - One daemon per bridged interface or host network UUID. Its socket lives in a root-owned /var/run/cdj3k-emu-<uid>, mode 0600 for the user. Slots hold PID leases in the runtime root; a root watchdog reads them and stops the daemon when none is alive. An flock serializes the start. - stage.sh builds socket_vmnet 1.2.2 from source for the bundle's arches and deployment target, and ships its license.
This branch was previously deployed
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.
Fixes #47.
macOS 15 treats the entitled app as a vmnet limited client: bridged mode is refused, and host-only members are filtered (
hostfilter,PRIVATE), so decks never see each other. macOS 27 grants both.Change
socket_vmnet(-netdev stream,reconnect-ms=1000); otherwise nothing changes.CDJ3K_VMNET=helper|inprocessoverrides the probe./var/run/cdj3k-emu-<uid>, mode 0600. A root watchdog stops the daemon when no slot's lease is alive.stage.shbuilds socket_vmnet 1.2.2 from source for the bundle's arches, with a macOS 15.0 deployment target.docs/network.md, README elevation table, NOTICE.Tested (macOS 27,
CDJ3K_VMNET=helper)ctl e2elink-two-deckspasses on host-only and on en0: one prompt per daemon, the second deck joins without one, clean teardown.Not tested