VMware ESXi and vSphere Cluster Management
Create a Standard vSwitch and VMkernel Port Group for vMotion in VMware ESXi
Learn how to create a standard vSwitch, configure a VMkernel port group, enable vMotion, and verify connectivity on every ESXi host.
vSphere vMotion live-migrates a powered-on virtual machine from one compatible ESXi host to another. During the migration, ESXi transfers the virtual machine's execution state over a host networking path.
This guide explains how to create that path with an ESXi standard vSwitch and a vMotion-enabled VMkernel network adapter. Configure compatible vMotion networking on every ESXi host that can be a migration source or destination.
How the vMotion network works
A vMotion network is a host-to-host network used for vMotion traffic. It should be dedicated when possible, or deliberately shared with other VMkernel services when the physical and logical design provides sufficient capacity and isolation.
vMotion is enabled on a VMkernel adapter, not on a virtual-machine port group. A VMkernel adapter is an ESXi host interface used by services such as management, vMotion, storage, vSAN, and fault tolerance logging.
Core components
- ESXi host: A VMware hypervisor that runs virtual machines.
- vCenter Server: The centralized management platform used to manage ESXi hosts and initiate vMotion operations.
- Standard vSwitch: A host-local virtual switch configured independently on each ESXi host.
- Physical NIC: A network adapter installed in the host.
- Uplink: A physical NIC assigned to a virtual switch, such as
vmnic2. - VMkernel adapter: A host network interface commonly named
vmk0,vmk1, and so on. - VMkernel port group: The configuration associated with a VMkernel adapter. It includes a network label, VLAN settings, IP configuration, and enabled host services.
- VLAN ID: An 802.1Q segmentation identifier applied when the physical network uses VLAN tagging.
- MTU: The maximum transmission unit, or largest packet size supported on a network path.
The standard vSwitch connects the VMkernel adapter to one or more physical uplinks. The VMkernel port group's label helps administrators identify the connection, but the label itself does not provide connectivity. VLAN configuration, IP addressing, routing, uplinks, and physical-switch settings determine whether hosts can communicate.
Prerequisites and design decisions
- Confirm that the source and destination ESXi hosts are managed in the same vCenter Server environment for the intended standard vMotion workflow.
- Confirm that every participating host has an available physical NIC or enough capacity on an existing uplink.
- Identify the physical network, VLAN ID, IP subnet, gateway requirements, and MTU before starting.
- Decide whether vMotion will use a dedicated standard switch and uplink or share a switch with other VMkernel services.
- Plan a unique, mutually reachable VMkernel IP address for every participating host.
- Verify that the physical switch permits the selected VLAN and supports the selected MTU end to end.
- Use redundant uplinks when vMotion availability requirements justify them. Verify the corresponding physical-switch design and teaming policy.
| Item | Example Value | Why It Matters |
|---|---|---|
| VMkernel port group label | vMotion | Provides an identifiable host-network configuration |
| VLAN ID | 120 | Places vMotion traffic on the intended Layer 2 segment |
| IP subnet | 192.168.120.0/24 | Provides reachable VMkernel addresses |
| MTU | 1500 or 9000 | Must match the end-to-end network design |
| Uplinks | vmnic2 and vmnic3 | Provides physical connectivity and optional redundancy |
Static IPv4 addressing is generally preferable for host infrastructure because addresses remain predictable. DHCP is valid only when reliable address assignment and infrastructure policy support it.
Example two-host design
In this example, two hosts use a dedicated vMotion network:
- ESX01: standard switch
vSwitch-vMotion, uplinkvmnic2, VMkernel adaptervmk1, address192.168.120.11/24. - ESX02: an equivalent standard switch and uplink arrangement, with VMkernel adapter
vmk1and address192.168.120.12/24. - Port group:
vMotionon VLAN120. - Service: vMotion enabled on both VMkernel adapters.
The VMkernel adapter names may differ between hosts. The addresses must be unique, and the VLAN, MTU, and physical reachability must support communication between the two adapters.
Create the standard vSwitch and VMkernel port group
Perform these steps for the first ESXi host in the vSphere Client.
- Select the ESXi host in the inventory.
- Open Manage, then open Networking.
- Choose the action to Add host networking.
- For the connection type, select VMkernel Network Adapter.
- Choose New standard switch.
- Select the physical network adapter or adapters to assign as switch uplinks. For the example, select
vmnic2. Add a second uplink if the design requires redundancy. - Enter a meaningful VMkernel port-group label, such as
vMotion. - Enter the required VLAN ID, such as
120. Leave the VLAN configuration consistent with the physical-switch design. - Enable the vMotion traffic service for the VMkernel adapter. Do not enable it on a virtual-machine port group.
- Configure IPv4 addressing. Select DHCP only when approved by the network design. Otherwise select static addressing and enter the host's unique IP address, subnet mask or prefix, and gateway when the design requires one.
- Review the standard switch, uplink, port-group, service, VLAN, MTU, and IP settings.
- Finish the wizard and wait for the host networking task to complete.
Standard switch: vSwitch-vMotion
Physical uplink: vmnic2
VMkernel port group: vMotion
VLAN ID: 120
VMkernel adapter: vmk1
ESX01 address: 192.168.120.11/24
ESX02 address: 192.168.120.12/24
Enabled service: vMotionShared standard switch design
A dedicated vMotion switch is not the only design. A host can use one standard switch with multiple uplinks and separate VMkernel port groups. For example, a management port group and a vMotion port group can use different VLAN IDs and different VMkernel IP subnets. Enable the vMotion service only on the intended vMotion adapter, and confirm that the shared uplinks have adequate capacity and appropriate availability.
Repeat the configuration on every participating host
Create an equivalent vMotion-enabled VMkernel adapter on every ESXi host that may be a source or destination. Standardize the following:
- VLAN and physical network reachability.
- MTU and end-to-end jumbo-frame support, if used.
- vMotion service selection.
- Port-group naming for operational clarity.
- Uplink and redundancy design.
Assign a different VMkernel IP address to each host. A matching port-group label is useful for administration, but identical labels alone do not connect hosts. The underlying VLAN, IP subnet or routed design, uplinks, and physical-switch configuration must provide reachability.
| Setting | Must Match Across Hosts | Must Be Unique Per Host |
|---|---|---|
| vMotion service enabled | Yes | No |
| VLAN and physical network reachability | Yes | No |
| MTU | Yes | No |
| VMkernel IP address | No | Yes |
| Physical NIC assignment | Compatible design required | May differ |
Verify vMotion readiness
- Inspect the VMkernel adapter on each host and confirm that it exists.
- Confirm that the vMotion traffic service is enabled on the intended adapter.
- Verify the adapter's IP address, subnet, VLAN ID, MTU, and active uplink.
- Test VMkernel-to-VMkernel connectivity between the participating hosts.
- Run a vMotion compatibility check or begin the migration workflow validation before moving a production workload.
- Confirm that vCenter Server reports no networking-related vMotion configuration errors.
Optional ESXi CLI validation
Run these commands on an ESXi host using the actual adapter name and destination address:
esxcli network ip interface list
esxcli network ip interface tag get -i vmk1
vmkping -I vmk1 192.168.120.12For a 9000-byte MTU path, test with an appropriately sized payload and do-not-fragment behavior:
vmkping -I vmk1 -d -s 8972 192.168.120.12The large-payload test is meaningful only when every component in the path supports the configured MTU. Use the actual destination VMkernel IP address for the remote host.
Troubleshooting
No vMotion network is configured on a host
- Check whether the VMkernel adapter was created but the vMotion service was not enabled.
- Inspect both source and destination hosts.
- Enable vMotion on the intended VMkernel adapter.
- Confirm that the adapter is connected to the correct standard switch and port group.
VMkernel ping fails between hosts
- Verify the VLAN ID on both VMkernel port groups.
- Verify that the physical switch trunk or access-port configuration carries the vMotion VLAN.
- Check IP addresses, subnet masks, and any required routing.
- Confirm that an uplink is active and the physical link is available.
- Run
vmkpingwith the intended source VMkernel adapter.
vMotion fails when jumbo frames are enabled
- Check the MTU on the VMkernel port group, standard vSwitch, physical NIC path, physical switches, and any routed segment.
- Use a large
vmkpingpayload with the do-not-fragment option. - If jumbo-frame support cannot be guaranteed end to end, configure MTU 1500 consistently instead.
Basic connectivity succeeds but migration validation fails
Network reachability is only one vMotion prerequisite. Host compatibility, CPU compatibility, storage accessibility, licensing, and other migration requirements can also cause a precheck failure. Review the detailed migration message in vCenter Server and separate network findings from broader compatibility findings.
Operational cautions
- Take care not to alter management connectivity unintentionally while adding or modifying host networking.
- Never assign the same VMkernel IP address to multiple hosts.
- Do not enable vMotion on an adapter connected to an unintended network.
- An incorrect VLAN, MTU mismatch, unavailable uplink, or missing physical-switch configuration can prevent migration.
- Test changes on a non-production host or maintenance window when the network design is new.
Exam-relevant notes
- vMotion traffic is enabled on a VMkernel adapter.
- A VMkernel port group is different from a virtual-machine port group.
- Every host that can participate in the migration needs compatible vMotion-enabled VMkernel networking.
- VMkernel IP addresses must be unique and mutually reachable.
- Port-group labels do not create connectivity; VLAN, IP, routing, uplinks, and physical-switch settings do.
- MTU must be consistent across the complete path when jumbo frames are used.
After the network is verified, continue with the vMotion standard switch and VMkernel port group procedure as a reference for repeating the configuration across hosts.