O'Reilly logo

VMware vCloud Director Cookbook by Daniel Langenhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Guest Customization with pre and post deploy

When you use Guest Customization Scripts, it's important to define when they are running.

Getting ready

We will need a vApp with VMs in it. To test the results in this recipe, it is good if you have a Linux and a Windows VM so that you can test the results better.

How to do it...

  1. Double-click on the vApp to enter it.
  2. Select a VM that you want to configure with Guest Customization.
  3. Right-click on the VM and select Properties.
  4. Click on Guest OS Customization.
  5. Make sure you have enabled Guest Customization and then scroll down to the end of the page.
  6. In the large textbox, enter the following scripts depending on your operating system:
    • The following is the Linux script:
      #!/bin/sh if [ x$1 == x"precustomization" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required