Skip to content

apple: add host-only networking mode#7747

Open
orikad wants to merge 1 commit into
utmapp:mainfrom
orikad:apple/host-only-net
Open

apple: add host-only networking mode#7747
orikad wants to merge 1 commit into
utmapp:mainfrom
orikad:apple/host-only-net

Conversation

@orikad

@orikad orikad commented Jun 8, 2026

Copy link
Copy Markdown

Summary

Adds host-only networking for Apple Virtualization VMs on macOS 26+ using VZVmnetNetworkDeviceAttachment.

This lets the guest communicate with the host without bridging other interfaces or NATing to the internet. The UI disables the mode on unsupported hosts/SDKs, and scripting support is updated for the new Apple network mode.

Resolves #7480

Testing

Tested by a human on a macOS 26.4.1 host with guest macOS 26.5.

The guest gets a host-only interface that can access the host without bridging other interfaces or NATing to the internet. The implementation uses VZVmnetNetworkDeviceAttachment, so it requires macOS 26+ on the host; availability checks are included for backwards compatibility.

The author acknowledges that this change has been tested and/or reviewed by a human in accordance with UTM's AI contribution guidelines.

Use vmnet host mode on macOS 26 and later so Apple Virtualization VMs can communicate with the Mac without internet routing.

Expose the mode in the Apple network configuration UI and scripting bridge while keeping availability checks for older SDKs and hosts.

Assisted-by: Codex:gpt5.5

Assisted-by: Codex:gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant