How to use WDS to PxE Boot a Nano Server VHD


If you haven’t already, please refer to the “Getting Started with Nano Server” guide for information on preparing your Nano Server image.

In this blog, I want to share with you how I set up WDS Server on a machine in my office, and was able to PxE-boot (F12 network boot) into Nano Server from a bare metal machine.

Before you start

Before you start, make sure that the machine is *disconnected* from your corporate network (many IT departments will at least frown at you if you set up your own domain & Active Directory – some will completely cut off your network connection J).

Now, give your machine a static IP v4 address. If you use the network GUI, do something like this:

You may also want to browse through this WDS Getting Started Guide.

Install the Roles

I am running Windows Server 2016 Preview build 10074 (from Microsoft Ignite).  Go ahead and install the following roles (I used Server Manager):

  1. Active Directory Domain Services (AD DS)

    1. Go through the wizard and when you’re done, you’ll notice a notification “flag” in Server Manager’s notification menu and choose “Promote this Server to Domain Controller”

    2. Add a new forest and specify a root domain name, such as nanoserver.com

    3. Specify a DSRM password

    4. Go through the wizard and finally press “Install”.  This will cause a reboot after a few moments

  2. Install DHCP Server

    1. Add role "DHCP Server" – when done, close the wizard

    2. From Server Manager's notifications (notice the flag), configure DHCP

    3. Use alternate credentials -> NanoServer\Administrator and "Commit" (remember that I chose “NanoServer.com” as my domain)

  3. Configure DHCP (from Server Manager | Tools)

    1. Right-click on the root node “DHCP” and select “Manage Authorized servers” – Authorize this server (if it hasn’t already been authorized)

    2. Right-click on ipv4 – new scope: add an IP address range (192.168.100.11 – 192.168.100.99) for example.

    3. Click Next, choose "No, I will configure these options later", click Next and close the wizard

    4. Right-click on the scope and select "Activate"

  4. Install WDS from Server Manager: Add role Windows Deployment Services

  5. Configure WDS (from the Tools menu in Server Manager):

    1. Using Active Directory

    2. PxE response: Respond to all client computers (known and unknown)

    3. Right-click on “Boot Images” and select “Add Boot Image”. Select boot.wim from the “Sources” folder on your media disk or ISO file.  The “Source” folder is on the same root level as the NanoServer folder.

    4. Right-click on “Install Images” and select “Add Install Image”.  Select the Nano Server VHD you’ve prepared. Make sure that you’ve added all the packages you need (OEM drivers, … etc.).  Also, in your unattend file, use * (star) for your Computer Name, so that the machine gets an automatic computer name.  Finally, make sure to use SetupComplete.cmd if you want to display ipconfig on first boot. For more information on Computer Name using *, check out this page on TechNet.  For more tricks on SetupComplete.cmd, check out this blog.

    5. Make sure that the WDS service is started in the GUI (as indicated by a “Play” icon next to the server name).  If the WDS Service doesn't start from the GUI (the icon shows "Stopped" next to the sever name), use PowerShell's Start-Service WDSServer from an elevated prompt.

That’s pretty much it.  Connect another machine to the same switch, turn it on and press F12 when prompted.  Windows PE will install first and then you’ll see the language dialog. Press Next. Then you’ll see the install images: only one in our case, because that’s the only image we added.  Once you press Next, you get to choose which partition to install Nano Server to.  Then, the image installs in a few seconds.

Of course, instead of uploading just one Nano Server image, you can upload many Nano Server images to have several “flavors” of Nano Server ready to install. 

I look forward to your comments and questions.

ref@

 

Comments (8)

  1. Nigel Benton says:

    Can this be used to deploy nano server to a VM running on ESXi or a physical server. Have Nano running on hyper-v but struggling to install on a physical or ESXi vm?

  2. andreas says:

    Still think Nano should be bootable from .Wim/vhd over PXE rather than to WinPE and then install from that…

  3. anonymouscommenter says:

    Aujourd’hui j’ai le plaisir d’accueillir Philippe Joubert, développeur sur le noyau commun

  4. alamin says:

    I will try Physical server 2012 with WDS and VM machine install any windows but Physical -Physical doesn’t work WDS. What is my problem?

  5. anonymouscommenter says:

    There are several ways to deploy Nano Server to a physical machine:

    Dual-boot a Nano Server

  6. David says:

    MY WDS server is windows 2012. When I try to add the vhd as a boot image, I receive an invalid image file message. Will Nano VHD only work with 2016 WDS server?

  7. Grahame Horner says:

    would be good to have a PowerShell script to setup a NanoServer (virtual server) as a deployment service for other NanoServer (bare metal or virtual) running infrastructure such as DHCP, BOOTP and WDS

    1. Thanks for the feedback, Grahame

Skip to main content