Tag Archives: PowerCLI

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 »

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 PowerCLI – What are you waiting for ?

I still talk to people who are reluctant to jump in and learn some basic scripting techniques. Usually their response is that it’s easy in the gui or “scripting is hard” or the “I’m not a developer so why bother ?”. Meh, make it happen. The facts is, learning some basic scripting techniques will save you considerable time and open up… 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 »

Back to basics – Hot add new disk to Linux VM

I recently showed this to a colleague who is new to Linux. It should be part of your minimum capabilities as an admin. Manipulating disks/volumes on a guest VM is a task we all have to do. In this post I’m going to detail how to add a new disk to an Ubuntu VM, online. Call it a “back to basics”… 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 »

VMware PowerCLI – Suppress vCenter Certificate warnings

A very quick post this one, but an annoying thing I often see left unchecked in environments, that is simple to fix in a minute. Yes, this is an old topic, but it’s still too evident today…. This should be in your “just do it” category. It’s the awful Certificate warning displayed in your Powershell session when you connect to… Read more »

PowerCLI – What went where ?

      No Comments on PowerCLI – What went where ?

I had a nice little episode with a set of PSOD looping hosts in December which resulted in a lot of guests getting moved around automatically during attempted HA recoveries. This got me thinking about all the automation that goes on ‘behind the scenes’ as a result of DRS and HA. Also when you have multiple admins, do you know if… Read more »