Creating Resource Pools in HYPER-V 3.0

In Private cloud environments, Enterprise networks in’s a common necessity to aggregate resources and allocate them and meter them rather than assigning them individually. With the aggregation comes the easiness of resource monitoring. In HYPER-V 3.0 hyper-v team offers this capability as resource pools.

The simple idea is to aggregate resources and provide them to virtual machines or tenants if it is service provider (This can be large organization who provide tenants level resource allocation to each departments as well) There are various resources types we can allocate under the HYPER-V 3.0,

  • Memory
  • Disks (VHD)
  • Processor
  • Ethernet
  • ISO
  • Virtual Fibber Channel Ports
  • Virtual Floppy Disk

I think over the time this list will grow Smile

We’ll have a look at an example for this. At this stage creating resource pools has been limited to PowerShell cmdlets instead of GUI. But you don’t mind that right Smile For the demonstration I’ll create Storage pool consist of several VHD files. I’ve created a folder called “ResourcePool” and copied 3 VHD files into that,


Now we’ll go ahead and create the resource pool in hyper-v by typing the relevant PS command, but wait before that I want to show my current machine status of resource types,


Ok now we’ll move ahead with the PS command,



Now we’ve created the resource pool (whew isn’t that so simple Smile ) ok now we’ll move to the HYPER-V MMC and try to create a new VM and select the VHD from the resource pool,

image  image  image  image

image  image 


As you can see we’ve skipped the allocation of disk in the initial steps and arrive to the settings page on that particular VM. After that from the disk pool we’ve selected pre created VHD file. Once you enable resource pool (in this example VHD) you can enable resource metering as well. This will help hosting companies or large enterprise companies to monitor and track the resource usage of that allocated resources and carry out the billing. Some of the metrics that can be monitored using resource metering are,

Average, minimum and maximum VM memory usage, VM processor usage, Total VM Disk allocation…..etc.

In the above example I’ve created a VM named as “Test-VM1”. To monitor this VM we can go ahead and enable the PS command “Enable-VMResourceMetering”


After that you can monitor the resource usage of that VM by typing the following command,


Output will be as follows,


After making the VM little bit busy the output is as follows,


We can measure the resource usage of the VM’s or particular VM by using PowerShell as well. to see the resource usage of the “Test-VM1” we can use the PS command as well,


if you want to see the resource usage on individual components (Eg: memory, VHD, CPU) you can do that with PowerShell as well. Below picture demonstrate some of these commands and the output results.


Now if you want to disable the resource metering for the “Test-VM1” all you have to do is type
Disable-VMResourceMetering –Vmname Test-VM1

PowerShell in windows has been become very strong and Microsoft always encourage to use them. In Datacenter and Hosting environment you prefer to carry our many task automated as much as possible or with minimum time. PowerShell is the answer for that. In case you have not updated PowerShell Help section you can do that by typing “update-help” from PowerShell itself. In case if you want to see an example of hoe to type for a particular command you can type “Eg: Get-help get-vm –examples” when you get to know more into PowerShell you’ll enjoy spending less time with GUI Smile

Benefits of Hyper-V Network Virtualization

Windows Server 2012 has been RTM for sometimes now. Most of us are well aware about the latest “Cloud Ready OS” virtualization capability and how in certain features it even surpass the competitor hyper-visor vendor solutions. In case if you’re not aware about the latest HYPER-V improvements you can refer here.

Today with this post I’ll take special attention on HYPER-V network virtualization. This is an area where HYPER-V team has carried out major changes and improvements. They have manage to provide solution to customers, hosting providers to minimize the gap of workload (VM’s) communication and movement between Private and Public clouds. With this brining Public cloud to your network has been greatly simplified. Let’s look at these features benefits from wearing different shoes Smile

Using Hyper-V Network Virtualization across your VM infrastructure provides the following benefits for the workload owners:
* You can perform seamless migration to cloud hosting for VMs, and VMs do not need reconfiguration before migrating to the cloud.
* You can move many VMs and their associated network topology to the cloud. All addressing information and subnet membership can be preserved.
* You can preserve existing IP dependent policies, and access controls do not require reconfiguration.
* You can reuse IP addresses for test networks or systems and simplify moving VMs between test and production networks.

Now let’s move to Enterprise  level and see the benefits. Hyper-V Network Virtualization provides the following benefits:
* You can consolidate datacenters and still achieve full performance requirements; there is no further need to overprovision hardware.
* You can make use of cloud hosting for some VMs while other VMs reside on-premises and still communicate. This combines the public and private cloud into a hybrid cloud.
* VMs can be moved to another environment, such as a private or public cloud, without reconfiguration. This helps in acquisition and server consolidation scenarios, in addition to organizations moving VMs to hosting environments.

For hosting organizations, Hyper-V Network Virtualization provides the following benefits:
* You can offer “bring your own IP addresses¡¨ for VM hosting, enabling customers to move to the public cloud more easily. (This is a cool feature offered under HYPER-V replica)
* Customers can move entire subnets to the public cloud and still retain the original network topology.
* Larger datacenters can scale without VLAN limitations.

Network virtualization will be a big deal in the coming hyper visor technologies. All these SDN (software Define Networking) interest is a hint for that. Now how Microsoft HYPER-V provide network virtualization while giving the customer to keep their own IP in the hosting providers datacenter is very much interesting. Hyper-V Network Virtualization can use two different mechanisms to virtualize IP addresses,

* Network Virtualization Generic Routing Encapsulation (NVGRE).
* IP address rewriting.

I found this these two blog posts are have explain the technology very much detail way.

What is Hyper-V Network Virtualization?

HYPER-V network virtualization