From the archive
Microsoft's Private Cloud Installation (2012 R2)
At work I've been doing some research into private cloud options. We hope to launch a private cloud (focused on development, not production) to host our build servers, test systems, tools like TFS and Git, and anything else we think of. Digging into Microsoft's Private Cloud offering turned out to be challenging. There are many articles and videos explaining how to use it once it is up and running, but I could not find a single guide on how to create one from scratch, so I thought I would document what I have done to save someone else the trouble.
The basic components needed for a Private Cloud is:
- An Active Directory Domain Server with working DNS
- At least one Hyper V Server (more is better) with Multipath I/O installed on each
- A SQL Server installation
- A System Center Virtual Machine Manager Installation (SCVMM)
- An SCVMM library Server
- A System Center Application Manager Installation
- Teaming Mode: Switch Independent
- Load Balancing Mode: Hyper-V Port
- Before starting, configure your "Internet and LAN" network adapter with a static IP and make sure the DNS servers are also static and correct.
- Select a domain name that is not already in use anywhere this server will connect to. I recommend the best practice of adding ".local" to the end which should keep it from conflicting with any internet addresses.
- Windows Server computers in a trusted Active Direct domain
- Manually enter the credentials and enter credentials that have admin access on your hyper-v server
- Specify Windows Server computer by names and type the name of your hyper-v server
- Select your server name from the list and add it.
- Right click Library Servers and click "Add Library Server"
- Enter the credentials used to access the server and click next
- Enter the computer name of the computer you are using as the library server and click search
- Select the computer from the selected servers list and click next
- Check the checkbox next to the MSSCVMLibrary share you have created and click next
- Click Add Library Servers
- Name: enter any name that will help you remember which subscription you are connecting to.
- Subscription ID: enter the subscription id found in the Azure portal under Subscriptions, Manage Subscriptions.
- Management Certificate: Upload the private key of your management certificate
- Management Certificate Password: Enter the password used to unlock your private key
makecert -sky exchange -r -n "CN=" -pe -a sha1 -len 2048 -ss My ".cer"This will result in a public key getting generated in the .cer file created and a private key getting add to your local machine's certificate manager. Run "certmgr" on the machine used to generate the certificate, find the private key and export it, during this process you will associate a password with the certificate and generate a PFX file which is your private key. These are the items that get inserted into SCAC. If you did generate a new certificate you also need to upload the public key to your azure account. In the portal, select Subscriptions, Manage Subscriptions, Select Management Certificates, and click upload. This must be done before you can connect SCAC to Azure. At this point you should have a fully functional private cloud! In my next post I will cover how to deploy a service into your private cloud as well as VM's.
Originally published December 19, 2013. Preserved from the legacy CameronVetter.com archive.