Wednesday, November 15, 2017

Migrating VMkernel adapters on vSphere Distributed Virtual Switches

A chicken/egg scenario can sometimes occur when setting up DVS (distributed virtual switch) in a vCenter cluster. The issue being your vCenter is connected to your host over its' vmk0, so any network changes have to be confirmed or else they will be rolled back. In my case, i wanted to change the links to have my management network be a tagged VLAN instead of native. The problem here is that i would need to make the change in vCenter, then change the tagging on the switch ports, then hope that it picked up the changes. In almost all cases, it didn't, and reverted the settings. In a few cases i got lucky with the timing and it worked, but most of the time it didn't.


The solution is to set the Advanced vCenter setting of config.vpxd.network.rollback to false, then make the change. This causes it to not roll back the changes, so you better be sure that your configuration is correct. This should of course be set back to true when you're done.