Networking
HYPR provides Docker-compatible networking for VMs with support for custom networks, DNS resolution, and port forwarding.Overview
Each VM is assigned an IP address on a virtual network. VMs can communicate with each other by IP or by name (via built-in DNS). Port forwarding exposes VM services to the host.Default Network
HYPR creates a default network automatically. Platform-specific configuration:| Platform | Subnet | Gateway | DNS |
|---|---|---|---|
| Linux | 10.88.0.0/16 | 10.88.0.1 | 10.88.0.1 |
| macOS | 192.168.64.0/24 | 192.168.64.1 | 192.168.64.1 |
172.17.0.0/16) and Tailscale (100.64.0.0/10).
macOS uses the vmnet framework’s default range.
Creating Networks
Create a custom network:Listing Networks
Inspecting Networks
Removing Networks
Networks in Compose
Define networks in your compose file:Custom Subnets in Compose
DNS Resolution
HYPR runs a DNS server for.hypr domain resolution on port 41003.
VM Name Resolution
VMs are accessible by name with the.hypr suffix:
Service Name Resolution
Within compose stacks, services resolve by name:Linux DNS Setup
On Linux with systemd-resolved, HYPR configures DNS automatically:macOS DNS Setup
On macOS, HYPR creates a resolver file:Port Forwarding
Expose VM ports to the host:Network Architecture
Linux
- vbr0: Linux bridge device
- tapN: TAP device per VM
- IPAM: IP address allocation (SQLite-backed)
- DNS: Built-in DNS server on the bridge IP
macOS
- vmnet: Apple’s Virtualization framework network
- DHCP: IP allocation via vmnet
- DNS: Built-in DNS server
Troubleshooting
VM Cannot Reach Internet
Linux:-
Check IP forwarding:
Enable:
-
Check NAT:
-
Check bridge exists:
- Check vmnet service is running
- Verify libkrun permissions in Security & Privacy
DNS Not Resolving
-
Check DNS server is running:
-
Check /etc/resolv.conf in VM:
-
Test with explicit nameserver:
VMs Cannot Communicate
- Verify both VMs are on the same network
-
Check IP addresses:
-
Test connectivity:
Port Forwarding Not Working
-
Verify port mapping:
-
Check service is listening in VM:
-
Check host firewall:
Advanced Configuration
Custom Bridge Name
Networks create bridge devices with names likevbr0, vbr1, etc. The bridge name is shown in network inspect output.
IP Range Exhaustion
The default Linux subnet (10.88.0.0/16) provides ~65,000 addresses. macOS (192.168.64.0/24) provides ~250 addresses.
Check current allocations: