Pcornel
Virtualization · Hyper-V › Virtual Switch

Private

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

Back to the Topic

Answer

A private virtual switch connects VMs on the same host only to each other, with no access to the host or the physical network. It is useful for isolated lab or cluster networks, but VMs with other network adapters can still bridge traffic elsewhere.

Remember

  • Private switch excludes management-OS connectivity.
  • No direct physical uplink exists.
  • Private switch isolation applies to that adapter/path, not the entire VM.
  • VM-to-VM failure still requires guest addressing/firewall checks.

First checks

  • New-VMSwitch -Name Priv -SwitchType Private — create
  • Get-VMSwitch -SwitchType Private — list
  • Get-VMNetworkAdapter -All | ? SwitchName -eq Priv — VMs connected

Verify in this order

VM ↔ private switch ↔ VM

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 → Private reference map

BoundaryMeaningEvidence limit
VM↔VMAllowed on same private switchGuest policy still applies
VM↔hostNo switch pathBy design
VM↔physicalNo uplinkBy design
Isolation claimAdapter-level topologyOther adapters must be checked

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

Confirmation

Confirm action

Continue?