Chapter 1: Deploying Servers
The study guide for 70-643 assigns an imprecise name to this topic, hence the chapter name doesn’t reflect the breadth of material that is presented within it. I will show you several technologies related to deploying large numbers of computers running Windows including Windows Deployment Server and Windows activation. I’ll also discuss the virtualization technology included with Windows Server 2008, Hyper-V. This is Microsoft’s first hardware-based hypervisor virtualization solution and it has tremendous potential to facilitate server consolidation and other capabilities. Then I’ll introduce the clustering and load-balancing features and finally the data storage technologies supported by the operating system (OS).
Windows Deployment Services (WDS) in Windows Server 2008 replaces Remote Installation Services available in earlier versions of Windows Server. WDS has many improvements, some of the most significant include support for multicast data transmission, use of Windows PE as the boot operating system, and better Trivial File Transfer Protocol (TFTP) and Preboot Execution Environment (PXE) performance. An important limitation of WDS is that it does not support IPv6. After installing the WDS server role the process of deploying new computers is as follows:
WDS is an important server role because when used effectively it drives down the cost of deploying and maintaining computers that run Windows. It improves the process of deployment by automating much of the work involved. WDS lowers maintenance costs by ensuring that new computers are configured identically so that you can be certain users have access to the applications they need and administrators can be confident that the initial system configuration is predictable and reliable. After deployment you need to use other technologies like group policy to ensure the computers remain configured as planned by the information technology team.
The following are important prerequisites: the WDS server must be a member server or domain controller (DC) in an Active Directory Directory Services (AD DS) domain; there must be a functional DHCP server available; DNS must be available; the server must have an NTFS volume available for storing image files. Install the WDS server role using Server Manager on a computer in your practice lab. Install both role services, but note their differences:
After the installation wizard completes open Windows Deployment Services from the Administrative Tools folder, expand the list of servers in the navigation pane, right-click on the new WDS server, select Configure Server, and use the wizard to complete the initial configuration of the server. You will add images to the WDS server in the next section.
Think of WDS images, sometimes referred to as .wim files, as an entire operating system packaged into a single file. WDS uses two types of images:
To add the default images insert the Windows Server 2008 installation DVD into the server. Alternatively you can capture an ISO image of the installation DVD if you are using Virtual PC in your practice lab. Expand the server in the WDS MMC snap-in, right-click Boot Images in the navigation pane and select Add Boot Image. Specify the location of the boot.wim and follow the instructions to complete the wizard. Now insert a Windows Vista installation DVD right-click Install Images in the navigation pane, select Add Boot Image, and navigate to the boot.wim file on the DVD, to save space you may want to deselect all but one of the images as shown in figure 1. If you do not have a Windows Vista installation DVD you can use the Windows Server 2008 one instead.

Figure 1: Selecting WDS Images.
You are now prepared to deploy Windows Vista in your practice lab using WDS. You could create a new virtual machine (VM) in Virtual PC, boot it, and press f12 when prompted to allow the PXE boot to proceed, as shown in figure 2.

Figure 2: Selecting a PXE boot.
At that point the boot.wim file is downloaded to the client and Windows PE launches to walk you through selecting and installing an install image. Most organizations will want to customize the installation image at this point. Customize the reference computer as desired by installing applications and configuring settings as appropriate. Then you need to create a capture image by doing the following in Windows Deployment Manager on the WDS server:
Now you need to ‘generalize the reference computer, that is, use sysprep to prepare the computer to be captured into a new image file. Do the following:
Your new, customized image is now ready to be deployed to PXE-enabled computers.
Note: Instead of using a capture image you can also use ImageX.exe to capture the image from a computer; however that is beyond the scope of the exam and this book. To learn more about using ImageX read the Windows Vista Deployment Step by Step Guide.
Did you notice how large the image files can be? If you include a large number of client applications in your image files they may approach 10 gigabytes in size! WDS has to read these images and transmit them over the network to WDS clients. This means that WDS requires a lot of storage, reads a great deal of data from the storage volume, and transmits that data over the network. For a production environment I suggest that you install a high speed hard drive that is separate from the one containing the system volume, and use this disk for storing images. You could even configure a Redundant Array of Inexpensive Disks (RAID) array to improve performance. I also suggest that you build your WDS environment on an isolated network segment to minimize the impact on other network services. Although its not listed as a subject for the exam you should investigate leveraging multicast transmissions to improve WDS network performance.
You can even use WDS with computers that do not support PXE. You create a discover image and burn it to a CD or DVD or store it on a flash drive then boot the target computer from this media. To create a discover image from Windows Deployment Services do the following:
Use your favorite CD or DVD burning tool to create a disc based on the .iso image you created in step 9. You can boot client computers using this disc and connect to the WDS server to download and install images.
Presumably you know what activation means with regards to Microsoft products. This part of the exam is focused on Windows Volume Activation, the technology Microsoft has created to help large organizations manage the activation process internally so that clients to not need to connect to the publicly accessible activation services that Microsoft hosts. There are two solutions available, one is Multiple Activation Key (MAK), the other is Key Management Services (KMS). MAK is used for a one-time activation with Microsoft’s activation services, the organization activates once and can reuse the MAK for as many clients as their license agreement allows. With KMS an organization deploys a KMS host on their internal network and clients activate by contacting it rather than Microsoft’s activation service. This section focuses on deploying KMS.
KMS will only activate clients after a certain number of physical computers have contacted it, called the activation threshold. Computers running Windows Server 2008 can start activating with KMS after five of them have registered with the KMS host. Computers running Windows Vista can activate after the KMS host has determined that at least twenty five computers with that OS are present. Virtual computers do not count, so it is unlikely that you will be able to get KMS fully operational in your practice lab. Clients find their KMS host by querying the internal DNS server to see if a KMS service (SRV) resource record (RR) has been created. If no such DNS record exists the clients will try to activate with Microsoft’s activation service.
KMS does not require a great deal of resources and therefore can be hosted on servers that are providing other services. Although KMS does not include virtual computers in the activation threshold count you can run KMS on a VM. A single KMS host can support an unlimited number of clients but organizations should deploy two in each location for failover purposes. The KMS host is included with Windows Server 2008, the KMS client is included with both Windows Server 2008 and Windows Vista.
If your DNS servers allow clients to automatically publish records via dynamic DNS (DDNS) then you do not need to create the KMS SRV record, but only the first KMS host will be able to create and update the record therefore you need to make sure that all of the KMS hosts have permissions to it. Create a global security group in Active Directory, add each of the KMS hosts to the group, and set permissions on the DNS server to allow that group to update records. If is not used you can manually create the SRV record in the forward lookup zone for the domain with the following information:
You can configure KMS to automatically publish records to multiple DNS domains by adding a multi-string registry value named DnsDomainPublishList to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SL registry key, enter a line-delimited list of each DNS domain suffix that KMS should publish to. After creating or changing this registry value restart the Software Licensing Service.
Tip: If you do not remember how to create DNS records review Configuring DNS for Active Directory to refresh your memory.
To install a KMS host you need to acquire a KMS key from Microsoft, configure the key on the computer, then activate it using Microsoft’s activation service. Computers running Windows Vista, Windows Server 2008, and Windows Server 2003 can all act as KMS hosts. Once you have the KMS key open a command prompt with administrative privileges and enter the following
cscript C:\windows\system32\slmgr.vbs /ipk <KmsKey>
Then, to activate online enter:
cscript C:\windows\system32\slmgr.vbs /ato
To activate over a telephone enter:
slui.exe 4
Restart the Software Licensing Service after activation is complete. Oddly, the for guide for exam 70-643 lists “replicate volume license data” as a topic, yet KMS does not require backing up any data files or copying data between KMS hosts. Once you create a KMS host everything works automagically. If the KMS host fails and you lose all of the data it does not matter, set up a new KMS host, make sure the SRV record points to the new host, and everything will resume working.
Hyper-V is Microsoft’s hypervisor-based virtualization technology, the beta version of Hyper-V is included on the installation media of Windows Server 2008. A free update is available from Microsoft to install the final version, which was released in mid-2008. Hyper-V requires hardware-assisted virtualization and hardware-based Date Execution Protection (DEP), which is available on most recently manufactured server-class computers, and even many laptop and desktop systems. I have running Hyper-V on a Lenovo T61for 8 months, using alpha builds that were available months before the release of Windows Server 2008.
Before attempting to install the Hyper-V server role in your practice lab verify that the target computer has an x64-based processor that supports hardware-assisted virtualization, e.g. Intel VD or AMD Virtualzation, and DEP. Make sure that the settings for both hardware-assisted virtualization and DEP are enabled in the BIOS, check with the manufacturer to learn how to enable them if you are uncertain. After modifying these settings you should power down the computer and then reboot it, simply restarting the computer may not cause the changes to take effect. You need to install a 64-bit version of Windows Server 2008, Hyper-V is not available in the 32-bit versions. To upgrade to the final release of Hyper-V install the update described in Description of the update for the release version of the Hyper-V technology for Windows Server 2008. The update is also available through Windows Update.
You can install the Hyper-V server role using Server Manager just like any other server role, if you do so specify that you will configure virtual networking later. Hyper-V works great when installed on Windows Server 2008 server core, you can manage everything from a command prompt or manage the server remotely from a Windows Vista or a different Windows Server 2008 system. If you want to manage Hyper-V servers from a computer running Windows Vista you will need to install the Windows Server 2008 Remote Server Administration Tools for Windows Vista Service Pack 1. To install the Hyper-V server role from a command prompt enter the following:
Start /w ocsetup Microsoft-Hyper-V
The first thing to do after installing Hyper-V is to configure the virtual networks on the host computer, referred to as the parent partition. VMs running on the machine are also called child partitions. With Hyper-V all operating system instances including the host are virtualized. Open Hyper-V Manager from the Administrative Tools folder, right-click on the server in the navigation pane, and select Virtual Network Manager. You can three types of virtual networks. External networks bind to the physical network adapter installed on the host machine, when used VMs can access the network connected to the network adapater. Internal networks only allow communication between the all of the VMs running on the host and the parent partition. Private networks only allow communication between the VMs installed on the same machine. Create an external network by clicking Add, then enter a name for the network, select a physical adapter for the connection, and click OK, as shown in figure 3.

Figure 3: Creating a Virtual Network.
Now right-click on the server in the navigation pane, and select Hyper-V Settings. Use this dialog box to change the default location for storing virtual hard disks (VHD) and VM file. A VHD is a disk image, literally, a hard disk saved as a single file. The VM file that contains the configuration settings for the VM including the name and location of any VHDs used by that VM. You can change several other less significant settings in this dialog box.
Creating and managing VMs in Hyper-V is similar to working with them in Virtual PC, as described in Configuring DNS for Active Directory. To create a new VM and VHD right-click on the server in the navigation pane, select New, then select Virtual Machine. The wizard will prompt you to specify names for the VHD and VM files, how much memory to assign to the VM, and which virtual network to use, as shown in figure 4. You can create a new VHD or use an existing one. Complete the wizard.

Figure 4: Creating a New VM.
At this point you could boot the VM and install an operating system, rather than fill several pages with step-by-step instructions on how to install Windows Vista, the rest of this section will focus on features unique to Hyper-V. Right-click your new VM and select Connect. A new window appears that you use to manage the VM, many of the commands available in this window can also be accessed by right-clicking on the VM in Hyper-V Manager. Select Start from the Action menu to turn the VM on, the fact that no OS is installed is irrelevant at the moment. Click the Action menu again, notice the Insert Integration Services Setup Disk is now enabled, as shown in figure . If you were logged into an OS on the VM selecting this command would allow you to install the VM additions that enhance integration between the guess OS and Hyper-V. Also note the Snapshot command is enabled, snapshots replace the undo disks available in Virtual PC. A snapshot is a point-in-time copy of the VM, its useful but not as flexible as a backup created with Windows Server Backup. You can take a snapshot of a VM after you have configured it the way you want to and then revert to the snapshot version after hopelessly damaging the VM during testing. For production VMs you should use Windows Server Backup to help with disaster recovery.

Figure 5: Using and Configuring a VM.
High availability refers to the implementing technology and processes to increase the likelihood that a network service will remain accessible when one or more components fail. There are numerous ways to increase system availability; some can actually reduce costs by lowering operational expenses, e.g. an effective change and configuration regimen tends to lower operational costs while increasing service uptime. Systems administrators tend to dream of quickly implementing the latest products that improve availability but it is important to remember that good systems management is critical when striving to increase availability. Another approach is to increase the availability of a single system by installing backup components within it. For example, configuring a level 5 Redundant Array of Inexpensive Disks (RAID) ensures that the failure of a single disk will not cause any data to be lost. Computer vendors also offer servers that support multiple power supplies, hot-swappable components, teamed network interface cards, and other technologies to allow the computer to continue running after a part no longer functions. The test however, is likely to focus on two methods which involve deploying redundant servers, these are discussed in the subsections that follow.
A failover cluster, also called a high availability cluster, is a group of two or more servers that offer identical network servers. They monitor one another; typically by sending heartbeat signals on a private network, when one fails the others assume the load that had been carried by the server that is no longer online. There are many variations on this type of clustering, servers located in the same facility might share the same data storage device so that they both are always working with the same information. Geographically separated clusters must rely on data replication between sites to keep information up-to-date at each location. In an active-active cluster both servers provide network services and respond to client request whereas in a passive-active cluster one server responds to queries, the second only becomes active if it determines that its partner is no longer functioning. Failover clustering requires the application to support clustering, the application on the failover server has to initialize and has to complete some processes to become fully functional such as re-establishing connections with clients.
In Windows Server 2008 Failover Clustering is available as a feature in Server Manager. You can install it in your practice lab but you may not have access to hardware required to implement a cluster. A two-node file server cluster requires two nearly identical servers, network adapters, network cables, storage controllers, and a storage device shared by the servers. All of the components must be Certified for Window Server 2008. Some computer vendors offer complete solutions based on Microsoft’s Failover Clustering. You can build your own, but you must be diligent in ensuring that the hardware is compatible.
First deploy the hardware following the manufacturer’s instructions, then install Windows Server 2008, and then install Failover Clustering. To verify the configuration will work open Failover Cluster Management from the Server Tools folder and click Validate a Configuration in the details pane. This procedure launches a wizard that will test the system, as shown in figure 6.

Figure 6: Validating a Failover Cluster Configuration.
After validation succeeds click Create a Cluster to start another wizard that will walk you through the process of building the failover cluster. To configure a file server cluster click Manage a Cluster and do the following:

Figure 7: Selecting the File Server Service.
The procedures for creating other types of clusters are similar, however the details will vary depending upon what service or application you specify. Clustering only makes sense for certain server roles, for example, its not necessary to cluster domain controllers because they are designed to continue operating should one fail in a domain. Web servers are another, instead of clustering load balancing is usually a better way to increase their availability. Load balancing is discussed in the next section. I doubt that you need to memorize all of the details of deploying and managing clusters in order to be successful when you sit for the exam, I think that it’s important you understand the capabilities and requirements of Failover Clustering in Windows Server 2008.
Tip: In my experience with clusters, the operating system and application are relatively easy to implement and operate, what is usually more difficult is acquiring the right hardware and deploying it correctly. If this topic is new to you and you are considering implementing server clusters I suggest that you contact several hardware vendors to learn what packaged solutions they offer. For additional information on clustering in Windows Server 2008 visit the links provided in the References section at the end of the chapter.
Network load balancing is very different than clustering, it’s a technique for dividing work amongst two or more servers. The simplest form of load balancing is round robin DNS. In round-robin DNS the DNS record for a hostname resolves to multiple hosts, the DNS server cycles through the list one at a time when responding to queries so that each server is used by the same number of clients. This approach has a glaring weakness, if one of the servers targeted by round robin DNS fails the DNS server will continue sending clients to it, those clients will be unable to access the application they need. Another approach is to deploy a dedicated network device such as a DistributedDirector from Cisco. Generically speaking, a DNS record points to the network device, you enter the addresses of all of the servers to be load balanced and assign relative weights to them so that the most capable servers receive a larger portion of clients. The network device tracks active connections, should one of the servers go offline the device will redirect clients to other servers that are available. This approach works very well with applications where there is little or no state data maintained for each client, such as a simple website. If the server a client is using goes offline the next HTTP request is sent to a different one and the client continues browsing the website. Things get more complicated when state information is important, for example, a customer using a bank’s website to manage their account. When a server becomes unavailable the client may have to re-establish their SSL connection, then re-enter their account credentials, and then re-enter any information they were in the midst of providing. Application developers can overcome some of these issues by understanding the load balancing technology and maintaining state data for each user in such a way that users can quickly resume working after they establish a connection to a different server. For example, the bank website might store some user state data in a cookie on the user’s computer and the rest in a database accessible to any of the load-balanced web servers. Any web server could retrieve the cookie to see where in the database the rest of the state data is stored. With this approach it does not matter which web server the user connects to, any of them will be able to access all of the user’s session data.
Network Load Balancing (NLB) in Windows Server 2008 provides features similar a dedicated network device, however it is implemented and maintained by the operating system, there is no need to install additional hardware. All of the servers in an NLB cluster have distinct IP addresses, but they also share one, the address for the network service they are providing. NLB provides high availability by ensuring that other servers in the NLB cluster assume the load of one that fails. NLB also provides scalability because you simply add more servers to the NLB cluster to increase capacity. Install NLB by clicking Add Feature in Server Manager. To create a new cluster do the following:

Figure 8: Adding the First Server to an NLB Cluster.
In a production environment you would add at least one more server to the cluster by right-clicking on the cluster in the navigation tree and selecting Add Host to Cluster. You can skip this in your practice lab.
NLB port rules determine how the cluster functions. You can create port rules that specify how each port’s cluster traffic is processed. For example, assigning a higher load weight will cause more cluster traffic to be sent to that port. There are three filtering modes: Multiple hosts, Single host, and Disabled. The filtering mode can be applied to a range of ports. Each rule includes the following parameters:
· The filtering mode: Multiple hosts, Single host, and Disabled.
· The protocols to which it applies: TCP, UDP, or both.
· A port range.
· A virtual IP address.
· Load weight.
· Client affinity: None, Single, or Network. The first two ensure that all traffic from a specific client is sent to the same server in the NLB cluster. By default, all traffic not controlled by port rules is sent to the server with the highest host priority.
Caution: The number and type of rules must match all servers in the cluster. You will be unable to join a server to the cluster if it has a different number of rules.
Windows Server 2008 includes direct support for a variety of storage technologies. For example, you can configure RAID arrays that combine multiple physical hard disks into a single, logical storage volume in order to increase performance and availability. You can use Storage Manager for SANs to create and manage logical unit numbers (LUNs) on your Storage Aread Network (SAN). It is important that you understand how implement and manage these storage technologies in order to succeed on exam 70-643, however, in my experience systems administrators usually end up becoming experts in the hardware-based solutions available from storage vendors. Why is this? While its good to have the option of implementing software-based RAID within Windows hardware based solutions tend to offer higher performance and a wider range of design options. SAN vendors usually direct their customers to use the management software included with their solutions, however, now that Windows Server 2008 has management capabilities built in perhaps this will change.
Note: A VM in Virtual PC can have up to three virtual disks, so you can perform some storage management tasks in your practice lab but you will not have access to some features such as RAID 5 arrays or SANs if you do not have Windows Server 2008 installed on a physical server with the appropriate hardware installed.
In Windows Server 2008 new disks are automatically brought online unless they are on a shared buss such as SCSI or Fibre Channel. You must bring a disk online before you can initialize it or create volumes on it. New disks must be initialized before you can use it, if you start Disk Management after installing a disk the Initialize Disk Wizard will guide you through the process. Disk Management is an MMC snap-in that is part of the Computer Management console in the Administrative Tools folder. Disk Management relies on the Virtual Disk Service (VDS), the system service that enables management of disks, volumes, partitions, and iSCSI initiators. It provides a single interface for administering disks locally and remotely. Windows includes built-in providers for managing many kinds of storage devices, hardware vendors can write additional providers to enable management of their solutions.
Disks can be dynamic or basic. With dynamic disks volumes can span multiple disks, whereas basic disks only support logical drives, extended partitions, and primary partitions. Disks can use a Master Boot Record (MBR) or a Globally Unique Identifier (GUID) partition table (GPT). MBR disks use the standard BIOS partition table while GPT disks use the extensible firmware interface (EFI) and they support more than four partitions as well as disks larger than 2 terabytes. To create a volume or change disk types right-click on the disk in the left column as shown in figure 9. If you right-click on the right column the commands to change disk types are not visible.

Figure 9: Configuring a Disk.
Windows Server 2008 supports several types of volumes:
When you create a new volume you can assign a driver letter to it or mount it in an empty NTFS folder on an existing volume, as shown in figure 10. The folder can be on a dynamic or basic disk, but it must be empty and the volume must be formatted with NTFS. Mount points can help you overcome the problem of running out of drive letters on a computer that hosts numerous storage volumes.

Figure 10: Mounting a New Simple Volume.
Windows Server 2008 includes two other tools for managing disk storage. Storage Explorer is installed by default, you can find it in the Administrative Tools folder. Storage Manager for SANs is an optional feature that you can install from Server Manager. Storage Exporer is used to view and manage Fibre Channel and iSCSI fabrics available on the Storage Area Network (SAN) whereas Storage Manager for SANs is used to create and manage logical unit numbers (LUNs) on Fibre Channel and iSCSI storage subsystems. It may be helpful to define some terms:
These technologies are illustrated in figure 11. Any of the hosts on the network can access the NAS device directly. The hosts can only access the iSCSI storage through the iSCSI-capable server. The hosts can only access the storage on the Fibre Channel SAN through the servers that have the Fibre Channel hardware.

Figure 11: Storage Topology.
In this chapter you learned how to use WDS to install Windows on large numbers of computers by creating installation images. You also found out how to implement Windows activation on enterprise networks. The virtualization technology included with Windows Server 2008, Hyper-V was introduced. You were also shown how to configure failover clusters, NLB clusters, and storage devices. This chapter covers a broad range of material, I have tried to provide you with enough information to do well on exam 70-643, however I encourage you to study further by visiting the addresses provided in the References section.
This section presents a list of review questions designed to help reinforce the knowledge presented earlier in the chapter. To persuade you to explore the management tools more deeply a few questions may require you to examine those tools further rather than rereading the chapter.
Designing Network Load Balancing.
Step-by-Step Guide for Storage Manager for SANS in Windows Server 2008.