In part I and part II of this series I showed how to install the WDS role, MDT 2013 and ADK for Windows 8.1. I showed the process to import the OS images and the necessary drivers for our deployment. Now it’s time to bring MDT to life. Let’s start with part III of this series.
User for deployment share access
During the deployment process Windows PE needs access to the deployment share. For this, we need to create a user account that has the priviledges to access the deployment share. You can simply create a local user on your MDT server.
VMware Tools package
Before we can install the VMware Tools during the deployment, we have to build a package. Building a package is nothing more than adding the source files to the deployment share and providing a command line for the unattended installation. Right click the menu item “Application” and choose “New Application” from the context menu.
In the “New Application Wizard” select the first menu item “Application with source files”.
After clicking “Next” we need to provde a publisher (optional) and a name for the application. Because we need the 64-bit version, we add this to the application name.
Now we need access to the VMware Tools sources. This can be the extracted or mounted VMware Tools ISO. In my case I pointed to the mounted ISO.
The name is automatically generated from the publisher and application name.
Now we have to provide the command line for the installation. The necessary command line can be found in KB1018377.
setup64.exe /S /v"/qn REBOOT=R"
The switch “REBOOT=R” suppress the reboot. The reboot is triggered by MDT. We will enable this in the properties of the application.
Go through the summary and click “Next”.
At the end just click “Finish”.
Enter the properties of the application and take a look at application GUID. You can use the GUID and add it to the CustomerSettings.ini. Then the application will installed during every deployment, regardless of the OS. We will use another way: We use the task sequence to install the application.
On the “Details” tab enable the reboot after the installation of the application.
Congratulations. You’ve just created your first application package with MDT. :)
Open the Deployment Workbench and right click the deployment share. Select “Properties”. On the “General” tab enable multicast for this deployment share.
Switch to the “Rules” tab.Yo will see the content of the CustomSettings.ini, which can be found in the Control directory on the deployment share, e.g. D:\DeploymentShare\Control. The CustomSettings.ini is used to control the deployment. It controls which settings used by the deployment wizard. This is the content of my CustomerSettings.ini.
TimeZoneName=W. Europe Standard Time
The settings will skip all wizards, set the time zone, language settings etc.
There’s another button: “Edit Bootstrap.ini”. The bootstrap.ini contains the information how to access the deployment share, e.g. user credentials or IP settings. We need to add the credentials of our newly created user to the bootstrap.ini. Because it’s a local user, the domain is set to the computername of the MDT server.
Creating a Task Sequence
A task sequence provides the mechanism for performing multiple steps or tasks on a computer without requiring user intervention. Right click “Task Sequence” in the Deployment Workbench and select “New Task Sequence” from the context menu.
Enter a sequence ID, a descriptive name and, if you like, a comment.
We have to use the “Standard Server Task Sequence” template.
Now we need to select an OS image. Because we want to deploy a Windows Server 2008 R2 Standard, we select the appropriate image.
We don’t want to specify a product key now. Just hit “Next”.
Enter full name, organization etc.
Enter your incredible secret password.
That’s it. Check the summary and click “Next”.
Finish the dialog and go to the task sequence properties. Select the “Task Sequence” tab and choose “Install Applications”. Browse the applications and select the VMware tools application that we created earlier.
Update the deployment share
Before we can deploy our first server, we have to update the deployment share. During this process, the boot images are build and the applications are created on the deployment share. Right click the deployment share in the Deployment Workbench and select “Update Deployment Share”.
Simply follow the wizard.
Click “Next” and finish the dialog.
Adding boot images to Windows Deployment Service (WDS)
Now we can add the Windows PE images to the WDS. Start the server manager or start the MMC. Right click “Boot Images” and then “Add Boot Image…”.
Choose the image you want to import. There are two images: A 64-bit and a 32-bit image.
Simply accept the default name.
Go through the summary and click “Next”.
Finish the dialog and repeat it, if necessary, for the 32-bit image.
Create a new VM. I used a standard W2K8 R2 VM with 1 vCPU, 4 GB RAM, VMXNET3 NIC and VMware paravirtual SCSI controller for my tests.. Start the VM. Usually the boot process goes directly into the PXE boot screen, because no OS is installed. Wait for the DHCP response and press F12 if offered. Choose the x64 Windows PE enviroment. Now the boot images is transferred from the WDS server.
Because we skipped most of the wizards during the deployment wizard, we only need to chosse a task sequence. Select the W2K8 R2 Standard sequence and start the deployment.
In the WDS MMC you can watch the transmission process of the image.
After several reboots you should see a shiny new W2K8 R2 standard VM with VMware Tools. The whole deployment from the start of the VM until the VM is ready to use took on my HP Micro Server round about 15 minutes.
If you have any further questions, just leave a comment.
Feel free to follow him on Twitter and/ or leave a comment.
Latest posts by Patrick Terlisten (see all)
- VMware EUC Access Point appliance – Name resolution not working after deployment - December 5, 2016
- Important foot note: Windows 10 Enterprise LTSB 2016 requires a new KMS host key - November 29, 2016
- Fight the chaos: Design your toolbox properly - November 27, 2016