Skip to content

How to build a Cluster with a Physical and a Virtual Hyper-V server Using Virtual Machine Manager (VMM) 2012

June 22, 2012

Yeah, i am looking forward to get this going….
I will try to have two Hyper-V servers (one physical and one virtual) clustered using Virtual Machine Manager 2012. Why? Because i want to test how to cluster Hyper-v servers with VMM 2012 and i (pretend to) only have one test computer.

I have installed the physical machine with Windows 2008 R2 + SP1 and added the Hyper-V Role (HOST 1). Now i created a external network and build a virtual machine and installed Windows 2008 R2 + SP1. (HOST 2). Now i imported the virtual SQL server and the virtual VMM 2012 server and a domain contoler i prepared for another test on HOST 1. I make sure all the servers can communicate and are domain members.
Now comes the first challenge. I need to have the Hyper-V role on the virtual machine. When i simply try to add the role it gives me an error which says that the processor might be incompatible or not correctly configured in the BIOS. The reason for this is that the hardware layer cannot be found. For now there are two possibilities to add the role:

  1. Attach the VHD and have you’re physical machine boot from it. Add the Hyper-V role. Detach the VHD and reboot the physical server from the original installation. Create a new virtual machine and use this VHD. Now when you start the HOST 2 you will see the Hyper-V role is installed.
  2. Use VMM 2012. More on this later this article because this is the way i want to go.

Deploy Agents and add the Hyper-v role

Make sure all machines are running. Now i want to deploy the VMM agent on the host machines. Start VMM and open the administrator Console. Start the “add Hyper-V and hosts” wizard:

 

 Now here comes the part i mentioned before getting the Hyper-V role on a server. When you say next a message pops-up:

So actually this is quit simple and i agree to this and see waht happends:

 

It starts deploying the image and reboots host2 after installing the agent. Cool! Onto the next steps.

Create a central storage solution using Microsoft ISCSI Software Target

i Downloaded the software here: http://www.microsoft.com/en-us/download/details.aspx?id=19867 and installed and configured it on a virtual machine. I created three virtual disks, specified a iqn and added the hosts so they have permission to use the created disks.

Configure the HOSTS ISCSI

Configure ISCSI on both hosts to connect to the server you just configured for ISCSI emulator. Check if you get the disk available under storage.

Cluster the hosts using VMM

Almost there! The last step is to use VMM 2012 to cluster both hosts.
Open VMM and in the ribbon, click Create, and then click Hyper-V Cluster:

Note: I did not see the IP address section in the wizard at first and found that the network adapter on the virtual host was the problem. I needed to change it to a legacy network adapter.

I do not configure any virtual networks at this point because it is out of the scope.

 

 The cluster is now fully functional. Keep in mind that you cannot run any VM’s on the virtual host!

Advertisements

From → System Center

Leave a Comment

Leave a Reply

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: