3.0

Table Of Contents
Lab Manager User’s Guide
86 VMware, Inc.
Customizing Guest Customization
Inmostcases,youcanachieveyourgoalsbyusingLab Managerguestcustomization,
orbydisablingguestcustomizationandmanuallycustomizingvirtualmachines.In
somecaseshowever,youmightwanttouseLab Managerguestcustomizationin
combinationwithyourownscript.
Lab Managerprovidestheopportunitytoaddacustomizationscriptto
avirtual
machinetemplate.ThescriptrunsbeforeandafterLab Managerguestcustomization
whenyoudeployavirtualmachinebasedonthevirtualmachinetemplate.For
example,thescriptcouldcheckforvirusesorstartandstopprocesses.
Thescriptgetscalledwithprecustomizationcommandlineparameterbeforethe
Lab Managerguest
customizationprocessbegins,andthesamescriptgetscalledwith
thepostcustomizationcommandlineaftertheguestcustomizationprocessfinishes.
See“ExtendingGuestCustomization”onpage 235formoreinformation.
To add a customization script to a template
1Intheleftpaneoftheconsole,clickVMTemplates.
2Movethepointeroverthevirtualmachinetemplatenameandchoose
Customization
Script.
3ClickBrowsetolocateanexistingscript,ortypethescriptinthetextbox.
SpecifybatchscriptforWindowsguestsandashellscriptforUNIXguests.The
scriptmustonlyincludetext(thatis,itcannotcontainanybinarydata).
4ClickOK.