VMware ESXi – PowerCLI for bulk vSwitch changes

The reward for effort when scripting is almost always worth it. Today I had the task of removing a particular AntiVirus product from a 36 host VDI cluster. Part of this requires the removal of NSX-Manager and all the groovy components it uses to do it’s thing, including a vSwitch Continue Reading

VMware & Dell EMC Unity – Restore VM/Datastore from array snapshots

Some people say that snapshots are not backups. While that’s a claim with dubious merit, they certainly can form part of your backup and data protection plans. We all know snapshots are cool. Array snapshots are also cool. In this post, I’m going to examine using Dell EMC array based Continue Reading

ESXi 5.5 – Automating VMFS UNMAP w/ PowerCLI and PowerShell

With vSphere 6.5 recently released, a nice feature was the automated execution of the UNMAP command against thin provisioned datastores to reclaim space. This requires no user interaction, it’s fully automated for you and can free up significant amounts of space from your datastores. There’s some good information regarding the Continue Reading

VMware ESXi – Get VM’s by VLAN ID with PowerCLI

Often when when working in large environments you’ll get interesting requests. These may be to assist in troubleshooting, auditing, reporting or any other reason. I was recently requested to provide a list of mac addresses for every VM with a vNIC in a specific vlan. I had a feeling this was going Continue Reading

VMware ESXi,Nexus 1000v: Add New vDS Port-Group + error “spec.numPorts exceeds the limit..”

If you’re familiar with Cisco IOS and networking in general, creating a new PortGroup on a Nexus1000v is pretty straightforward. Here I’m going to add a new Port-Profile, of type ‘vmware port-group‘ called “VM_Prod_29” with VLAN ID “29 “. Login to the active VSM and first create the VLAN;

Then Continue Reading

ESXi – An oldie but a goodie – CDP info via PowerCLI and Host CLI

When you don’t use something for a while, you tend to forget how valuable it can be. Even from its very early iterations, ESXi has been able to display CDP information so you can quickly establish “what’s patched where “.  Easy to get from the gui, but far more useful Continue Reading

EMC VPLEX Metro: Cluster Witness Server Maintenance

Although it’s not mandatory, the Cluster Witness Server (CWS) in a  VPLEX Metro Cluster serves a very important purpose as the arbitrator between inter-cluster network partition failures and actual cluster/site failures. It’s a lightweight (<3GB) VMware vm deployed from an OVA that establishes itself in a 3 way VPN between Continue Reading

vSphere/ESXi: When good tasks go bad – Fix with ESXCLI via PowerCLI

Most of the time, tasks we start in vSphere just work. That’s why we love it. Queue ’em up, and move onto something else. Sometimes though, they go bad. They freeze, stick, die or just plain error out. This happened to me last week. After changing the scratch location for Continue Reading

ESXi/vSphere 5.5 U2: old NFS/vMotion issue reincarnated “remote host IP_Address failed with status Busy”

Uh oh, an old issue seems to have been reincarnated in vSphere 5.5 U2 which may cause vMotions of guests on NFS storage to fail with the error: remote host IP_Address failed with status Busy This issue was first evident some time ago where it affected V4.1 and was subsequently fixed Continue Reading

Heads up ! – EMC PowerPath/VE 5.9.1 & VMware ESXi 5.x potential disruption

It’s HEADS UP! time again, as usual courtesy of an EMC TA bulletin. ‘VMware ESXI hosts may become unresponsive after adding or removing LUNs when running PowerPath/VE 5.9.1’ This doesn’t sound like a particulalry fun way to start or end your day so read on if you want to avoid it; Continue Reading