These instructions will setup a KMS server with a Server 2008 R2 KMS key
1. Log onto https://www.microsoft.com/licensing/servicecenter/ and fetch your Server 2008 R2 KMS key
2. Bring up an elevated command prompt
3. Type slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx where the last section is the Key from your volume licensing website.
4. Open “Windows Firewall with Advanced Security” via Start menu -> Administrative Tools
5. Under Inbound Rules scroll down to “Key Management Service (TCP-In)”, right click and select enable
6. Reboot the server
7. Activate the Server once it has rebooted with “slmgr.vbs /ato” with an elevated command prompt
8. Enable automatic DNS publishing by the KMS host by entering “slmgr.vbs /sdns (must be in an elevated command prompt)
9. Check the DNS server to make sure that the KMS Host has been published. The KMS Host should be published under domain name > _tcp > _VLMCS