feat(vmm): add bridge networking support #487
Merged
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.
Summary
infocommand andinstance_idto vmm-cliforward_service_enabledconfig flag (default false, must be explicit in vmm.toml)Changes
vmm/: Bridge networking config, QEMU TAP/macvtap support, port forwarding integrationport-forward/: New crate for userspace TCP/UDP port forwardingscripts/setup-bridge.sh: Host bridge setup automationdocs/bridge-networking.md: Bridge networking guide with DHCP notification and firewall rulesvmm/src/vmm-cli.py: Addinfocommand with instance_id displayTest results
dstack-br0(IP 10.20.0.79, MAC 52:54:00:57:99:2f)-netdev bridge,br=dstack-br0for bridge-mode VMsforward_service_enabled = falsecorrectly disables port forwarding