There are a few of my customer still running vSphere 5.1 U1 and one of them reported an issue related to the VMFS Heap Size (VMFS3.MaxHeapSizeMB) configuration a few days ago. Keep in mind that my customer upgraded to U1 from a previous vSphere 5.1 version meaning that the old VMFS3.MaxHeapSizeMB was retained at 80 MB …
Category Archive: Script
Backup vSphere vNetwork Distributed Switches using PowerCLI
A few weeks ago a customer asked me how to automate the export of the vSphere vNetwork Distributed Switches (VDS) configuration. Their existing routine included to make a manual export of the VDS configuration whenever a VDS change was implemented including adding or removing a VDS port group. In the vSphere Web Client you can …
Update vSphere DRS rules using PowerCLI
I was asked by one customer last week to create a script that adds virtual machines to a vSphere DRS group, “VM DRS Group”, based on virtual machine guest operating. My customer runs vSphere 5.1 and a licensing issue was the underlying cause of the request. My customer have two vSphere clusters running 16 ESXi …
Configure and report the ESXi host TSM-SSH service using PowerCLI
A customer contacted me the other day asking for a way to verify if the ESXi host TSM-SSH (SSH) service is running, and if so: Turn off the TSM-SSH service. Send an e-mail report including all ESXi hosts where the TSM-SSH service was stopped. The customer’s vSphere administrators sometimes enable the ESXi host TSM-SSH service …
vSphere and vCloud Director database creation script
A customer called me yesterday asking for a script to create the necessary databases to run: vCenter Server vCenter Single Sign On vCenter Update Manager vCloud Director The customer was about to perform a clean install in their test environment and will be using vCenter Server 5.1 U1, ESXi 5.1 U1 and vCloud Director (vCD) …
ESXi host advanced configuration using PowerCLI – parameter Net.BlockGuestBPDU
I was recently asked by one customer to verify the existing Bridge Protocol Data Unit (BPDU) Filter configuration for their 75+ ESXi hosts and if needed (not activated) change the default configuration from the value “0” to the value “1” to activate the feature. This blog post will focus on the PowerCLI configuration and not explaining …
vCloud Director cell firewall management
At present time, 2013-04-30, the Red Hat Enterprise Linux operating system (64 bit version of 5.4, 5.5, 5.6, 5.8, 6.1, 6.2 and 6.3) is the only one officially supported by VMware for vCloud Director (vCD) 5.1.2. Please see the vCD 5.1.2 release notes found here regarding the Red Hat Enterprise Linux 6.3 support since the the …
vCloud Director Management cluster disaster recovery
A while ago i needed to perform a vCloud Director (vCD) management cluster disaster recovery. There are four main sections in the blog post: Infrastructure – describes the infrastructure used by the vCloud Director Management cluster environment. Rollback reasons – describes why the HP LeftHand P4300 storage volume rollback was carried out. Rollback preparation – describes …
Change ESXi license using PowerCLI
A few days ago a new customer asked me to review the PowerCLI script used for the initial ESXi host configuration. The ESXi hosts are factory installed and the most recent batch of ESXi hosts were all configured with the “VMware vSphere Hypervisor 5 License” license. This means the initial ESXi host automatic PowerCLI configuration …
VM per datastore PowerCLI e-mail report
I have been asked to create a monitoring script to calculate the number of virtual machines per datastore. I know there are a lot of examples in the community doing the exact same thing. This particular case includes one requirement which i have not seen in the communities examples. My customer wants one e-mail to …
vCloud Director vApp Template IP Mode bug
2013-05-06 – I am happy to inform you that the vCloud Director version 5.1.2 does not contain the problem described in this blog post // Magnus Andersson I have been involved in several vCloud Director (vCD) implementations lately where the customer requires the following: One virtual machine per vApp and/or vApp Template. The vApp virtual …
ESXi host disk.terminateVMOnPDLDefault configuration using PowerCLI
This section is updated since vSphere 5.5 was GA during VMworld 2013. From now on the configuration option has changed regarding two things: Name – It is now called VMkernel.Boot.terminateVMOnPDL and not Disk.terminateVMOnPDLDefault Configuration – It is now an advanced ESXi configuration parameter and not a text string in the ESXi host file /etc/vmware/settings Continue reading if …
vSphere cluster resource pool configuration script
This blog will include the technical aspect (the script) which i mentioned in the blog post vCloud Director implementation for small businesses Input parameters: 4 vSphere cluster resource pools exists at the vSphere cluster root level SLA-Gold with priority value 10 SLA-Silver with priority value 5 SLA-Bronze with priority value 3 SLA-vCloud with priority value …
vCloud Director – monitor failed login attempts without syslog
Last week i was asked by a customer how they could monitor failed login attempts in vCloud Director. The customer required the ability to use their existing monitoring tool and read the failed login attempts from a file every hour. The customer did not have a syslog server in place, will be implemented during Q2 …



