Pcornel
Virtualization · Virtual Networking

Host-only Network

Cheat sheet · https://pcornel.dk/topic.php?topic=3537

Back to the Topic

Answer

A Host-only Network connects VMs to each other and to a host-side virtual interface while normally omitting a direct physical uplink to the external network.

Remember

  • Host-only differs from fully isolated because the host has an interface on the virtual segment.
  • The host can route or NAT traffic onward if forwarding/sharing is enabled, so “host-only” topology does not guarantee no external IP path.
  • Guest reachability to the host is separate from host firewall/service availability.
  • DHCP/DNS services may be provided by the host or platform but are separate dependencies.

First checks

  • Get-VMSwitch | ? SwitchType -eq Internal — Hyper-V internal switch
  • VBoxManage list hostonlyifs — VirtualBox host-only
  • ip addr show virbr1 — host interface on the network

Verify in this order

VMs ↔ host-only switch ↔ host

Where it usually breaks

First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.

Virtual Networking → Host-only Network reference map

BoundaryMeaningEvidence limit
VM ↔ VMLocal virtual segmentExpected
VM ↔ HostHost virtual interfaceExpected
Direct pNIC uplinkNormally absentTopology boundary
Host routing/NATPossible separatelyCan create external path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3537

Confirmation

Confirm action

Continue?