I trust you’ve had fun exercising the Geneva Framework Samples. Now let’s take the steps to build out a Geneva Server. Again, as mentioned in my previous post, if your intent is to build out the full working end-to-end scenario then follow the explicit guidance in the Geneva Step-by-Step Guide in the Downloads section of the Microsoft Code Name “Geneva” Connect site. The VM we build out here will be limited (we’re using localhost) to exploring Geneva Server on a single VM. This VM will not be easily extended into other scenarios (e.g. federation) without additional certificates, certificate exchanges and DNS/networking configuration which are beyond the scope of my purpose here. But if you want to experiment with a single VM, then please proceed. Otherwise, I suggest you invest your time in building out the step-by-step’s more robust environment.

Disclaimer: This blog is not the source for official guidance regarding Microsoft Code Name “Geneva”. Please always refer to the Geneva Team Blog for official information from the product group and post any Geneva questions on the Geneva Forum.

Step 1: Create a New VM from a Copy of the Backup [Copy time]

  1. Using the backed up files from step 9.3 of the previous post, copy the Geneva-Base.vhd and .vmc into a new folder.
  2. Rename each of these to Geneva-Server so you have both a GenevaServer.vhd and Geneva-Server.vmc file.
    0200 - Rename files 

Step 2: Configure the VPC Settings [3-5 minutes]

  1. Open the Virtual PC Console.
  2. Click New… to open the wizard, click Next.
  3. Select “Add and existing virtual machine” and click Next.
  4. Browse… to the folder with your newly renamed Geneva-Server files, select the Geneva-Server.vmc file, click Open and click Next.
  5. Click Finish.
  6. The Setting file should open automatically, if not, click the Settings button.
  7. Click on Hard Disk 1 and notice that it is still associated with Geneva-Base.
    0210 - Rename files
  8. Click Browse…, then in the Select Virtual Hard Disk, choose the Geneva-Server file and click Open.
    0220 - Rename files
  9. Click OK to close Settings.

Step 3: Rename the Machine to genevasts [3-5 minutes]

  1. Open the Virtual PC Console and Start the Geneva-Server.
    0230 - Build DC
  2. Logon, click Start, right-click Computer and select Properties. We’ll rename the machine to genevasts.
  3. Choose Change Settings.
    0240 - Build DC
  4. On the Computer Name tab, click Change…, then type genevasts and click OK.
    0250 - Build DC
  5. Click Ok, OK, Close and Restart Now.

Step 4: Download Geneva Server Beta and SQL Server 2008 Express with Tools [Time depends on connection speed]

  1. Before we turn the VM into an Active Directory Domain Controller (DC) with a static IP, we need to download the Geneva Server Beta install file.
  2. Logon to the rebooted VM.
  3. Open IE and navigate to the Connect site https://connect.microsoft.com/site/sitehome.aspx?SiteID=642.
  4. In the “Geneva Server” section click the link to the “x86 setup package.”
  5. SAVE” this, don’t Run it yet, to a location on the C drive.
  6. Download (SAVE) Microsoft SQL Server 2008 Express with Tools (x86 version) from, http://www.microsoft.com/downloads/details.aspx?FamilyId=7522A683-4CB2-454E-B908-E805E9BD4E28&displaylang=en to a location on the C drive.

Step 5: Set a Static IP [3-5 minutes]

  1. Because this DC will have DNS installed on it as well, we’ll use a static IP. You can use what you like, but if you don’t have a preference then you can use 192.168.20.2.
  2. Right-click the network icon in the system tray, select Network Sharing Center.
    0270 - Build DC
  3. Select the View Status link beside the Local Area Connection.
  4. On the General tab, click Properties.
  5. On the Networking tab, click on Internet Protocol Version 4 (TCP/IPv4) and click Properties.
    0280 - Build DC
  6. Select Use the following IP address and enter 192.168.20.2 or an IP of your choosing. The subnet mask will default as shown.
    0290 - Build DC
  7. Click OK, Close, Close and close the Networking and Sharing Center.

Step 6: Build the VM into an Active Directory Domain Controller [15-20 minutes]

  1. Click Start, Administrative Tools and Server Manager.
  2. Right-click the Roles node and select Add Roles.
    0300 - Build DC
  3. Click Next on the first panel of the wizard and click the Checkbox for Active Directory Domain Services.
    0310 - Build DC
  4. Click Next, Next and Install.
  5. Once the install has completed you’ll see that the instructions say that you need to now run the dcpromo.exe wizard which will actually “promote” the server to a DC. Click Close on the wizard and close the Server Manager.
  6. In Start Search type dcpromo and press Enter.
    0320 - Build DC
  7. When the wizard opens, click Next.
  8. On the Operating System Compatibility panel, click Next.
  9. On the Choose a Deployment Configuration panel, select Create a new domain in a new forest. Click Next.
  10. On the Name the Forest Root Domain panel, type in a name of your choice, I chose contoso.local. Click Next.
  11. On the Set Forest Functional Level panel, select Windows Server 2008 since this will be the only DC in the forest. Click Next.
  12. On the Additional Domain Controller Options panel, click Next. When prompted with the Static IP assignment message, choose Yes. (This has to do with IP v6 and not what we set.)
  13. When prompted about delegation and DNS asking if you want to continue, click Yes.
  14. On the Location for Database, etc. panel, click Next.
  15. On the Directory Services Restore Mode Administrator Password panel, type a password you can remember – generally for a test server like this you can use the Administrator password. (The point is that you shouldn’t need to use this in this test environment anyway.) Click Next.
  16. At the Summary panel, click Next.
  17. Click Finish and Restart now.
  18. Now’s a good time to shutdown and backup your new DC.

Step 7: Install Windows PowerShell, SQL Server Express 2008 and Geneva Server Beta 1 [50-75 minutes]

  1. Open the Virtual PC Console and Start the Geneva-Server.
    0230 - Build DC
    You will notice that it takes a little bit longer to come up now that it’s a DC since it has a number of new services that it must fire-up at startup.
  2. Click on the VM window, press Right-Alt+Delete and login.
  3. First, we need to install Windows PowerShell which is needed for the SQL Server Express install. Click Start, Administrative Tools, Server Manager.
  4. Right-click on the Features node and select Add Feature.
  5. Select Windows PowerShell and click Next.
    0332 - Install Powershell
  6. Click Install and when done, click Close.
  7. Now, we’ll install SQL Server Express 2008. Open Windows Explorer, navigate to the location where you saved the SQL Server Express install download, SQLEXPRWT_x86_ENU, and double-click it.
    0331 - Install Geneva Server
  8. On the SQL Server Installation Center, click the Installation link and then the New SQL Server stand-alone installation or add features to an existing installation link.
    0340 - Install SQL Server
  9. On the Setup Support Roles panel, click OK.
  10. On the Product Key panel, click Next.
  11. On the License Terms panel, accept the terms and click Next.
  12. On the Setup Support Files panel, click Install.
  13. On the Setup Support Rules panel, click Next.
  14. On the Feature Selection panel, select all but Replication and click Next.
    0350 - Install SQL Server
  15. On the Instance Configuration panel, click Next.
  16. On the Disk Space Requirements panel, click Next.
  17. On the Server Configuration panel, select NT AUTHORITY\SYSTEM click Next.
    0360 - Install SQL Server
  18. On the Database Engine Configuration panel, click Windows Authentication mode, click the Add Current User button, click Next.
    0370 - Install SQL Server
  19. On the Error and Usage Reporting panel, click Next.
  20. On the Installation Rules panel, click Next.
  21. On the Ready to Install panel, click Install.
  22. Once the install completes (this can take some time), Click Next.
  23. On the Complete panel, click Close.
  24. Close the SQL Server Installation Center.
  25. Lastly, we’ll install Geneva Server Beta. Open Windows Explorer, navigate to the location where you saved the Geneva Server install download, Geneva.IdentityServer.x86, and double-click it.
    0330 - Install Geneva Server
  26. The install wizard will start. Follow through the wizard and simply take all the defaults. Click Finish and the Geneva MMC will open automatically.
  27. Ok, this gets you a DC with Geneva Server installed. Now for the instructions to configure the server and learn more about it, I’ll refer you to the product group provided documents on the Connect Download site. Download the Geneva Server How-To Guides
  28. Use the InitialConfig document to finalize your configuration. For the Policy Store Configuration selection you will drop-down the selection list and choose, GENEVASTS\SQLEXPRESS.
    0380 - Install SQL Server
  29. Then read the Getting Started document and go on to the other documents as desired.
  30. Now’s a good time to shutdown and backup your new Geneva Server.

Please post any questions relating to the Geneva Framework or Geneva Server on the Geneva Forum. If you have questions about this VM setup, please feel free to post them here.

In my next post we’ll wire up the code samples for the Simple Claims-Aware Web Applications to the Geneva Server.

Enjoy your Geneva Server!