State of things…

December 27, 2013 – 9:01 pm

I have lost a little of my drive to study in the past year, I guess I gave too much the year before with the CCNP, CCNA Security, and the MCSE 2012 🙂 Soooo… I’m trying to get back into it a bit.

I have moved to a new mandate, doing the detailed design for a VMware vSphere deployment (2 vCenters, 24 hosts). While configuring things, I wanted to use PowerCLI to automate certain configurations (especially since I had to repeat them on both environments). And… I got hooked I guess !

I joined that project a bit late in the game, some of the deployment tasks were already done (they had already built about 200 VMs). All of them with E1000 interfaces… So after scouring the net for scripts to automate the upgrade, I customized and rearranged pieces of code that I found to come up with a great script that works really well. I will post it here when I get back to work and grab my latest update.

Basically, it checks if the virtual NIC of a VM is E1000, captures the IP information, shuts down the VM, changes the NIC type to VMXNET3 (retaining the MAC address), sets the “automatically update the VM Tools at power up” feature, starts the VM, runs external tools to remove ghost devices, disables IPv6 (client requirement), restores the IP information, disables automatic DNS registration and restarts the VM one last time.

Oh and if you call the script with a cluster name instead of a VM, it runs on all VMs in the cluster 🙂 So yeah, I didn’t reinvent the wheel but I made it work for my client’s needs.

To be continued…

Post a Comment