PowerCLI

Upgrading VMware Tools Without a Reboot Using PowerCLI

Historically, one of my biggest little annoyances with a VMware version upgrade has been upgrading VMware tools. In vSphere 5.5, VMware added the ability to update tools without a reboot. If you were manually kicking off the tools upgrade all you need to do is enter the following features into the advanced settings box /s /v"/qn REBOOT=ReallySuppress? This is great and causes the tool update to only lose one ping instead of requiring a full restart.

'Tis the Season for Certification

The end of the calendar year brings family, travel, and performance evaluations. A big part of mine is training and tech development. It’s never too soon to start thinking about what is new and where your are interested in strengthening your skill. I asked some tech experts what skills are the stuff to learn for 2017. Keith Townsend @ctoadvisor responded with Scripting (ie Cloud Formation, Powershell, Python) Hybrid infrastructure networking (AWS VPC>VPN integration)

Automation in Action: Which Hosts are Accessing a Given Datastore?

One of the biggest challenges in a new environment can be mapping out resources. In a large environment you may encounter ESXi hosts that were moved between clusters, datastores that were mapped to multiple unnecessary hosts, or any number of additional surprises or inconsistencies. I encountered such a challenge and needed to answer a seemingly simple question: Which hosts and which clusters would be impacted by a loss of a datastore?

Check and Configure Time Service Datacenter-wide

I once had an opportunity to improve and standardize ESXi host time synchronization in an environment with hundreds of hosts. There had been issues with time sync and drift that needed to be addressed. To fix this I turned to PowerCLI to do a quick and dirty dump of the configuredNTP settings on each of the hosts in the Datacenter. Get-VMHost | Get-VMHostService |Where-Object {$_.key -eq "ntpd"} This commandlet returns output which gets us part of the way to the solution, but we can refine it and make it better.

Investigating VM Configuration Changes

Tracking resource configuration is a common struggle for an enterprise level environment. Even SMBs can have trouble keeping track of how their memory is provisioned and when it changes. What’s worse, VMware’s vSphere Client doesn’t provide any insight as to what changes when someone edits the virtual machine settings. An event named"Reconfigure virtual machine" hits the task log but this isn’t a lot of information. If you open Edit Settings and click OK vCenter registers this event even if you didn’t change anything.

Disable Atomic Test and Set for Incompatible Storage Arrays

After performing an upgrade from ESXi 4.1/ESXi 5.0 to ESXi 5.5 u2 I noticed increased latency events on hosts. More troubling, the affected hosts were frequently dropping all presented datastores, though they would reconnect within a few seconds. The events may appear in your event log as below: While there are many possible causes to explore these sorts of connectivity issues, one that is often overlooked is how ESXi heartbeating to the datastores.