Connect with us

Hi, what are you looking for?

VMware ESX

VMkernel ports change automatically when applying a Host Profile

Wonderful little vSphere bug we came across today. Let’s say you have a host with the following VMKernel ports configured on the vSwitch:

-vmk1 = vMotion
-vmk0 = Management Network

When you create a host profile from the host, then apply that profile to a new host you are adding, the VMKernel ports get swapped! They will be:

Advertisement. Scroll to continue reading.

-vmk1 = Management Network
-vmk0 = vMotion

My co-worker came up with a good workaround. Put your affected host into maintenance mode, then go edit the Host Profile you had applied. It appears the kernel ports are created in the order in the Host Profile. So you just change the order from:

-vMotion
-Management Network

Advertisement. Scroll to continue reading.

to:

-Management Network
-vMotion

You do this by renaming “vMotion” to something like “vMotion2MN”. Then change the name of “Management Network” to “vMotion” and change “vMotion2MN” to “Management Network”. From here you need to make changes to each port group which are:

Advertisement. Scroll to continue reading.

-make sure the NICs are ordered correctly
-specifying the correct service for the port group
-making sure the IP is set to explicit

So for the vMotion port group, order the NIC:

Choose vmotion for the service:

Set the explicit IP option:

And for the Management Group, order the NIC:

Choose management for the service:

And set the IP to be explicit:

Make sure to press the OK button in the lower right button after every page or when you navigate to another page, it will lose whatever changes you made. Save the profile and re-apply it to your new host. Now it will recreated the VMKernel ports in the correct order.

Advertisement. Scroll to continue reading.
1 Comment

1 Comment

  1. Maya

    November 16, 2012 at 3:37 AM

    Hi
    I perhaps found something a little bit easyer: Just create a Host Profile from the “wrong” Host, the same Problem will occur, means the VMK change again. Apply this Host Profile and that’s it. I will try that out next Week.
    Regards
    Maya

Leave a Reply

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

You May Also Like

Apache

Today I would like to go over proper URL redirection when using SSL but first I would like to preface this by describing what...

Exchange 2003

A useful Exchange 2003 guide I wrote for a friend’s blog originally but I am posting it here on mine now for your viewing...

Citrix Workspace

You can use FIDO2 hardware security keys plugged into your physical desktop over the Citrix HDX remoting protocol for use with virtualized Windows Desktop...

Cloud Design Architecture

The community-driven paperback book initiated by my friends Bas van Kaam and Christiaan Brinkhoff is available for sale on Amazon. If you haven’t picked...

Advertisement

JasonSamuel.com was launched in 2008 as a platform to give back to the IT community by sharing knowledge and expertise. Over the years, it has become a trusted global resource for the latest insights, how-to guides, and thought leadership on enterprise mobility, security, virtualization, cloud architecture, automation, and other cutting-edge technologies. Today, it serves as a go-to reference hub for IT professionals, attracting hundreds of thousands of unique visitors from around the world each month. Learn more on the About Me page.
Copyright © 2008-2025 JasonSamuel.com