Category Archives: Automation

Ansible 2.0 installation ERROR on ubuntu ! {Unexpected Exception: No module named markupsafe}

By | 4th May 2016

The latest Ansible is available now and it can be easily installed on Ubuntu 14. Ansible installation was giving the following error while trying to install. It was pretty easy to get it fixed. During the installation of Ansible it was giving the below error. >> rsa@ubdesktop:~$ ansible ERROR! Unexpected Exception: No module named markupsafe… Read More »

Using Ansible to install vmware tools (open-vm-tools)

By | 1st August 2015

Installation of vmware tools for linux versions can be done using the open-vm-tools. Noticed the below message while trying to install vmware tools on my Ubuntu 14.04 $ sudo ./vmware-install.pl [sudo] password for rsa: open-vm-tools are available from the OS vendor and VMware recommends using open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information. Do you still want… Read More »

Creating Nested ESXi VMs using Powercli

By | 5th May 2015

In case of lab environments the best method is to create Nested ESXi VMs. This can be accomplished easily by creating ESXiVMs with the GOS as ESXi 5.x. Wrote a  small script which does the same thing. There might be other ways of doing this like using autodeploy or using API to create the ESXiVMs at the… Read More »

Powercli script to shutdown and Poweron VM

By | 14th April 2015

Powercli script to shutdown and start of virtual machine. This powercli script was created for a specific use case where we needed to shutdown the virtual machine and start it after shutdown is complete. During the writing of the script found the most important case is how you cleanly shutdown your virtual machine and then… Read More »

Starting with Ansible

By | 14th April 2015

This Blog post is about getting started with Ansible. Getting started with Ansbile. If you haven’t started using Ansible then it is something you are missing. Ansible is a configuration managemnt tool. It can be installed on any linux machine. For this demo using ubuntu 12.04 It has some of the dependencies that need to… Read More »

vCloud director: List of available powercli commands (vcd)

By | 17th February 2015

PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> Connect-CIServer -server 192.168.1.18 -User Administrator -Password ” PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> get-command -Module vmware.vimautomation.cloud | select name Name —- Add-CIDatastore Connect-CIServer Disconnect-CIServer Get-Catalog Get-CIAccessControlRule Get-CIDatastore Get-CINetworkAdapter Get-CIRole Get-CIUser Get-CIVApp Get-CIVAppNetwork Get-CIVAppStartRule Get-CIVAppTemplate Get-CIView Get-CIVM Get-ExternalNetwork Get-Media Get-NetworkPool Get-Org Get-OrgNetwork Get-OrgVdc Get-ProviderVdc Import-CIVApp Import-CIVAppTemplate New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-Org New-OrgNetwork… Read More »

Powercli script to create a new vswitch and enable it for iscsi

By | 9th December 2014

The following script creates a new vswitch by name iscsi Adds vmnic1 as the physical adapter adds the portgroup iscsi Interesting Note: to make the portgroup as vmkernel easy method to say -ConsoleNic:$false. #Configs $VC=”172.16.1.17″ #vcenter server $user=”root” $password=’vmware’ Connect-VIServer -Server $VC -User $user -Password $password $esxall=Get-VMHost -Server $VC foreach($esx in $esxall){ $vswitch = New-VirtualSwitch… Read More »