Wednesday, July 20, 2011

Load Balancing and Cloud Computing (SCVMM 2012)

One characteristic of cloud computing is virtualized network access to your applications/services. The point is that no matter where you access the service, you are automatically directed to the available resources. We are using load balancing to distribute service requests to these resources.
This is normally implemented using hardware load balancers, like F5 Big IP servers.

What can be load balanced?

·         Access to application instances
·         Services such as DNS, FTP, HTTP, and HTTPS
·         Storage resources
·         Connections through intelligent switches

If you ask me, cloud computing would be difficult to “achieve” without load balancing. It provides redundancy through redirection, and fault tolerance when coupled with a failover mechanism.

So, this brings us to the Load Balancing feature in System Center Virtual Machine Manager 2012.

First, download the load balancer from Citrix (NetScaler VPX) which you can run as a virtual machine. (Yeah, I know I said hardware load balancer, but this will simulate their load balancer and is ideal for testing).
Here`s the link by the way: Download NetScaler VPX on Hyper-V. You have to register to Citrix to get a license, and you can do it here.

1)      After the download, extract the content, and import the VM into Hyper-V. (Important: the VM needs 2 vCPU, and at least 4GB RAM. Also connect it to your virtual network you intend to use)
2)      Configure IP, subnet, and gateway
3)      Access the NetScaler VPX through a web browser, with the IP address you assigned
4)      Activate the product… (I was not sure how to obtain a license key on this one. After a long registration process, and some cups of coffee, I decided to test the twitter power. Luckily, there was one Citrix-guru who responded in about 60 seconds (thx to @Niraj_S_Patel). He gave me a tip that to obtain the license, you had to provide Citrix with the MAC-address of you NetScaler VM. This was actually confusing, since Citrix called it “hostname”)
5)      Download the license, and upload it to the NetScaler through the web-interface.
6)      Activate the features in NetScaler

Once all this is done, we can move over to the Fabric in VMM 2012.
First thing first: Download and install Citrix Netscaler LB Provider into VMM 2012. (You may need a reboot before VMM recognizes the provider)

1)      Go to Networking
2)      Click Load Balancers
3)      Right click on Load Balancers, and select “Add Load Balancer”
4)      On the Specify Run As account page, find your Run As account with permission to the load balancer. If you`re using the NetScaler VM for Hyper-V, the username and password is nsroot.
5)      Select the check box next to each host group where the load balancer should be available
6)      On the Manufacturer and Model page, select the load balancer manufacturer and model. (Citrix Systems, Inc. and Citrix NetScaler)
7)      On the Address page, specify IP, FQDN, or NetBIOS name of the load balancer. In the port number box, enter the port number that you use to connect to for management of the load balancer.
8)      On the Provider page, click an available provider to use for load balancer configuration.
9)      Validate, and test the load balancer.
10)   You`re now done, and have hopefully added your NetScaler load balancer.

We have now added a load balancer to our Fabric, and to take the next step, we`ll create a VIP Template. This is a template that contains a load balancer, and is related to specific type of network traffic. You can have many templates, one for HTTP, HTTPS, yeah, you got it.
This is ideal when you want to load balance a service tier. (You can add load balancer into the service designer when you are designing your services).
Since we`re still in the Fabric, navigate to:

1)      Networking, and click VIP Templates
2)      Right click VIP Templates, and click Create VIP Template
3)      Give it a name, description, and the virtual IP port to use. The virtual IP port is the port that is used for the type of network traffic that you want to load balance.
4)      On the Type page, select either Generic or Specific. (Generic can be used on any supported load balancer, and Specific applies to specific load balancers (model).
5)      On the Protocol page, select the protocol you intend to use. (HTTP, HTTPS, or Custom)
6)      On the Persistence page, you can select Enable persistence to enable session persistence (affinity).
7)      On the Load balancing method page, you can choose between the fast connections, round robin, or the least connections.
8)      On the Healt Monitors page, specify a request that will occur at regular intervals against the load balancer to verify that a load balancer is available.
9)      You`re done! Click finish, and you have the first VIP Template created, and ready for action.

Cheers,

Friday, July 15, 2011

SCVMM 2012 – What does it mean to your business?

I`ve read in several places, that there is no such thing, as a private cloud.
Ok. What do you mean?

“To have an elasticity that could be used in a cloud-scenario, our organization would have to invest in some serious hardware”

Yes – it`s all a matter of cost, right? (Maybe I should have use the correct terms here. CapEx and OpEx)

The thing about cloud, is that you should start small, and think big.
SCVMM 2012 fits in right here.

·         Bare-Metal deployment of your Hyper-V servers, as well as creating Hyper-V servers using your existing Windows 2008 R2 servers (everyone is using virtualization today. If not, become the hero of the day and start on Monday)
·         Create Hyper-V clusters
·         Extended library – VM templates, ISO files, scripts, VHD`s + +
·         Support of more hypervisors – Hyper-V (Windows Server 2008 R2 with Hyper-V role enabled, Server Core with Hyper-V enabled, and Hyper-V 2008 R2), XenServer (version 5.6 with Feature Pack 1), VMware (vSphere through vCenter (4.1) and hosts with ESXi/ESX 4.1 and 3.5) Microsoft Virtual Server 2005 R2 is no longer supported in VMM 2012
·         You can optimize your hosts and clusters
·         You can create a Private Cloud . This is the underlying physical resources (infrastructure) that is pooled together, available in a self-service manner for your users.
·         Deploy services to your private cloud, with the ability to scale out and in (elasticity)
·         Orchestrate updates of your Hyper-V cluster nodes (using WSUS dedicated for your cloud, configured in the Fabric)
·         Deep storage integration (see hyper-v.nu for some details around this. Hans Vredevoort is lucky enough to have a SAN that support the SMI-S provider, that is required for this scenario J )
·         Self-service portal – let the guys on accounting test a new CRM system, a new idea – just when they want no, with no interference from IT.

If you have the NIST definition of cloud computing in mind when you`re reading the list above, you`ll see that how it fits into the big cloud thing.

So if you do not have a so called cloud today, what can SCVMM 2012 do for you?

You could:
Start to deploy some virtualization in your environment, convert your physical workloads to virtual, virtual to virtual (from VMware to Hyper-V, or just add the VMware host into SCVMM 2012).
SCVMM 2012 is not only a rich management tool for your enterprise datacenter, it`s also the first stepping stone towards your private cloud. With a focus on resource pooling and resource optimization, it suddenly starts to sound economic as well.
A private cloud facilitates not only for better server utilization, but also a better exploitation of your IT-department


I will fill in a FAQ on SCVMM 2012 on this post next week, so it will be updated on a regular basis from now on.

Cheers,

Sunday, July 3, 2011

Understanding the Service-concept in VMM 2012

For those of you that have tested and played around with VMM 2012, may be aware of the new concept of services. VMM 2012 inherited the great possibility to create VM templates from VMM 2008 R2, and has taken this a bit further in 2012.

When you create a VM template in VMM 2012, you can define the following configuration:

·         Hardware Configuration (HW Profile)
·         OS Configuration (OS Profile)
·         Application Configuration (Application Profile)
·         SQL Server Configuration (SQL Profile)

It`s worth to pay attention to that if you`re touching the Roles/Features in the OS profile, or/and the Application Profile/SQL Profile, you will get a message when you deploy your VM, that it need to be deployed as a service, since it contains additional configuration (not only the HW profile with a reference to a vhd, networking, CPU`s, RAM, and the OS profile with admin password, domain information, time zone, and license key).
If you choose to continue, these options will be ignored.

So, let`s move over to the Service Templates.
In VMM 2012, you can create a service, which is a logical grouping of VMs that you can manage as a single entity.
You can either create a single-tier service, or a multi-tier service.

Explanations:
A single-tier service contains a VM with ‘additional’ configuration. Like Application configuration, OS roles and features, SQL deployment/DACPAC`s, web apps, and so on. You can create a single-tier service, and scale it out. We will come back to the scaling later in this article.
A multi-tier service contains more than one VM. For example, you can deploy one SQL server tier, one Server App-V tier, and two Web App tier. These VMs will together define the service, and be their own little ecosystem.

It`s worth to mention that some people think that the service deployment is suited for other types of deployments. You can, technically deploy your Domain Controller, Remote Desktop Server, VPN server, and whatever server you`d like through this feature, but that is not what it`s meant for, unless it`s all a part of an application on the top, which you intend to scale out. Let me try to explain.
With VMM 2012, you`re able to manage the lifecycle of your applications. But remember that each and every application has some sort of software dependencies, some sort of manual input and requirements. So the service deployment and ‘scale-out’ is not suited for every application.

You can add, sort, and manage the underlying hardware in the Fabric in VMM 2012. In these days, the word Fabric is the new term of ‘infrastructure’. VMM 2012 gives you the opportunity to create a Private Cloud, which is primarily an Infrastructure – as a Service offering. With the Service deployment-feature, you`re actually able to provide your users with Software as a Service. But I will stress again, the scale-out purpose is meant for stateless application. Talking about stateless applications, this is particularly well for applications distributed with Server App-V. You can save the state of the application and reapply that state to the “new” VM. The new drag-and-drop Service Template Designer makes it easy to visually position VMs that comprise a service. (BTW: When you scale-in a service in VMM 2012, you`re in fact – deleting the VM).

Next blog: Example of a scale-out scenario.

Friday, July 1, 2011

Microsoft Most Valuable Professional – SCVMM


Dear Kristian Nese,

Congratulations! We are pleased to present you with the 2011 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in System Center Virtual Machine Manager technical communities during the past year.


Today, I was awarded with the MVP Award.

I just want to thank some important persons for me.

First of all, my brother Lars Ørjan Nese (he`s a great developer by the way) - who ‘fixed’ me into the business in 2006.
Ben Magne Stokland – you got me started, and encouraged me to learn whatever I was capable of.
Morten Pettersen – thank you for all our discussions, and the knowledge you share with me on a day to day basis.
Hans Jørgen and Jannike Neset – Thank you for listening to all of my ideas, and also to let me put them into life (and our infrastructure).
The great guys at Microsoft Norway – this would not be possible without your recommendations and guidance. You know who you are J
The community: Fawzi, Finn, Carvalho, Vredevoort, Rachfal ++

And last, my lovely son; Lukas. Thank you for letting me spends so much time with this, and thank you for being my biggest inspiration.

I am really looking forward to share my ideas with the Product Team, and hopefully be able to make an impact. There is a lot of interesting things going on in VMM 2012, in conjunction with Windows Azure, Hyper-V, and Codename Concero. It`s all about cloud computing, and to optimize your infrastructure.

(I will post a FAQ on VMM 2012 in July, so stay tuned.)

Cheers,