Апр
15
2010

Sysprep - развертывание виртуальных машин из шаблонов на VMware vCenter.

Итак, вы установили VMware vCenter и создали первый шаблон виртуальной машины (template). Однако при попытке развернуть виртуальную машину из шаблона у вас происходят следующие вещи:

  • Контролы кастомизации гостевой ОС загреены
  • У машины, развернутой из шаблона остается старый SID
  • Вы получаете сообщение Warning: Windows customization resources were not found on this server в VMware vSphere Client

Это значит вам необходимо установить файлы средства автоматической установки для операционных систем компании Microsoft Sysprep. Где взять Sysprep для VMware vCenter? Можно скачать по этим ссылкам:

После скачивания exe-файла распаковываете его в папку на диске следующей командой (в зависимости от имени файла):

WindowsServer2003.WindowsXP-KB926028-v3-x64-ENU.exe /x

Затем берете из этой папки файл deploy.cab от Sysprep и кладете его содержимое в папку, приведенную в таблице ниже в зависимости от ОС:

Windows Version Sysprep Directory Sysprep Version
Windows 2000 Server SP4 with Update Rollup 1
Download at
<directory_path>\1.1 5.0.2195.2104
Windows XP Pro SP2
Download at
<directory_path>\xp 5.1.2600.2180
Windows 2003 Server SP1
Download at
<directory_path>\svr2003
5.2.3790.1830
(srv03_sp1_rtm.050324-1447)
Windows 2003 Server SP2
Download at
<directory_path>\svr2003
5.2.3790.3959
(srv03_sp2_rtm.070216-1710)
Windows 2003 Server R2Download at

<directory_path>\svr2003
5.2.3790.1830
(srv03_sp1_rtm.050324-1447)
Windows 2003 x64Download at

http://www.microsoft.com/downloads/details.aspx?familyid=C2684C95-6864-4091-BC9A-52AEC5491AF7&displaylang=en

<directory_path>\svr2003-64
5.2.3790.3959
(srv03_sp2_rtm.070216-1710)
Windows XP x64Download at

http://www.microsoft.com/downloads/details.aspx?familyid=C2684C95-6864-4091-BC9A-52AEC5491AF7&displaylang=en

<directory_path>\xp-64
5.2.3790.3959
(srv03_sp2_rtm.070216-1710)
Windows XP Pro SP3
Download at
<directory_path>\xp 5.1.2600.5512
Windows Vista
System Preparation tools are built into the Windows Vista operating system and do not have to be downloaded.
Not Applicable Not Applicable
Windows Server 2008
System Preparation tools are built into the Windows Server 2008 operating system and do not have to be downloaded.
Not Applicable Not Applicable
Windows Server 2008 R2
System Preparation tools are built into the Windows Server 2008 R2 operating system and do not have to be downloaded.
Not Applicable Not Applicable
Windows 7System Preparation tools are built into the Windows 7 operating system and do not have to be downloaded. Not Applicable Not Applicable
  • Если vCenter Server установлен на Windows Server 2008,  то <directory_path> -  это %ALLUSERSPROFILE%\VMware\VMware VirtualCenter\sysprep
    (оно же C:\ProgramData\VMware\VMware VirtualCenter\sysprep).
  • Если vCenter Server установлен на других ОС Windows, то <directory_path> - это %ALLUSERSPROFILE%\Application Data\VMware VirtualCenter\sysprep\ (оно же C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep\).