PowerCLI: Add & remove VMs from DRS Groups based on datastore location

Lately I have been working on a number of virtualization projects which make use of VMware vSphere Metro Storage Clusters (vMSC). With most of these types of implementations, virtual machines must be pinned to a preferred site to minimise impact to virtual machines in the event of a site failure. DRS groups are the most common way to achieve this, however I was wanting to find a way to automate the add/remove of virtual machines based on each VM’s datastore location.

To begin, I configured each of the datastores with a prefix of the site which was its preferred site, e.g. DC1-VMFS-01 or DC2-VMFS-01. I then placed VMs on a datastore which corresponded to their preferred site.

With the help of DRSRule I was then able to create two PowerCLI functions to automate the process to add the VMs to a corresponding DRS VM group based on their datastore location. The function can be used with a datastore name, prefix or suffix.

This worked perfectly well, but what I soon discovered is that if a user migrated a VM to another datatore then a VM could potentially be a member of two DRS groups. So I created an additional function to remove VMs from DRS groups also.

Now using each function I can now add and remove VMs from pre-existing DRS Groups based on their datastore location.

VMware Update Manager is not displayed in the vSphere 6.0 U1 Web Client

With the release of VMware vSphere 6.0 Update 1, VMware Update Manager capabilities are now available from within the vSphere web client, or so I thought. After deploying the new vCenter 6.0 U1 Server Appliance and a separate Microsoft Windows server for VMware Update Manager 6.0 U1, I found that the VUM icon was missing from the vSphere web client. After numerous reboots of both the vCSA and VUM server, a reinstall of VUM, and a quick read of the Update Manager 6.0 U1 release notes, I finally managed to resolve the issue by simply re-registering the web client using the VMware vSphere Update Manager Utility.

Continue reading “VMware Update Manager is not displayed in the vSphere 6.0 U1 Web Client”

VMware Converter: “The operation experienced a network error”

Last week I encountered some issues with converting a Hyper-V 2008 R2 virtual machine to VMware vSphere 5.5 using VMware Converter 6.0.

Before attempting the conversion I first disabled SSL encryption within VMware Converter (kb.vmware.com/kb/2020517) to help improve the conversion speed. I then proceeded to configure VMware Converter using the default settings for the source and destination VMs.

The converter process started OK however at 33% completion the job had failed with the following error: “An error occurred during the conversion: ‘The operation experienced a network error’“.

At this point I had also noticed that my destination ESXi host had also disconnected from vCenter. After a few minutes the host began to respond and I had noticed it too had an error, “/sbin/hostd crashed (1 time(s) so far) and a core file might been create at /var/core/hostd-worker-zdump.000. This might have caused connections to the host to be dropped.

Continue reading “VMware Converter: “The operation experienced a network error””