Skip to content

vfkit: Make vmnet-shared the default network #22513

@nirs

Description

@nirs

The builtin in "nat" is faster and has no dependencies, but it does not support multi-nodes clusters, or access between single node clusters.

For reference, in qemu we prefer socket_vment if it is installed, or fallback to builtin network (user network).

Compared to socket_vment, instaling vment-helper on macOS 26 is easier, no root required.

To fix the dependency issue, minikube brew package can depend the on vmnet-helper package. We need to wait until vmnet-helper is available in main brew repo, currently it is instal from nirs/vmnet-helper tap.

Suggested change

minikube start --driver vfkit

Use --network "vmnet-shared" if vmnet-helper if installed, or fallback to --network "nat".

If using "nat", recommend to install vmnet-helper for full functionality.

minikube start --driver vfkit --network nat

Use "nat" network. recommend to install vmnet-helper for full functionality.

minikube start --driver vfkit --network vmnet-shared

Use vmnet-helper, no warnings.

Metadata

Metadata

Assignees

Labels

area/networkingnetworking issuesco/vfkitVFkit related issueslifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.os/macos
No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions