5.5
Table Of Contents
- vCloud Director User's Guide
- Contents
- vCloud Director User's Guide
- Updated Information
- Getting Started with vCloud Director
- Managing Cloud Resources
- Managing Virtual Datacenters
- Managing Organization Virtual Datacenter Networks
- Configuring Oganization Virtual Datacenter Network Services
- Configure DHCP for an Organization Virtual Datacenter Network
- Configure the Firewall for an Organization Virtual Datacenter Network
- Add a Firewall Rule to an Organization Virtual Datacenter Network
- Reorder Firewall Rules for an Organization Virtual Datacenter Network
- Enable VPN for an Organization Virtual Datacenter Network
- Create a VPN Tunnel In an Organization
- Create a VPN Tunnel Between Organizations
- Create a VPN Tunnel to a Remote Network
- Enable Static Routing for an Organization Virtual Datacenter Network
- Add Static Routes Between vApp Networks Routed to the Same Organization Virtual Datacenter Network
- Add Static Routes Between vApp Networks Routed to Different Organization Virtual Datacenter Networks
- Reset an Organization Virtual Datacenter Network
- View IP Use for an Organization Virtual Datacenter Network
- Add IP Addresses to an Organization Virtual Datacenter Network IP Pool
- View vApps and vApp Templates That Use an Organization Virtual Datacenter Network
- View Syslog Server Settings for an Organization Virtual Datacenter Network
- Apply Syslog Server Settings to an Organization Virtual Datacenter Network
- Configuring Oganization Virtual Datacenter Network Services
- Managing Expired Items
- Working in an Organization
- Understanding Leases
- Set Up an Organization
- Review Your Organization Profile
- Modify Your Email Settings
- Modify Your Organization's Policies
- Set Default Domain for Organization Virtual Machines
- Enable Your Organization to Use an SAML Identity Provider
- Install Java Cryptography Extension Unlimited Strength Jurisdiction Policy Files
- Manage Users and Groups in Your Organization
- Manage Resources in Your Organization
- Manage Virtual Machines in Your Organization
- Viewing Organization Log Tasks and Events
- Working with Catalogs
- Working with Media Files
- Working with vApp Templates
- Open a vApp Template
- Add a vApp Template to My Cloud
- Download a vApp Template
- Upload an OVF Package as a vApp Template
- Resume the Upload of a vApp Template
- Copy a vApp Template from a Public Catalog to an Organization Catalog
- Copy a vApp Template Between an Organization's Catalogs
- Move a vApp Template Between an Organization's Catalogs
- Delete a vApp Template
- Save a vApp as a vApp Template
- Modify vApp Properties
- Change the Guest OS Properties of a vApp Template
- Working with vApps
- Create a vApp From a vApp Template
- Create a New vApp
- Import a Virtual Machine as a vApp
- Create a vApp From an OVF Package
- About the vApp Placement Engine
- Download a vApp as an OVF Package
- Start a vApp
- Start a vApp with an Older Version of VMware Tools
- Stop a vApp
- Suspend a vApp
- Discard the Suspended State of a vApp
- Reset a vApp or Virtual Machine
- View vApp Virtual Machines
- Add a Virtual Machine to a vApp
- Import a Virtual Machine to a vApp from vSphere
- Remove Virtual Machines from a vApp
- Set vApp Start and Stop Options
- Working with Networks in a vApp
- View vApp Networks
- Adding Networks to a vApp
- Configuring Network Services for a vApp Network
- Configure DHCP for an vApp Network
- Configure the Firewall for a vApp Network
- Add a Firewall Rule to a vApp Network
- Reorder Firewall Rules for a vApp Network
- Enable IP Masquerading for a vApp Network
- Add a Port Forwarding Rule to a vApp Network
- Add an IP Translation Rule to a vApp Network
- Reorder Port Forwarding Rules for a vApp Network
- Enable Static Routing for a vApp Network
- Add Static Routes to vApp Networks
- Reset Your vApp Network
- Delete a vApp Network
- Modify Network Properties
- Display the IP Allocations for Your vApp Network
- Configure IP Address Persistence
- View Syslog Server Settings for a vApp Network
- Apply Syslog Server Settings to a vApp Network
- Editing vApp Properties
- Display a vApp Diagram
- Change the Owner of a vApp
- Upgrade the Virtual Hardware Version for a vApp
- Save vApp as a vApp Template to Your Catalog
- Save a Powered-On vApp to your Catalog
- Create a Snapshot of a vApp
- Revert a vApp to a Snapshot
- Remove a Snapshot of a vApp
- Copy a vApp to Another Virtual Datacenter
- Copy a Powered-On vApp
- Move a vApp to Another Virtual Datacenter
- Delete a vApp
- Working with Virtual Machines
- Open a Virtual Machine Console
- Power On a Virtual Machine
- Power Off a Virtual Machine
- Reset a vApp or Virtual Machine
- Suspend a Virtual Machine
- Resume a Suspended Virtual Machine
- Discard the Suspended State of a Virtual Machine
- Insert a CD/DVD
- Eject a CD/DVD
- Insert a Floppy
- Eject a Floppy
- Upgrade the Virtual Hardware Version for a Virtual Machine
- Connect Remotely to a Virtual Machine
- Create a Snapshot of a Virtual Machine
- Revert a Virtual Machine to a Snapshot
- Remove a Snapshot of a Virtual Machine
- Copy or Move a Virtual Machine to a vApp
- Delete a Virtual Machine
- Editing Virtual Machine Properties
- Installing VMware Tools
- Install VMware Tools in a New Virtual Machine with No Guest Operating System
- Installing VMware Tools in a vApp
- Install VMware Tools in a Virtual Machine in a vApp
- Install VMware Tools in a vApp Template
- Install VMware Tools With Guest Customization Disabled
- Upgrade VMware Tools
- Install VMware Tools on a Windows Guest
- Install VMware Tools on a Linux Guest in X with the RPM Installer
- Install VMware Tools on a Linux Guest with the Tar Installer or RPM Installer
- Install VMware Tools on a Solaris Guest
- Guest Operating Systems
- Install a Guest Operating System
- Customizing Your Guest Operating System
- Understanding Guest Customization
- Customizing a Guest OS When Saving a vApp Template as a vApp
- Enable or Disable Guest Customization
- Change Guest Customization Settings for Virtual Machines in a vApp Template
- Power on and Force Recustomization of a Virtual Machine
- Upload a Customization Script
- Reset Your Virtual Machine's Password
- Join a Windows Guest Domain During Guest Operating System Personalization
- Guest Operating System Support
- Index
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.
Procedure
1 Click My Cloud.
2 In the left pane, click VMs.
3 In the right pane, select a virtual machine, right-click, and select Properties.
4 On the Guest OS Customization tab, in the Customization Script panel, click Browse.
5 Navigate to your script file and click Open.
The file must be a batch file for Windows virtual machines and a shell script for Unix virtual machines.
6 Click OK.
Example: Customization Script Examples
A sample Windows batch file:
@echo off
if "%1%" == "precustomization" (
echo Do precustomization tasks
) else if "%1%" == "postcustomization" (
echo Do postcustomization tasks
)
A sample Unix shell script:
#!/bin/sh
if [ x$1 == x"precustomization" ]; then
echo Do Precustomization tasks
elif [ x$1 == x"postcustomization" ]; then
echo Do Postcustomization tasks
fi
Reset Your Virtual Machine's Password
You can reset your virtual machine's password.
Prerequisites
The virtual machine's guest OS is personalized, and your virtual machine is powered off.
Procedure
1 Click My Cloud.
2 In the left pane, click VMs.
3 Right-click a virtual machine and select Properties.
vCloud Director User's Guide
118 VMware, Inc.