Safe Distributed Switch Creation for Intel NUCs

Current Network Status

Each Intel NUC has:

  • vmnic0: Built-in Intel NIC (currently used for management)
  • vusb0: USB NIC adapter (available for use)
  • vmk0: Management VMkernel adapter on Management Network port group

The Error Explained

The error “Host will become inaccessible over the network” occurs because vCenter detects that:

  1. You’re trying to move all physical NICs to the distributed switch
  2. The management VMkernel adapter (vmk0) would lose connectivity
  3. No physical adapter would remain on a standard switch for fallback

Safe Approach: Dual-NIC Strategy

Step 1: Verify Current Configuration

First, check the current setup on one host:

ssh root@esxi-nuc-01.markalston.net
esxcli network nic list
esxcfg-vswitch -l

You should see:

  • vmnic0 connected to vSwitch0 with Management Network
  • vusb0 not assigned to any switch
  • vmk0 on Management Network port group

Step 2: Create Distributed Switch (Safe Method)

  1. In vCenter: Go to Networking → Right-click Homelab-DC → New Distributed Switch

  2. Name: Homelab-DVS

  3. Version: 7.0.0 (compatible with ESXi 7.0.3 and 8.0.3)

  4. Number of uplinks: 2 per host

  5. Port groups to create:

    • Management-PG (VLAN 10)
    • vMotion-PG (VLAN 20)
    • Storage-PG (VLAN 30)
    • VM-Network-PG (VLAN 100)

Step 3: Add Hosts to DVS (Critical Steps)

  1. Right-click on Homelab-DVS → Add and Manage Hosts

  2. Select: Add hosts

  3. Select hosts: Choose all three Intel NUCs

  4. Manage physical adapters:
    • IMPORTANT: Only assign vusb0 to the DVS initially
    • Leave vmnic0 on standard switch for now
    • Assign vusb0 to Uplink 1
  5. Manage VMkernel adapters:
    • Do NOT migrate vmk0 yet
    • Create NEW VMkernel adapters on DVS:
      • vmk1 for vMotion on vMotion-PG
      • vmk2 for Storage on Storage-PG (if needed)
  6. Migrate VM networking:
    • Move VMs to appropriate DVS port groups

Step 4: Test DVS Connectivity

Before moving management network:

  1. Create temporary management interface on DVS:
ssh root@esxi-nuc-01.markalston.net
esxcli network ip interface add -i vmk3 -p Management-PG
esxcli network ip interface ipv4 set -i vmk3 -I 192.168.10.108 -N 255.255.255.0 -t static
  1. Test connectivity:
ping 192.168.10.108  # From your management station
  1. If successful, proceed to next step

Step 5: Migrate Management Network (Optional)

Only if you want management on DVS:

  1. In vCenter: Select Homelab-DVS → Actions → Add and Manage Hosts

  2. Select: Manage host networking

  3. Select hosts: Intel NUCs

  4. Manage physical adapters:
    • Now add vmnic0 to DVS (Uplink 2)
  5. Manage VMkernel adapters:
    • Migrate vmk0 to Management-PG on DVS
    • Remove temporary vmk3

Alternative: Keep Management on Standard Switch

For maximum safety, consider keeping management on standard switch:

Configuration

  • Standard vSwitch0: vmnic0 + Management Network (vmk0)
  • Distributed Switch: vusb0 + all other traffic

Benefits

  • Management always accessible via standard switch
  • DVS issues don’t affect management
  • Easier troubleshooting

Network Layout

┌─────────────────────┐
│    Standard vSwitch0 │
│    vmnic0           │
│    - Management     │
│    - vmk0           │
└─────────────────────┘

┌─────────────────────┐
│    Homelab-DVS      │
│    vusb0            │
│    - vMotion        │
│    - Storage        │
│    - VM Networks    │
└─────────────────────┘

Creating DVS with vCenter GUI

Method 1: Create Empty DVS First

  1. Create DVS with no hosts initially
  2. Create port groups first
  3. Add hosts one by one with careful NIC assignment

Method 2: Use DVS Migration Wizard

  1. Right-click host → Configure → Virtual Switches
  2. Click “Migrate Networking”
  3. Select destination as distributed switch
  4. Choose specific NICs to migrate

Troubleshooting the Error

If you get the error during setup:

Check These Items

  1. At least one NIC remains on standard switch
  2. Management VMkernel has connectivity path
  3. Physical adapter backing the management network

Safe Recovery

  1. Cancel the DVS wizard
  2. Check current vSwitch configuration
  3. Ensure vmnic0 stays on vSwitch0
  4. Only move vusb0 to DVS initially

Standard vSwitch0

  • Physical Adapter: vmnic0
  • Port Groups: Management Network
  • VMkernel: vmk0 (Management)

Distributed Switch (Homelab-DVS)

  • Physical Adapter: vusb0
  • Port Groups: vMotion-PG, Storage-PG, VM-Network-PG
  • VMkernel: vmk1 (vMotion), vmk2 (Storage)

This provides:

  • ✅ Safe management network on standard switch
  • ✅ Advanced features on distributed switch
  • ✅ Network separation and performance
  • ✅ Easy troubleshooting and recovery

This project is for educational and home lab purposes.