I’m working on a Presentation Server deployment project at the moment, and am deploying the servers with Windows PE 2.0 via Windows Deployment Services (WDS). I need to launch Windows Setup via WINNT32.EXE because the servers have two RAID sets and the client wants the user profiles on the second disk set. So before deploying the unattended setup to hardware, I’m testing the deployment in VMware Workstation. Unfortunately Windows PE 2.0 does not recognise the VMware network card out of the box, so I’ve had to create a custom WinPE image with the drivers in it. This is the first time I’ve done this with Windows PE 2.0 so there was a little trial and error. Here are the steps I completed to create my custom image:
First I mounted the WIM image with ImageX. I have a copy of the original WINPE.WIM under D:\Images and I’ve created a folder D:\Mount, in which to mount the image:
imagex.exe /mountrw d:\images\winpe.wim 1 d:\mount
Next I injected the VMware drivers into the mounted image. I installed both drivers, but in my case VMware Workstation only required the vmware-nic.inf driver:
peimg.exe /inf=D:\vmdrv\vmxnet.inf d:\mount\Windows peimg.exe /inf=D:\vmdrv\vmware-nic.inf d:\mount\Windows
The next step was to install the scripting packages into the image to allow advanced tools such as HTA applications:
peimg.exe /install=\*HTA\* /image=d:\mount\Windows peimg.exe /install=\*Scripting\* /image=d:\mount\Windows peimg.exe /install=\*WMI\* /image=d:\mount\Windows peimg.exe /install=\*XML\* /image=d:\mount\Windows
Then I needed to prepare the image, which optimises the image by removing non-required packages and language packs. This is a one way process, so if you need to add more packages at a later date, you’ll have to recreate your image:
peimg.exe /prep /image=d:\mount\Windows
Then unmount the image and commit the changes:
imagex.exe /unmount d:\mount /commit
Lastly I added the boot image into WDS and booted my VM to the network and I finally had an IP address and network client to connect to the deployment server. One thing I did notice but didn’t get a chance to troubleshoot is that I occasionally had to restart WDS to get Windows PE to boot after making changes to the image.
The documentation that comes with the Windows Automated Installation Kit is fairly detailed but it doesn’t really fill in a lot of the gaps. To help me out I found a couple of links around the place, like this thread on MSFN.org and this WinPE2 with BDD 3.0 beta post at J. Greg’s Blog-o-rama.
UPDATE: Of course you could just select Windows Vista as the virtual machine type when creating the virtual machine, but where’s the fun in that?