Archive for September, 2012

Nested ESXi

There is a great how-to over at Virtually Ghetto on enabling Nested ESXi on 5.1

There is also a great program called NEE over at VMware Labs, which I am lucky enough to have access to because I recently attended a training class, right before VMworld.

Nested ESXi is the strange act of running an ESXi VM on ESXi. You can also do it with Workstation, I recommend using Autolab is you are going that route.

 

Leave a comment

VMware View Deployment Spreadsheet

Update: Make sure to enter some text into the spreadsheet to make the fields populate.

This is a spreadsheet that automates almost all aspects of a VMware View deployment using Powershell and Concatenate. I built it mainly out of a desire to avoid using the Flash GUI that comes with View. It is slow and it makes me want to scream when I’m halfway through a 20-click wizard and I realize I need to look something up.

Be sure to keep this after using it- it doubles as your documentation. It is also everything you need to rebuild in a DR situation after restoring your templates and View servers.

It assumes you have deployed the View Infrastructure, have built some templates and taken snap shots. Look at each workbook left to right. Fill out the variables for you environment in the yellow fields, and use the grey fields to make scripts.  A further refinement would making a mail merge to spit all this into batch files for you. Copying and pasting into PowerGUI suffices for me.

Consistency

For each pool name entered, this will nest a Global AD Group into a Domain Local Group, add a space separated list of users to the Global Group, create an OU under a defined VDI OU, create a Resource Pool in vCenter, compose a Pool and then entitle the Global Group to the Pool.  This is set to create Floating Linked-Clone Automated Pools. If you wish to change this, feel free to edit this:

=IF(ISBLANK(‘Pool Sizing’!B9),””,CONCATENATE(“get-composerdomain | Add-AutomaticLinkedClonePool -pool_id “””, ‘Pool Sizing’!B9,”””  –displayName “””,’Pool Sizing’!C9, “”” -namePrefix “””,’Pool Sizing’!G9,”””  -resourcePoolPath “”/”,Datacenter,”/host/”,Cluster,”/Resources/”,’View Object Names’!C9,””” -parentVMPath “”/”,Datacenter,”/vm/”,BaseImages,”/”,’View Object Names’!D9,””” -parentSnapshotPath “”/”,’Pool Sizing’!F9,””” -datastorespecs “”[Moderate,replica]/”,Datacenter,”/host/”,Cluster,”/”,B9,”;[Moderate,OS,data]/”,Datacenter,”/host/”,Cluster,”/”,C9,””” -persistence “”Nonpersistent”””,” -organizationalUnit “”ou=”,’View Object Names’!E9,”,”,DesktopBaseOu,””” -minimumcount “””,’Pool Sizing’!H9,””” -maximumcount “””,’Pool Sizing’!I9,””” -headroomCount “””,’Pool Sizing’!J9,””” -refreshpolicytype “”Never”””,” -deletepolicy “”RefreshOnUse”””,” -powerpolicy “”AlwaysOn”””,” -vmFolderPath “”/”,Datacenter,”/vm”””))

Just make the GPOs for each Pool and you are set. Don’t create more than a Pool or two at a time, this will crater your environment if run too much at once.

Download the spreadsheet: vHipsterViewDeploymentTemplate

N.B. You have to start entering values to make code appear.

Be sure to consult the documentation if you need to modify anything.

, , , ,

Leave a comment

VMware Deployment Script Generator

This is a quick and dirty spreadsheet that concatenates together the commands to quickly deploy a bunch of VMs without clicking the GUI. All it takes Powershell, PowerCli and optionally PowerGUI. This is a method that will pound out dozens if not hundreds of clones, but it will not do anything fancy beyond cloning a VM, applying a customization specification and bring a bunch of servers up. You still need to IP the server, join to domain, etc.

This is an ideal solution when your boss gives you a spreadsheet with a ton of server names that needs to be deployed a week ago.

There are much more elegant ways to this, especially if you take the time to learn Orchestrator. I highly recommend Cody Bunch’s book Automating vSphere with VMware vCenter Orchestrator if you want to learn this free product that comes with vCenter.

Use with caution! Make sure you vary Hosts and Datastores!

vHipsterVMDeploymentScriptBuilder

N.B. You have to start entering values to make code appear.

Leave a comment

Concatenate

Have you ever needed to add two lines of text together, over and over, like a list of server names and the fully qualified domain name? This can have an endless number of uses for the lazy admin. I never liked writing scripts that read a list of variables from a text file. Its much faster and easier to use a bunch of one-liners in a batch file.

An easy way to do this is with Excel. Take two strings and cat, or concatenate, them together. Here is a diagram so that the Network Engineers reading this can keep up:

     +         =

Using Excel, it would look like this:

This simple method can be used incredibly complex commands, and are an ideal springboard for Powershell. Not only is this a powerful tool for automating deployments- you can keep the spreadsheet and label it “Documentation”.

I will be following up with some examples of how to automate VMware and VDI deployments using this method.

,

2 Comments

Virtually Everywhere

Harsha Hosur - VCDX #135.

Notes from MWhite

Sharing of ideas and knowledge to empower people through easier and smarter technology use

Yellow Bricks

vSphere, View, PowerCli, VMUGs and Certifications

Welcome to vSphere-land!

vSphere, View, PowerCli, VMUGs and Certifications

vTexan

vSphere, View, PowerCli, VMUGs and Certifications

vTesseract

vSphere, View, PowerCli, VMUGs and Certifications

vSoup

All about virtualisation from vSoup to vNuts!

vReference

vSphere, View, PowerCli, VMUGs and Certifications

vNugglets

vSphere, View, PowerCli, VMUGs and Certifications

VMwareTips

vSphere, View, PowerCli, VMUGs and Certifications

VMware End-User Computing Blog

vSphere, View, PowerCli, VMUGs and Certifications

VMware Training and Certification

vSphere, View, PowerCli, VMUGs and Certifications

vSphere, View, PowerCli, VMUGs and Certifications

VMware Hands-On Lab (HOL) Blog

vSphere, View, PowerCli, VMUGs and Certifications

VMware Communities : All Content - Dallas Area VMware User Group

vSphere, View, PowerCli, VMUGs and Certifications

Feed: Articles & Tutorials

vSphere, View, PowerCli, VMUGs and Certifications

vmetc.com

vSphere, View, PowerCli, VMUGs and Certifications

VMpros

vSphere, View, PowerCli, VMUGs and Certifications

Virtualization Team

VMware ESX/ESXi - ESX server - Virtualization - vCloud Director, tutorials, how-to, video

Virtual Nomad

vSphere, View, PowerCli, VMUGs and Certifications