Retrieving VM inventory information using PowerCLI

Following on from collecting VM Host inventory information (http://wp.me/p15Mdc-mC), I am now looking into returning inventory information for all the VMs where the following would be retrieved: Name Host vCPUs Memory (MB) CPU Reservation CPU Limit CPU Share Allocation Memory Reservation Memory Limt Memory Share Allocation Operating System Annotations In order to invoke the PowerCLI cmdlets … More Retrieving VM inventory information using PowerCLI

Create VM annotation based on deployed template name

I was recently looking to create a virtual machine annotation type to include the template name to which a virtual machine was deployed from. I was able to achieve this by using the Get-VIEvent cmdlet to return a match for a virtual machine where the event was equal to “VmBeingDeployedEvent” and formatting the output string … More Create VM annotation based on deployed template name

Automating the simulation of random memory workloads using TestLimit utility with Powershell

I was recently looking at simulating memory usage across a number of VMs where the utilisation pattern, time duration of the memory load and idle time between workloads would be random. I was looking at using the Sysinternals TestLimt utility to achieve this by invoking a leak and touch memory to simulate resource usage. As I … More Automating the simulation of random memory workloads using TestLimit utility with Powershell

Guest Customization of VM fails with “Error : Could not create file /etc/dhcp3/dhclient.conf!”

I was recently deploying VMs from a Ubuntu template using guest customisation, where guest customization fails and the IP address also fails to be updated with the following error: An error occurred while customizing <VM>. For details, reference the log file /var/log/vmware-imc/toolsDeployPkg.log in the guest OS On investigating the log file, the following error has … More Guest Customization of VM fails with “Error : Could not create file /etc/dhcp3/dhclient.conf!”

Patch Management for guest VMs with Windows Update Server and WuInstall on vSphere

I previously detailed steps to automate approved updates from a WSUS server with WUInstall (https://deangrant.wordpress.com/2013/09/24/patch-management-with-windows-update-server-and-wuinstall/) which focused on installing updates on Amazon Web Services EC2 instances. I have recently modified the process to take into account VM guests in a vSphere environment ,using the same process of client side targeting and executing WuInstall on the … More Patch Management for guest VMs with Windows Update Server and WuInstall on vSphere