
A script starts that copies files to the guest and prepares the virtual machine template for customization.
NOTE If you add new Windows NT vApp Templates, you need to complete only steps 4-7 once. You do not
need to repeat these steps for additional virtual machines in the Catalog that result from copying these virtual
machines.
Customize Your Solaris vApp Template
You must manually customize Solaris vApp templates.
Prerequisites
Ensure VMware Tools are installed.
Procedure
1 Click Catalogs.
2 Select a vApp Template, right-click, and select Add to My Cloud.
3 In the guest OS, shut down the virtual machine.
4 Ensure that the Enable guest customization check box is selected and power off the virtual machine.
5 Start the vApp and power on the virtual machine.
The Customization CD is mounted automatically after the virtual machine powers on.
6 Log in to the Solaris guest operating system.
7 In the terminal, run these case-sensitive commands:
/etc/init.d/volmgt stop
/etc/init.d/volmgt start
sh /cdrom/cdrom/customize-guest.sh install
eject cdrom
8 Run shutdown -y -g0 -i5 to shut down the virtual machine from inside the guest operating system.
9 Stop the vApp.
10 Select the vApp template, right-click, and select Copy to Catalog.
11 (Optional) Delete the original vApp template.
A script starts that copies files to the guest and prepares the virtual machine template for customization.
NOTE If you add new Solaris vApp Templates, you need to complete only steps 4-7 once. You do not need to
repeat these steps for additional virtual machines in the Catalog that result from copying these virtual
machines.
Upload a Customization Script
You can upload a customization script to a virtual machine. The script runs before and after guest customization
when you deploy a virtual machine based on a vApp template.
When you add a customization script to a virtual machine, the script is called:
n
Only on initial customization and force recustomization.
n
With the "precustomization" command line parameter before guest customization begins.
n
With the "postcustomization" command line parameter after guest customization finishes.
The customization script cannot exceed 1500 characters.
vCloud Director User's Guide
116 VMware, Inc.
Commentaires sur ces manuels