Creating Microsoft Sysprep packages on VMware vCloud Director cells
search cancel

Creating Microsoft Sysprep packages on VMware vCloud Director cells

book

Article ID: 340889

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

This article guides you through the process of creating Microsoft Sysprep deployment packages on single and multiple VMware vCloud Director cells.

Symptoms:
  • You cannot customize virtual machine Sysprep binaries.
  • Customization fails
  • You see the error:

    Microsoft Windows Operating system, Standard Edition missing in Windows sysprep deployment package.


Environment

VMware Cloud Director 5.1.x
VMware Cloud Director 1.0.x
VMware Cloud Director 1.5.x

Resolution


VMware vCloud Director can customize the network settings of the guest operating system of a virtual machine created from a vApp template. When you customize your guest operating system, you can create and deploy multiple unique virtual machines based on the same vApp template without machine name or network conflicts.

Notes:
  • During installation, VMware vCloud Director places some files in the Sysprep folder on the VMware vCloud Director server. Do not overwrite these files when you create the Sysprep package.
  • vcloud path in this article indicates the path name. In vCloud Director 1.0, the path is cloud-director. In vCloud Director 1.5, the path is vcloud-director. For example, the path in vCloud Director 1.0 is /opt/vmware/cloud-director.
  • For more information on installing Sysprep files on servers, see the Install Microsoft Sysprep Files on the Servers section of the VMware vCloud Director Installation and Upgrade Guide.
To create Sysprep deployment packages on VMware vCloud Director cells:
  1. Set up the Sysprep binary files for each operating system and copy the Sysprep files to a convenient location on a VMware vCloud Director server host.

    Note: For more information on sysprep files and their locations, seeSysprep file locations and versions (1005593).

    Each operating system requires its own folder:

    • The file for Windows 2000 is SysprepBinariesDirectory/win2000
    • The file forWindows 2003 (32-bit) isSysprepBinariesDirectory/win2k3
    • The file forWindows 2003 (64-bit) isSysprepBinariesDirectory/win2k3_64
    • The file forWindows XP (32-bit) isSysprepBinariesDirectory/winxp
    • The file for Windows XP (64-bit) isSysprepBinariesDirectory/winxp_64


      Note:SysprepBinariesDirectoryrepresents the location in which you copy the binaries. For example,/root/MySysprepFiles.

  2. Open a Terminal Window logged in as root user and run the command:

    # /opt/vmware/vcloud path/deploymentPackageCreator/createSysprepPackage.sh /root/MySysprepFiles

  3. Change (cd) to the folder/opt/vmware/vcloud path/guestcustomization .You see 2 files:

    • windows_deployment_package_sysprep.cab –contains the Sysprep files
    • vcloud_sysprep.properties denotes which Sysprep images are installed. Look at this file. A value of 1 next to the Operating System denotes that the Sysprep package is installed for that operating system.

  4. To check that the Sysprep packages and the Sysprep properties file have been created successfully, check the /var/log/messages file. Run the command:

    # grep –i createSysprep /var/log/messages
    Sysprep deployment package successfully created at /opt/vmware/vcloud path/guestcustomization/windows_deployment_package_sysprep.cab

  5. If you have multiple vCloud cells, copy the package ( windows_deployment_package_sysprep.cab) and properties file (vcloud_sysprep.properties) to all vCloud Director cells. Run the command:

    scp /opt/vmware/<vcloud path>/guestcustomization/vcloud_sysprep.properties
    /opt/vmware/<vcloud path>/guestcustomization/windows_deployment_package_sysprep.cab root@next_cell_IP:/opt/vmware/<vcloud path>/guestcustomization

    </vcloud></vcloud></vcloud>
  6. Restart each vCloud Director cell that you copy files to. Run the command:

    service vmware-vcd restart


Additional Information

Sysprep file locations and versions
在 VMware vCloud Director 单元中创建 Microsoft Sysprep 软件包
VMware vCloud Director セルに Microsoft Sysprep パッケージを作成する