Great follow-up question — the physical connectivity (direct vs. switched) changes some details, but not the core architectural recommendation. Let’s break it down.
🔍 Short Answer: No, It Doesn’t Change the Recommendation
Whether your iSCSI array is direct-connected or switched, Microsoft still recommends using Shared VHDX on CSV for guest failover clusters (like a File Server Failover Cluster Instance, or FSFCI).
Direct LUN mapping to VMs over iSCSI (even via a switch) is still not supported for guest clusters — and performance, live migration, and manageability will suffer.
But let’s explore why the switch doesn’t save you from the problems — and when (if ever) you might consider direct VM iSCSI.
🔄 1. Direct vs. Switched: What Changes?
| Aspect | Direct-Attached | Switched (via Ethernet) |
|---|
| Latency | Lower (no switch hop) | Slightly higher (switch latency ~0.1–0.5 μs) |
| Bandwidth | Dedicated (no contention) | Shared (unless you use dedicated VLANs/NICs) |
| MPIO | Easier (2 paths = 2 NICs) | More flexible (4+ paths with multiple switches) |
| Scalability | Limited (2 hosts per LUN) | High (many hosts, many LUNs) |
| VM Mobility | ❌ Live migration breaks iSCSI | ❌ Still breaks (same reason) |
| Security | Physically isolated | Can use VLANs, ACLs, CHAP |
| Complexity | Simpler setup | More complex (VLANs, switch config, jumbo frames) |
✅ Switched gives you more flexibility (e.g., more hosts, better redundancy), but doesn’t solve the fundamental issues of guest iSCSI.
❌ 2. Why VM iSCSI Over a Switched Network Still Fails for Guest Clusters
Even with a dedicated iSCSI VLAN, jumbo frames, MPIO in the guest, and persistent reservations, you still face:
A. No Live Migration Support
- When you live-migrate a VM, the iSCSI session stays bound to the old host’s IP/NIC.
- The VM loses access to the LUN until you manually re-login or use iSCSI persistent reservations (PRs) with cluster coordination.
- Microsoft does not support guest clustering over iSCSI unless the storage is managed by the hypervisor (i.e., Shared VHDX, CSV, or SMB 3.0+).
📌 KB 2857651: "Guest clusters must use cluster-aware storage provided by the hypervisor."
B. Double iSCSI Stack (Again!)
- The VM still sends iSCSI over the virtual NIC → vSwitch → host NIC → physical switch → array.
- The host’s iSCSI stack is still involved — it just sees the VM’s traffic as regular TCP/IP.
- You still get:
- Extra CPU overhead (TCP/IP in guest + host)
- Extra latency (extra hops, context switches)
- No MPIO coordination between host and guest
- Risk of queue depth exhaustion (host NIC queues fill up with VM’s iSCSI traffic)
C. Persistent Reservations Are Fragile
- You can use iSCSI PRs to allow multiple VMs to access the same LUN (for clustering).
- But:
- Requires cluster-aware applications (like WSFC) to manage PRs.
- No automatic failover — the cluster must issue
PR_REGISTER and PR_RESERVE commands.
- No support for live migration — you must pause the cluster, migrate, then resume.
- Microsoft does not recommend this for FSFCI (file servers).
📌 Microsoft Docs: "Guest clusters should use Shared VHDX or SMB 3.0+ for shared storage. iSCSI with PRs is not supported for FSFCI."
D. Security & Management Overhead
- You now have to:
- Configure CHAP, IQNs, target portals, MPIO in each VM.
- Manage iSCSI initiators across dozens of VMs.
- Troubleshoot iSCSI session drops during host reboots.
- With Shared VHDX, all of this is handled at the host level — one place, one config.
✅ 3. When Could You Use VM iSCSI Over a Switch? (Rare Cases)
Only consider direct VM iSCSI if:
| Use Case | Why It Might Work |
|---|
| Non-clustered VM (single VM, no HA) | No need for shared storage or live migration. |
| Application that requires raw block access (e.g., Oracle RAC, some databases) | Some apps need direct LUNs, but not Windows file servers. |
| Testing / Lab Environment | You’re okay with manual failover and downtime. |
| SMB 3.0+ or Shared VHDX is not an option (very rare) | e.g., legacy OS, no CSV support. |
⚠️ Even then, use a dedicated vSwitch with VLAN, jumbo frames, and QoS to isolate iSCSI traffic from VM traffic.
✅ 4. The Correct Switched Architecture (Recommended)
Even with a switched iSCSI network, the best practice is the same:
[ iSCSI Array ]
│
├─► Switch (dedicated iSCSI VLAN, jumbo frames)
│
├─► Hyper-V Host 1 (MPIO, CSV on iSCSI LUN)
├─► Hyper-V Host 2 (MPIO, CSV on iSCSI LUN)
│
└─► Shared VHDX (stored on CSV)
│
├─► VM-01 (File Server, clustered)
└─► VM-02 (File Server, clustered)
🔧 Key Configurations (Switched Environment)
| Item | Recommendation |
|---|
| vSwitch | External vSwitch with dedicated NICs for iSCSI (not shared with VMs) |
| VLAN | Dedicated iSCSI VLAN (e.g., VLAN 100), tagged on switch and host NICs |
| Jumbo Frames | 9014 bytes on: switch ports, host NICs, array ports |
| MPIO | On Hyper-V hosts only (not in VMs) |
| iSCSI Initiator | Configured on hosts, not VMs |
| VM Storage | Shared VHDX on CSV (not direct LUNs) |
| Live Migration | Use default vSwitch (separate from iSCSI) |
| QoS | Optional: prioritize iSCSI traffic on switch |
✅ This gives you:
- Low latency (switched, but dedicated)
- High bandwidth (10/25/40 GbE)
- Live migration
- Failover clustering
- Microsoft support
📚 Microsoft’s Position (Again)
🔗 "Guest clusters must use cluster-aware storage provided by the hypervisor."
🔗 "For virtualized file servers, use Shared VHDX on a CSV."
🔗 "iSCSI LUNs presented directly to VMs are not supported for FSFCI."
Source: Microsoft Failover Clustering: Shared Disks, Shared VHDX
✅ Final Answer
| Question | Answer |
|---|
| Does switching (vs. direct) allow me to safely use iSCSI LUNs in VMs for a clustered file server? | ❌ No. The switch doesn’t fix the fundamental issues: no live migration, double iSCSI stack, no cluster support. |
| Can I use a dedicated VLAN and vSwitch for iSCSI to VMs? | ✅ Yes, but only for non-clustered or special-use VMs. Not for FSFCI. |
| What’s the right way for a file server cluster? | ✅ Shared VHDX on CSV, with iSCSI only on the Hyper-V hosts, regardless of direct or switched. |
| Will this work with 10/25/40 GbE switches? | ✅ Yes — and it will perform better than direct-attached in most cases, due to better scalability and redundancy. |
🔧 Action Plan (Switched Environment)
- Configure iSCSI network on Hyper-V hosts: dedicated NICs, VLAN, jumbo frames, MPIO.
- Create a CSV on the iSCSI LUN (via Failover Cluster Manager).
- Create VMs (for file server cluster).
- Attach a Shared VHDX (on CSV) to both VMs.
- Inside VMs: create cluster, add shared disk, install file server role.
- Test live migration and failover.
💬 Result: Full Microsoft support, live migration, high performance, and no iSCSI complexity in the VMs.
Stick with Shared VHDX on CSV — it’s the only architecture that’s supported, performant, and manageable for a virtualized file server cluster, whether direct-attached or switched.