book
Article ID: 344180
calendar_today
Updated On:
Issue/Introduction
Even though VMware Tools does not support the Windows Preinstallation environment, you can take advantage of specific VMware Tools drivers, such as vmxnet2 (enhanced), vmxnet3, and pvscsi by creating a customized ISO.
Environment
VMware ESXi 4.0.x Embedded
VMware ESX 4.0.x
VMware ESX 4.1.x
VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Installable
VMware ESX Server 3.5.x
VMware ESXi 4.1.x Embedded
Resolution
To create a customized ISO:
- Install Windows 2008 and install Windows AIK (Automated Installation Kit) on a virtual machine.
Note: The preceding link was correct as of October 30, 2013. If you find the link is broken, provide feedback and a VMware employee will update the link. - Click Start > All Programs > Microsoft Windows AIK > Windows PE Tools Command Prompt to open the Windows PE Tools command prompt.
- Run this command to create a Windows PE build environment in the WinPE folder:
- In 32bit – copype x86 C:\winpe-x86
- In 64bit – copype amd64 C:\winpe-amd64
- From the Windows PE command prompt (c:\winpe-x86 or c:\winpe-amd64), run this command to mount winpe.wim to the mount folder:
dism /mount-wim /wimfile:file_path\boot.wim /index:1 /mountdir:file_path
- Install VMware Tools on Windows 2008 and copy the entire contents of the C:\Program Files\Common Files\VMware\Drivers\vmxnet, pvscsi and vmxnet3 folders to the C:\Drivers folders on the virtual machine.
- Run this command at the Windows PE Tools command prompt to copy the vmxnet, vmxnet3 (enhanced), and pvsci drivers:
32bit:
dism /image:C:\winpe-x86\mount /Add-Driver /driver:C:\Drivers /recurse
64bit:
dism /image:C:\winpe-amd64\mount /Add-Driver /driver:C:\Drivers /recurse
- Run this command to save the changes to winpe.wim:
32bit:
dism /unmount C:\winpe-x86\mount /commit
64bit:
dism /unmount C:\winpe-amd64\mount /commit
- Run this command to overwrite the boot.wim with the customized winpe.wim on the ISO:
32bit:
xcopy C:\winpe-x86\winpe.wim (C:\winpe-x86 or C:\winpe-amd64)\iso\sources\boot.wim /y
64bit:
xcopy C:\winpe-amd64\winpe.wim (C:\winpe-x86 or C:\winpe-amd64)\iso\sources\boot.wim /y
- Run this command to create the custom ISO image:
32bit:
oscdimg -n -h -b C:\winpe-x86\etfsboot.com (c:\winpe-x86 or c:\winpe-amd64)\iso (C:\winpe-x86 or C:\winpe-amd64)\winpe-x86.iso
64bit:
oscdimg -n -h -b C:\winpe-amd64\etfsboot.com (C:\winpe-x86 or C:\winpe-amd64)\iso (C:\winpe-x86 or C:\winpe-amd64)\winpe-x86.iso
Note: DISM syntax may change from one version of Windows to another. For the latest, see
(Microsoft) Modify a Windows image using DIS.