Pcornel
Windows · Hyper-V

Virtual Switches

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

Back to the Topic

Answer

An external switch can bridge VM traffic to a physical adapter, an internal switch connects VMs with the management OS, and a private switch limits connectivity to VMs on the same host.

Remember

  • Switch type defines reachability scope, not guest IP configuration.
  • External switch binding to the wrong physical NIC can look like a guest problem.
  • Allowing the management OS to share an external adapter creates a host virtual NIC path that must be considered separately.
  • A virtual switch existing does not prove traffic is forwarded on the intended VLAN/path.

First checks

  • Get-VM — VMs and state
  • Get-VMHost — host settings
  • Get-VMSwitch — virtual switches
  • Get-VMNetworkAdapter -VMName <vm> — vNICs, switch, VLAN
  • Get-VMHardDiskDrive -VMName <vm> — attached disks
  • Get-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30 — VMMS events

Verify in this order

virtual switch → uplink → physical network

Where it usually breaks

First mismatch in host/cluster identity → management configuration → quorum/resource ownership → network/storage dependencies → VM/service runtime → guest/application verification; preserve identity/native error/pre-state before mutation.

Hyper-V → Virtual Switches reference map

BoundaryMeaningEvidence limit
ExternalCan use physical NIC for external network pathDoes not prove upstream switching/routing
InternalVMs plus management OS can communicateDoes not provide external path by itself
PrivateVM-to-VM on same host scopeManagement OS/external access not implied
AttachmentvNIC connected to switchDoes not prove packets traverse correctly

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

Confirmation

Confirm action

Continue?