Pcornel
Virtualization · Hyper-V

Virtual Switch

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

Back to the Topic

Answer

A Hyper-V virtual switch is a software switch in the host. Virtual machines plug into it; an External switch connects them to the physical network, an Internal one to the host only, a Private one just to each other.

Remember

A VLAN ID set on the virtual adapter needs a trunk on the physical switch port. With a shared external switch, the host's own address lives on vEthernet (<switch>). Creating an external switch takes over the physical adapter and interrupts its connection.

First checks

  • Get-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription,AllowManagementOS — switches
  • Get-VMSwitchTeam — SET teams
  • Get-VMNetworkAdapter -ManagementOS — host vNICs

Verify in this order

vNIC → Hyper-V vSwitch port → SET team → physical NICs

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Hyper-V → Virtual Switch reference map

BoundaryMeaningEvidence limit
ExternalVM ↔ physical network pathStill needs uplink/upstream
InternalVM ↔ VM + management OSNo direct external uplink
PrivateVM ↔ VM on hostNo management OS/external path
PolicyVLAN/MAC/other settingsConfigured ≠ packet passed

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

Confirmation

Confirm action

Continue?