[Part-2]Private Cloud: Configure SCVMM and SPF   3 comments


This is second post in the series of blog posts on how to build own Private Cloud using Windows Azure Pack (WAP).

 

Here is a list of topics for the entire series:

 

[Part-1]Private Cloud: Introduction and installation of pre-requisites

[Part-2]Private Cloud: Configure SCVMM and SPF

[Part-3]Private Cloud: Install and Configure WAP

[Part-4]Private Cloud: Demo of provisioning VM and SQL DB using Tenant portal.

[Part-5]Private Cloud: Some common issues and troubleshooting tips.

 

In the first part of the series, we installed SCVMM and SPF. Now, we will configure SCVMM to make it cloud aware followed by configuration of SPF. Here is a quick overview of what we are going to do in this post:

 

1.   Configure System Center virtual machine manager (SCVMM)

1.1. Create and add a sysprep VHD file to VMM library

1.2. Add a physical host to VMM

1.3. Create a hardware profile for your VM’s.

1.4. Create a VM template and attach hardware profile and sysprep VHD to template

1.5. Create a logical network

1.6. Create a cloud and attach all the above details to cloud.

 

2.   Configure Service Provider Foundation (SPF)

Let’s configure SCVMM first.

1. Configure System Center Virtual Machine Manager (SCVMM):

1.1.           Create and Add a sysprep VHD file to VMM library.

 

1.1.a.  Login to SCVMM Server

 

          2-system_center_connect_dialog_box

                            (Click to expand the picture)

1.1.b.  Go to library and expand your Library Servers and the SCVMM server under that you will see all the VHD’s. By default you will find only 4 blank VHD disk.

 

             

               (Click to expand the picture)

 

1.1.c.    Let’s sysprep a Virtual Machine (VM) now. I will be using Azure1  from a list of my already configured VMs. Azure1 has all the required software’s e.g. SQL Server.

 

           

                         (Click to expand the picture)

1.1.d. Launch sysprep executable from %windir%\System32\sysprep\sysprep.exe  

Under System Cleanup Action select

Enter System Out-of-Box Experience (OOBE) Check Generalize checkbox Under Shutdown Options select Shutdown Hit OK

 

                     

                           (Click to expand the picture)

                  

                           The VM Azure1 will automatically shutdown.

 

1.1.e.    Go to Hyper-V Manager console, right click > choose Settings for VM Azure1. Select hard drive Azure1.vhd

 

           

             (Click to expand the picture)

 

1.1.f.     Recall the screenshot from step 1.1.b. Click Open File Location from sub-menus at the top.

 

           

               (Click to expand the picture)

 

1.1.g.    Copy the vhd file here (SCVMM server) to be later used by our VMM server.

 

           

                     (Click to expand the picture)

 

1.1.h.  Go back to SCVVM console and refresh. You will find the copied vhd file in the library.

 

         

                         (Click to expand the picture)

  

1.2. Add a physical host to VMM

 

Now, we need to add new host where our VM will be deployed.

 

1.2.a.    Go to  Fabric > Servers > All hosts
               Right click on All hosts and select Add Hyper-V Hosts and Clusters

 

               

                          (Click to expand the picture)

1.2.b.    On the Resource Location page, select the one applicable to you. In my case I have selected trusted active directory domain.

 

           

                          (Click to expand the picture)

1.2.c.    On the Credentials page, enter the credentials which should have access to the host which you want to add. Please note, this account should not be the same as which VMM service is running.

 

           

                         (Click to expand the picture)

1.2.d.    On the Discovery Scope page, provide the FQDN of the server.

 

           

               (Click to expand the picture)

 

1.2.e.    Select the server from the list.

 

           

                         (Click to expand the picture)

1.2.f.     Click OK on this screen below, it will enable the Hyper-V on the server.

 

           

                           (Click to expand the picture)

1.2.g.    Click on Next and Finish. Once the host is added successfully, it will appear under All Hosts > VMs and Services within SCVMM console.

 

           

                           (Click to expand the picture)

 

1.3. Create a hardware profile.

 

1.3.a.    To create a hardware profile, go to Library > Profile > Hardware Profile. Right click on Create Hardware Profile

 

               

                          (Click to expand the picture)

1.3.b.    On the General tab, give any name and click OK. I used contoso.

 

           

                          (Click to expand the picture)

 

1.4. Create a VM template and attach hardware profile and sysprep VHD to the template

 

In this section we will create a new profile and assign hardware profile and vhd file which we created in previous step to this template.

 

1.4.a     Go to Library > Templates > VM Templates, right click and select Create VM Template 

1.4.b.    In the Select VM template sources select the same vhd file you copied earlier. In my case it is Azure1.vhd.

 

           

                           (Click to expand the picture)

1.4.c.    In the Configure Hardware section, select the hardware profile we created earlier. Remember it was contoso for me.

 

           

                           (Click to expand the picture)

1.4.d.    Click Next, continue with rest of the wizard with the default options.  Once complete, you will find the template created.

 

           

                           (Click to expand the picture)

 

1.5. Create a logical network

 

Now, we will select applicable network to create a logical network.

1.5.a.    Go to Fabric >Networking > Logical Networks

1.5.b.    Right click and select Create Logical Network

I selected Local Area Connection 8

 

           22-create_network

          (Click to expand the picture)

 

1.6. Create a cloud and attach all the above details to cloud.

Select Create Cloud from the sub-menu and follow rest of the wizard as shown in a few screenshots below.

 

       

          (Click to expand the picture)

 

Select All Hosts for this cloud

 

         

             (Click to expand the picture)

 

Select the Network

 

         

             (Click to expand the picture)

 

Specify the VHD file path for stored VM path

 

           

             (Click to expand the picture)

 

Leave the default values in rest of the tabs.

Note: Make sure you leave Capability Profiles unchecked.

 

2. Configure Service Provider Foundation (SPF)

 

SPF configuration is pretty easy. Nothing needs to be configured post installation. But hey, make sure that service account(spf) specified during the SPF installation is already added in the following Local User Groups starting with “SPF_”

 

(Click to expand the picture)

 

Also, go to IIS and select the application pool and verify that the same service account is showing here as well.

 

(Click to expand the picture)

 

Now, we have all the pre-requisites installed and configured. Well done! We are now one more step ahead towards our private cloud.

In the next blog post of this series, we are going to learn how to install and configure WAP.

Stay tuned for the next post on [Part-3]Private Cloud: Install and Configure WAP

Happy building Private Cloud!

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: