Networking
Each VM has one network mode. This page shows how to pick it and how to unplug a running VM's network; the other pages in this section cover tunnel mode, addresses, port forwarding, names and machines reaching each other.
Network modes
The mode is stored in the VM's config.plist and read when the VM starts, so a change applies from the next launch.
Choose a mode
In Launchpad:
- Stop the machine.
- Choose Settings… from the
⋯menu or the right-click menu. - Pick the mode in the Network section.
New Machine sets the mode under Advanced Options. With one machine selected, Settings… also has Address and Port Forwarding sections.
From the command line:
tunnel needs a VPhone.bundle that lists it in vphone-cli vm config --help. An older bundle rejects the setting.
Unplug a running VM
vm network acts on a running VM, and nothing it does is saved:
The guest sees the link drop and come back. The same request is available on vphone.sock as {"t":"network"}, with "link":"down" or "link":"up".
A running VM cannot move to another network. Virtualization accepts the change and then stops the VM with an internal error, so vm network only ever puts back the network the VM started on. To change the mode, use vm config and restart the VM.
See also
- Tunnel mode: a Mac behind a VPN or proxy app
- MAC and IP addresses: the saved MAC, leases held by old MACs, fixed addresses
- Port forwarding: carry a port on the Mac into the guest
- Names on the network and Machines reaching each other