Category Archive: Script

Feb 28 2017

Change AHV Based Nutanix Controller Virtual Machine (CVM) RAM

A few days ago i changed Nutanix Controller Virtual Machine (CVM) Memory configuration for a customer. There is a Nutanix KB about this which can be found here here but since it includes manual steps i figure i create a script which you can run from the AHV host. This blog post is divided into the following sections: …

Continue reading »

Oct 11 2016

Duplicate random generated data in Linux based VM

A few weeks back i create a blog post about how to create random data in a Linux (CentOS) based VM which you can read here.  Based on that post i have received a few comments and one in particular i’ll address in this blog post and it was about the time it takes to generate …

Continue reading »

Aug 23 2016

Generate random data in Linux based VM

A few weeks back i was asked by a customer to create a lot of random data in same amount of Linux (CentOS) based VMs as there were Nutanix nodes in their cluster. I can see multiple reasons for doing this but that is a complete separate discussion, i just wanted to share the bash …

Continue reading »

Jun 01 2014

vSphere VM vCPU to ESXi host CPU core allocation

There has been quite a lot of discussion regarding resource utilization and resource allocation in vSphere environments lately. There are a lot of tools around doing analysis (some better than others) of your environment and gives suggestions if you need to e.g.: Add more resources (CPU, RAM, Disk, Network) to your vSphere cluster. Down size …

Continue reading »

Feb 25 2014

Create multiple VMs from existing vSphere VM using PowerCLI

I recently published the blog post “Create multiple VMs using PowerCLI” and as i mentioned in the post i thought the next request would be a PowerCLI script to create multiple VMs from an existing vSphere virtual machine (VM). It just took a few days before the request reached my email inbox. I actually received a few …

Continue reading »

Jan 30 2014

Create multiple VMs using PowerCLI

A couple of days ago i received a request from a customer asking for a PowerCLI script to create VMs. There were a couple of requirements for the script. Specify the number of VMs to be created. The VMs must be powered on after the creation. The VMs must be placed on all ESXi hosts …

Continue reading »

Jan 21 2014

ESXi host VMkernel.Boot.terminateVMOnPDL configuration using PowerCLI

I have already written a blog post about how you can configure the ESXi host  setting disk.terminateVMOnPDLDefault in vSphere version 5.1. You can find that blog post here. I have received a couple of questions about how to configure the setting, called VMkernel.Boot.terminateVMOnPDL, in ESXi 5.5 so i decided to put together a blog post about it. …

Continue reading »

Jan 08 2014

ESXi 5.1 VMFS HeapSize configuration using PowerCLI

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 …

Continue reading »

Oct 29 2013

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 …

Continue reading »

Aug 02 2013

Use PowerCLI to compare virtual machine configured and installed guest operating system

When i presented the result from a vSphere health check the other day my costumer was quite surprised that a few of his virtual machines had an installed guest operating system that didn’t match the guest operation system configured in vSphere. Several other blogs covers the importance of having a configured guest operating system in vSphere …

Continue reading »

Jul 09 2013

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 …

Continue reading »

Jun 13 2013

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 …

Continue reading »

May 21 2013

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) …

Continue reading »

May 06 2013

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 …

Continue reading »

Apr 30 2013

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 …

Continue reading »

Apr 17 2013

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 …

Continue reading »

Older posts «