vSphere 6.5

VMware vSphere 6.5 Change vmkernel MTU size

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 has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon 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.

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.