Terraform Basics (with VMware)

Hashicorp’s Terraform is an Infrastructure as Code (IaC) declarative language that allows you to define the existence and state of objects within your infrastructure and then publish this new state to your infrastructure. Terraform is agnostic of platform, you can use a wide range of “providers” to manage a number of different infrastructure components from … Read more

VMware Datastore Showing “Not Consumed”

I had a host that was showing devices with no datastore, saying “Not Consumed”. This is what you’d expect to see for a device where the device has yet to be formatted with VMFS. Now in this case it definitely had a VMFS filesystem created. The fix for this was fairly simple. Essentially the host … Read more

Resolve Missing Dependencies VIBs Error VMware Upgrade 6.7 to 7.x

You may see the following error when attempting to perform an upgrade to a host, the issue is also described in: https://www.vcloudnine.de/upgrade-to-esxi-7-0-missing-dependencies-vibs-error/ We came across this issue when attempting to upgrade to version 7.0.3 of VMware ESXi, these hosts had some driver VIB updates performed over their lifetime to remediate PSOD issues. Upon attempting an … Read more

Unable to Remove Host from vSphere Distributed Switch (The resource ‘105’ is in use)

We were performing the migration to new Distributed Switches (running a later version) ready for our vCenter 7.x and ESXi 7.x upgrade and when attempting to remove a host from a distributed switch we got this error: VMware has an article KB76959 that describes this issue, however in our case rather than the VM (or … Read more

Testing iSCSI Connectivity from VMware ESXi to Storage

If you wish to test the connectivity through from your VMware ESXi host through to its storage when using iSCSI you can perform steps such as the following described within: https://kb.vmware.com/s/article/1003728 Firstly run this to get your list of vmKernel ports: Assuming you’ve labelled the vmKernel ports you use for iSCSI with something sensible you … Read more

VMware Distributed Virtual Switch Version Upgrade via Side-by-Side Migration (vSwitch 6.0.0 to 6.5.0 or 6.6.0)

VMware have recommended that upgrading from Distributed vSwitch version: 6.0.0 to 6.5.0 or 6.6.0 should be done as a side by side migration rather than an in place upgrade due to the risk of outage when performing the upgrade in place, this is detailed in the following VMware article: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-330A0689-574A-4589-9462-14CA03F3F2F4.html. It is understood that vDS … Read more

VMware Datastore Naming

How do you name your VMware datastores? Its an interesting question, how much information do you want to convey? Do you want to give a system administrator some idea of the data protection provided by the underlying storage perhaps? Or some idea of the location? There’s lots to think about, but also simplicity can be … Read more

Can’t vMOTION Powered Off Virtual Machine

I had an issue where I could not vMOTION a powered off Virtual Machine. This virtual machine was quite large 1.2TB in total of disks attached. The VM was powered off and needed to be moved to some archive storage all on VMFS. When attempting to move it would start moving and after around 50 … Read more

Can’t unmount an NFS datastore from a ESXi host

PROBLEM As part of a storage replacement programme, we had migrated all our VMs off the NFS datastore. When attempting to unmount the datastore from the host(s) we where given this error: Call “HostDatastoreSystem.RemoveDatastore” for object “datastoreSystem-122544” on vCenter Server “vcenterFQDN” failed. An unknown error has occurred. Checking the /var/log/vmkernel.log on the host we saw … Read more