vmware

Using CLI to Manage DVS Host Uplinks

Ever needed to modify a DVS uplink configuration from ESXi Shell? I am currently troubleshooting some issues with DVS uplinks no longer being assigned on reboot. As a heads up. If you are doing this on ESXi 6.0.. don’t. It can cause an issue with the proxy DVS having different ID than the actual DVS causing my original issue, still working with VMware Support to find out more details. After “Restoring Network Configuration” a few too many times, I finally realized I could just add the uplinks back via CLI until support can figure out why this is occurring, here are the details on how to manage the uplinks on a DVS via CLI.

Disconnected vNIC's?

Ever wonder why a VM isn’t on the network? I was working on deploying some test VM’s and for some reason all the VM’s that were cloned decided to start with the network disconnected, and the connect on power on was also not selected. I decided to throw together this quick one-liner that will make sure every VM is set to start connected on power on and is currently connected.

Unregistering vSphere 6 VCSA from PSC

So I am in the process of doing some vSphere 6 testing and needed to test a redeployment of one of my VCSA’s. The problem is when I went to redeploy it I got the following error. Decoding the error, I pretty much figured that the object already existed in the SSO database and I needed to delete the existing object. Here is how you do that. Log in as root to the appliance shell of the Platform Services Controller appliance with which the vCenter Server Appliance is registered.

ESXi 5.5 Update 3a Released

ESXi 5.5 Update 3a and its associated patch have been released. If you have been following KB2133118 in regards to the the Snapshot Consolidation causing Virtual Machines to crash a fix is now available. If you are currently running ESXi 5.5 U3 you can use update manager to install the patch. If you are looking to install ESXi 5.5 U3 from scratch or update from a previous version you should make sure you update to 5.

ESXi 6.0 Update 1a Released

ESXi 6.0 Update 1a has been released. If you have been following KB2124669 in regards to the the NETDEV WATCHDOG issue causing an ESXi host to hang. The update is now available. If you are currently running ESXi 6.0/6.0U1 you can use update manager to install the update. If you are looking to install ESXi 6.0 U1 from scratch or update from a previous version you should make sure you update to use the latest ISO.

Unable to SSH to vSphere 6 VCSA or PSC

So I am in the midst of setting up a vSphere 6 POC and it has been a bit since I played with it. I came across a problem I thought i would document and share. While trying to setup my Platform Service Controllers for HA. I was having issues sshing into the appliance. I kept on getting errors, that the packet sizes were too big or just authentication would fail.

Unable to join PSC to Domain via Webclient

I am actually pretty surprised this bug still exists. I came across this issue with my first deployment of vSphere 6. Now I am circling back around to do a POC and it still exists. When trying to join a Platform Services Controller to the domain via the vSphere Webclient I get the following error: “java.lang.reflect.invocationTargetException” There are currently two workarounds now with 6.0U1 I am aware of. The first method is to join to the domain using the CLI.

vSphere 6.0 Update 1 Released

Today vSphere 6.0 U1 is released. This is normally the update everyone waits for before upgrading their production environments to the latest version. I think the first time in awhile, a lot of people will wait. You see, VMware has had a bug KB2124669 since ESXi 6.0 that can cause an ESXi host to randomly lose connection, freeze and overall act really terrible. With the release of 6.0U1 it still exists.

vSphere6 - Unable to use session credentials

So one thing I have come across with a few VCSA6 installs was the inability to use login with current credentials via the Web client or vSphere client. Working with VMware support we were finally able to get it working with a few tweaks and there is a current pending KB that has not been published yet. (KB2113038) I have been told this affects both an embedded deployment (VCSA and PSC together) and external deployment (VCSA and PSC seperate.

vSphere 5.x Storage vMotion Does Not Rename Virtual Machine Files.

After upgrading vCenter this functionality is no longer enabled by default. Please perform the following steps to enable rename of files upon successful Storage vMotion. Log into the vSphere Client as an Administrator Click Administration > vCenter Server Settings Click Advanced Settings Add this advanced parameter key: provisioning.relocate.enableRename Set the value to: true Click Add Click OK Restart the VMware VirtualCenter Server service for the changes to take effect