23/11/2008

Using MDT and SCCM to do an unattended install of Windows XP on ESX Server (1 of 2)

This post describes how to add VMware ESX drivers for an "OS Install Package" (aka "an unattended install") of Windows XP using MDT and SCCM.

The important point to note is that MDT can now handle "injection" of Mass Storage Drivers on Windows XP (not just Vista)
(i.e. it writes the correct entries to unattend.txt to support use of a 3rd party Mass Storage drivers, creates and populates the requires driver structure for this to work during an unattended install).

IMHO this is a "big deal" and means it's well worth investing time in understanding the "vagaries" of MDT and SCCM as it really can simplify OS deployment (once you know how to use it!)

Prerequites / Assumptions

Overview of Steps

  • Import (VMWare) drivers into SCCM
  • Create a new (VMWare) driver package
  • Add these drivers to your WinPE Boot Image
  • Edit the Task Sequence and add an "Apply Driver Package" Task (referring to the VMWare drivers package).
  • Enable the checkbox "Select the mass storage driver within the package that needs to be installed before setup on Pre-Vista operating Systems"
    (NOTE - the last two steps are the crucial pieces which make the "magic" happen)

Import (VMWare) drivers
Within the Operating System Deployment node in SCCM.
Right click on Drivers and Select "Import"

Point to the location where you've placed the VMWare driver files.
In my case I've stored driver files below file://sccm/Source$/drivers/vmware\Source$\drivers\vmware
(below this I have 2 subdirectories - \vmscsi - with the disk files and \vmxnet with the network drivers - these were obtained using the process descrived here)

The driver files should appear as shown below:


Create a new (VMWare) driver package

I've called my driver package "VMWare ESX"

Now select this as the package you want to add drivers to

Add drivers to the WinPE Boot Image
Select a Windows PE boot image to update (mine is called "Windows PE Custom")

Ready to let SCCM do it's stuff...


Progress is shown while it's being created...

Done - the drivers were imported, added to a new Driver package and the WinPE boot image was updated.

This is what the drivers looks like within the "Drivers" node.
(tip: in order for these to show up with SCCM you may need to select "Refresh")


and here's the new Driver Package we created...


Now for the really important piece (which needs to be manually added)

Edit the Task Sequence and Add an "Apply Driver Package" task
To inject a mass storage driver for Windows XP during the unattended install routine, you need to Add an "Apply Driver Package" task (pointing to the newly created VMWare drivers package). This must be added before the "Setup Windows and ConfigMgr" task.
To do this :
  • Edit your OS deployment Task Sequence
  • Set focus on a task immediately before the "Setup Windows and ConfigMgr" task.
    (In the screenshot below you can see I've focussed on "Auto Apply Drivers")
  • Select Add -> Drivers -> "Apply Driver Package"


Browse to the Package with the Drivers (in my example "VMWare ESX")

Enable the "Select mass storage driver..." checkbox

IMPORTANT
Select the box which says "Select the mass storage driver within the package that needs to be installed before setup on Pre-Vista operating systems"
(This takes care of driver injection during the unattended phase)


I'll describe what actually happens during the unattended install process and show the modified contents of unattend.txt and associated driver strucure in Part 2 of this post.

No comments: