Jump to content

A Step by Step guide to setting up WDS for PXE


Tripredacus

Recommended Posts

I wanted to post this guide here. I was just tasked with creating a test network where a computer can boot to the network via PXE and load up the WinPE. Hopefully this guide will help someone! NOTE: this is just an example of how to set this up, but after many attempts I found it to be the easiest.

What you need to begin

2 Servers running some form of Server 2003 SP1 or better

Microsoft Windows AIK

Windows 2003 Server disc 1

MSXML6 installer (newest... the one on the AIK iso doesn't always work)

1. Setting up the WDS Server

To begin, I took an existing Server 2003 Standard PC to use as the Domain Controller.

- set a static IP address that resides outside your projected scope; ie: static 192.168.0.5, projected 192.168.0.10-192.168.0.199.

- Follow the instructions on KB 324753 (DC promo)

- Create an new user account and assign it to the Domain Users group.

- Manage Your Server and add the DHCP role.

- Install WDS with Add/Remove Windows components.

- run the WDS update from the AIK DVD.

- Install MSXML6.

- Install .NET Framework 2.0 from the AIK DVD.

- follow the instructions to create WinPE boot media.

- Open WDS and verify or add your server (itself aka UncleSocks) to the list.

- Choose to add a new Boot Image, and select the winpe.wim file from c:\winpe_x86 or wherever you put it.

-- Look at the properties of your server and set the following:

- On the PXE Response Settings tab: Respond to all (known and unknown) client computers (alternatively you can add known computers to the domain with the AD Users and Computers tool and select the Respond only to known client computers option).

- on the Boot tab, change 'x64 architecture' option in the 'Default boot program' section to read 'boot\x86\pxeboot.com'

- on the Boot tab, change 'x64 architecture' and 'x86 architecture' options in the 'Default boot image' section to 'boot\x86\images\winpe.wim'.

- on the DHCP tab, select 'configure DHCP option 60 to PXEClient'

- on the Advanced tab, select 'No, do not authorize the Windows Deployment Services server in DHCP'.

2. Setting up the DHCP Server

- set a static IP outside the projected scope ie 192.168.0.6.

- join the computer to the Domain using the account you created on the WDS and restart, but log back in as administrator (local).

- From Computer Management, go into the groups and add Domain\Domain Users to the COMPUTER\Administrators group.

- Log off Administrator (local) and log into the domain.

- Manage Your Server and add the DHCP role.

- Create a DHCP Scope for the range you want, such as 192.168.0.10-192.168.0.199.

- Set the DHCP lease time to 3 hours (the default is 8 days)

- make sure your scope is activated.

3. Authorizing the DHCP Server

- on the WDS Server, in the DHCP cpl, choose Action->Manage Authorized Servers.

- click Authorize and type in the IP address of the DHCP Server.

- connect another computer to the network and verify that it can get an IP.

4. Setting up PXE on the DHCP Server

- in the DHCP cpl, expand your scope and right Click on Scope Options and select Configure Options.

- select option 66 and type in the computer name of the WDS (ie: unclesocks)

- select option 67 and type in '\boot\x86\wdsnbp.com'

- select option 6 (DNS Servers) and type in the IP for the WDS server.

- select option 3 (Router) and type in the IP for the WDS server.

With this example you should be able to boot from the network and load up the WinPE from the server. Also this presumes you are going to use Native Mode for WDS. And I realise some security measures weren't taken but this is just a guide. You can set your security up anyway you like really. You can also use whatever WIM you want. For my test I chose the one that the AIK makes. You could very well use a default Vista one or whatever other one you made. I also left out instructions to install the AIK since it isn't supposed to be on the WDS. I installed it on the WDS because I didn't feel like copying it from my workstation, besides I wanted to run through the commands again.

That should just about do it. Its kinda annoying because the documentation for this is all over the place. If I left something out, let me know. I just ran this list down from memory o_O Anyways there are a lot of little options dealing with parts of Server that aren't in the WDS that you run into.

Link to comment
Share on other sites

  • 1 year later...

hi Tripredacus

this is a nice guide for someone new to the to the WDS/PXE setup. Thanks!

I was wondering about the DHCP server setup - can we just an existing one since we already have one. So I can skip 'Step 2' ,correct?

And I have ghost & AIK already setup on a different standalone server (have been using it as a ghostcast server and also for making Win PE boot disks), so I could just install WDS component on this server itself and follow the rest of your instructions, yes?

Thanks again for the nice guide!

Link to comment
Share on other sites

Yes, at the time I wrote this guide, I was converting an existing Ghostcast server to WDS. You can use an existing DHCP server, or you can use one computer for everything. I just transferred most of the roles off the server I had used, so I can't really tell you the settings needed for that.

Link to comment
Share on other sites

Thanks for the reply Tripredacus. Yes I understand that now. After this post, I found another thread about the dhcp server whch explains - social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/ec8723d5-653b-4914-8649-dc3fef3b75b4

thanks again for the reply.

Edited by Tripredacus
Link doesn't work, edited url tag
Link to comment
Share on other sites

Thanks for the reply Tripredacus. Yes I understand that now. After this post, I found another thread about the dhcp server whch explains - social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/ec8723d5-653b-4914-8649-dc3fef3b75b4

thanks again for the reply.

The link you posted does not work.

Link to comment
Share on other sites

  • 2 months later...
are the steps the same when using server 08 r2 ?

I haven't gotten the R2 update yet. For Server 2008, it is a little different. I've done it twice. The first time was using just 1 server. The second time was a domain/role migration from the setup from the tutorial. For example, the 2nd server (DHCP) ended up failing on me. It was another 2003 server. I redid it as Server 2008 and migrated all roles except DNS (and another one) from Unclesocks, which was the Domain Controller used in the tutorial. I didn't write down those steps unfortunately. Either way, when i get the R2 update, I won't be making any changes I don't think.

Link to comment
Share on other sites

  • 11 months later...

That is for 2 servers, but single server is actually quite simple (meaning you don't have to do most of the stuff in the first post), especially in the newer Server versions.

1. DC Promo

2. add the DHCP role

3. add the DNS role

4. add the WDS role

5. add the boot image to WDS

Obviously you still need to pre-plan the network environment, which scope you will be using, the domain name, which users to assign to the shares, etc.

But there is a caveat involved when dealing with PXE. You want to determine whether you are going to be doing MBR or UEFI clients and stick to that one only. The issue is that the WinPE still has a bug involving diskpart where it cannot make MBR disks if booted in UEFI and WDS still does not properly detect some LAN card capabilities (meaning it can provide boot loader for "wrong" boot type, and thus diskpart runs the wrong scripts. I personally only use the WDS portions now do to MBR or legacy installation and just boot my WinPE boot image on USB and bypass WDS entirely for UEFI (which is like 99.999% of installations at this point).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...