Details
The release of vSphere 5.0 provided a number of new enhancements to vMotion. This article discusses the procedure for performing a vMotion across multiple NICs.
This article comes from a blog post by VMware Principal Architect Duncan Epping, http://www.yellow-bricks.com/2011/09/17/multiple-nic-vmotion-in-vsphere-5/.
Note: The preceding link was correct as of February 4, 2012. If you find the link is broken, provide feedback and a VMware employee will update the link.
Solution
Setting up multi-NIC vMotion in vSphere 5.x on a standard vSwitch
To set up Multi-NIC vMotion in vSphere 5.x on a Standard vSwitch:
- Log into the vSphere Client and select the host from the inventory panel.
- Click the Configuration tab and select Networking.
- Click Add Networking and choose VMkernel as the Connection Type.
- Click Next.
- Add two or more NICs to the required standard switch.
Note: You can create a new vSphere standard switch or use an existing vSwitch. - Name the VMkernel portgroup (for example,
vMotion-01
), and assign a VLAN ID as required. - Click Use this port group for vMotion, then click Next.
- Configure the IP address and subnet mask, then click Next..
- Click the Properties tab of the vSwitch, select the
vMotion-01
portgroup, and click Edit. - Click the NIC Teaming tab.
- Under Failover Order, select Override switch failover order.
- Configure the first adapter (for example,
vmnic1
) asactive
and move the second adapter (for example,vmnic3
) tostandby
. - Click OK.
- Under the vSwitch Properties, click Add to create a second VMkernel portgroup.
- Name the VMkernel portgroup (for example,
vMotion-02
), and assign a VLAN ID as required.
Note: Ensure that both VMkernel interfaces participating in the vMotion have the IP address from the same IP subnet. - Click Use this port group for vMotion, then click Next.
- Configure the IP address and subnet mask, then click Next.
- Click the Properties tab of the vSwitch, select the
vMotion-02
portgroup, and click Edit. - Click the NIC Teaming tab.
- Under Failover Order, select Override switch failover order.
- Configure the second adapter (for example,
vmnic3
) asactive
and move the first adapter (for example,vmnic1
) tostandby
. - On the Properties tab of the vSwitch, select each vMotion portgroup in turn and confirm that the active and standby adapters are the reverse of each other.
Setting up multi-NIC vMotion in vSphere 5.x on a distributed vSwitch
To set up Multi-NIC vMotion in vSphere 5.x on a Distributed vSwitch:
- Log into the vSphere Client and click the Networking inventory.
- Click New vSphere Distributed Switch and choose version 5.0.0.
- Name the Distributed switch (for example,
Multi-NIC-vMotion
). - Assign two uplink ports to the switch, then click Next.
- Select physical adapters to each of the hosts, then click Next and Finish.
- Expand the Distributed switch you just created, click the dvPortGroup and click Edit Settings.
- Name the dvPortgroup (for example,
vMotion-01
). - Click VLAN and assign a VLAN ID as required.
- Click the Teaming and Failover tab, configure dvUplink1 as
Active Uplink
and move dvUplink2 toStandby Uplink
. - Right-click the Distributed vswitch, then click New Port Group.
- Name the dvPortgroup (for example,
vMotion-02
). - Click VLAN and assign a VLAN ID as required, then click Next and Finish.
- Select the second portgroup created, then click the Teaming and Failover tab.
- Configure dvUplink2 as
Active Uplink
and move dvUplink1 toStandby Uplink
. - Go the Hosts and Clusters Inventory tab, select a host's Networking, and click vSphere Distributed Switch.
- Click Manage Virtual Adapters and click Add to add new virtual adapter.
- Choose VMkernel as the Virtual Adapter Type.
- Select the
vMotion-01
portgroup, click Use this port group for vMotion, then click Next. - Configure the IP address and subnet mask, then click Next and Finish.
- Add another virtual adapter, then select the
vMotion-02
portgroup. - On the Distributed vSwitch, select each dvportgroup on VMKernel Port
vmk1
andvmk2
in turn, and confirm that the active and standby uplinks are the reverse of each other.
Note: Ensure that both VMkernel interfaces participating in the vMotion have the IP address from the same IP subnet.
After making these configuration changes, when you initiate a vMotion, multiple NIC ports are used. Even when performing a vMotion on just one virtual machine, both links are used.
If you do not have dedicated links for vMotion, consider using Network I/O Control. vMotion can saturate a link. When you have set up Network I/O Control, and assigned the correct amount of shares, each type of traffic gets what it has been assigned.
Note: vMotion and IP-based storage traffic should not be routed, as this may cause latency issues. Any internal/private subnet can work as long as it is unique and dedicated exclusively to that specific type of traffic. Routed IP storage is not supported. Follow the recommendations for IP-based storage configuration published by VMware.
No comments:
Post a Comment