vSphere 6.5

VMware vSphere 6.5 Change vmkernel MTU size

Let's take a look at with VMware vSphere 6.5 Change vmkernel MTU size for performance on vmkernel ports especially with iSCSI and vMotion.

When dealing with VMkernel ports in vSphere 6.5 for most use cases for performance, we want to enable jumbo frames on the vmkernel ports to allow for less fragmentation of the packets for iSCSI, vMotion, and so forth. ย Let’s take a quick look at the topic of VMware vSphere 6.5 Change VMkernel MTU sizeย with the web client as well as with PowerCLI.

VMware vSphere 6.5 Change vmkernel MTU size

Changing the MTU size in the web client is a bit clunky as you have to click in the right place to get the MTU options for your VMkernel ports. ย However, it is fairly straightforward with just pointing and clicking.

Underย Networking >> Virtual Switches. ย We then need to click the vmkernel port group and click the vmk nic and IP address. ย Then click the “pencil” button which takes us to where we can modify the vmk nic settings.

vkernmtu01

Here we can change theย NIC settings toย 9000.

vkernmtu02

Also, make sure the vSwitch itself is also set for Jumbo frames. ย Click the vSwitch above and the pencil icon above the vSwitch section. ย Here we can set the jumbo frames MTU to 9000.

vkernmtu02b

Using PowerCLI

Alan Renouf has a great one liner script for getting vmkernel port settings including MTU and altering these to 9000.

Getting the port settings.

Get-VMHost | Get-VMHostNetworkAdapter | Where { $_.GetType().Name -eq "HostVMKernelVirtualNicImpl" } | Select VMHost, Name, MTU

Changing the settings without confirming:

Get-VMHost | Get-VMHostNetworkAdapter | Where { $_.GetType().Name -eq "HostVMKernelVirtualNicImpl" } | Foreach { $_ | Set-VMHostNetworkAdapter -Mtu 9000 -Confirm:$false }

Before:

vkernmtu03After:
vkernmtu04

Thoughts

VMware vSphere 6.5 Change vmkernel MTU size is easily accomplished either in the Web client or by using PowerCLI. ย The beauty of PowerCLI is that if you want to make mass changes, there is simply no way to do these kinds of bulk changes in the web client so PowerCLI is a much better option. ย There are many great one liners out there written by Alan and others that are extremely useful making these types of changes.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.