Category Archives: ESXi

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 v6.5 release  on these blogs; ESX Virtualization Vladan Seget VirtualizationIsLife  Anthony… Read more »

VMware DRS rule manipulation using PowerCLI (EMC VPLEX use case) Part 1.

VPLEX is another of my favourite products,  and for good reason. I currently run a Metro cluster underneath a VMware platform that has proven to be super reliable. One important design consideration for this is to ensure that VM’s are configured for site bias. Why ? Glad you asked. In a VPLEX Metro configuration, a VPLEX detach rule is defined… Read more »

ESXi – Removing a stubborn Nexus 1000v VIB

      No Comments on ESXi – Removing a stubborn Nexus 1000v VIB

Happened upon an unusual error while wrestling a Nexus 1000v out of a ESXi 5.1 host. All seemed to progress well, the host was removed from the dvs without issue.  The next step was to remove the Cisco vem VIB from the host in preparation for upgrade. esxcli software vib remove -n cisco-vem-150-esx  (or whatever vib name you are removing… Read more »

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 to be a repeated request (for various vlans) so presented… Read more »

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 create the Access PortGroup and assign VLAN 29 to it…. Read more »

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 from the shell or cli. This has been valuable to… Read more »

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 hosts in a dev cluster, I planned to reboot them… Read more »

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 (albeit temporarily) with ESXi 4.1 u2 +. See the original… Read more »

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; Affected Versions; ESXI 5.1 & ESXi 5.5 Powerpath/VE 5.9.1  … Read more »

VMware ESXi CBT bug PT3 — ESXi 5.5 now fixed.

This now becomes the 3rd post regarding the infamous Changed Block Tracking bug that was/is evident in all versions of ESXi 4+. If you missed them, Part 1  &  Part 2 Finally today we see the bug squashed in ESXi 5.5 with the release of Patch ESXi-5.5.0-20150104001-standard (2099271). This still leaves 4.x susceptible though so I urge any good folk using… Read more »