IT tutorials
 
Windows
 

Windows Server 2012 : Hyper-V - Performance and Virtual Network Management - Resource Metering

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/6/2014 1:34:17 AM

Besides creating and managing VMs, system administrators are also responsible for monitoring the performance and health of VMs, just as with physical machines.

Hyper-V delivers not only improvements in monitoring virtual environments, but also new features that are worth getting familiar with.

Resource Metering

Resource metering is a new feature that gives you information on the CPU, memory, storage, and network resources that a VM is consuming. Consider it a Performance Monitor for virtualization.

Besides giving insight into how well or poorly a virtual infrastructure is running, resource metering provides another important purpose: customer billing. As companies increasingly provide services to customers via cloud deployments, they need a way to bill those customers for service usage. With resource metering, a business can create an in-house strategy for billing customers for usage based on metrics provided. Previously, most companies had to rely solely on third-party solutions to bill for cloud services.

Resource metering provides:

  • Average CPU usage, measured in megahertz over a period of time

  • Average physical memory usage, measured in megabytes

  • Minimum memory usage (lowest amount of physical memory)

  • Maximum memory usage (highest amount of physical memory)

  • Maximum amount of disk space allocated to a virtual machine

  • Total incoming network traffic, measured in megabytes, for a virtual network adapter

  • Total outgoing network traffic, measured in megabytes, for a virtual network adapter

To execute resource metering, run the following cmdlet in PowerShell (see Figure 1):

Get-VM -ComputerName <name of Hyper-V host machine>|Enable -VMResourceMetering
Resource metering cmdlet
Figure 1. Resource metering cmdlet

The default time to collect data for performance metrics is an hour. You can change this interval. The following cmdlet sets the data collection time to under a minute:

Set-vmhost –computername <Hyper-V host name> 
-ResourceMeteringSaveInterval 00:01:00

To display all the data collected for VMs, run this command (see Figure 2):

Get-VM –ComputerName <name of Hyper-V host>|Meaure-VM
Displaying the Resource metering data
Figure 2. Displaying the Resource metering data

You can also just get metrics on a specific VM. In the following example, we specify a VM named Server2012VM on a Hyper-V host, DC10:

Get-VM –ComputerName DC10 –Name "Server2012VM"|Measure-VM

Since cloud computing is at the forefront of Server 2012 and Hyper-V R3 marketing, there’s a good chance that organizations will take a close look at the two solutions if they do have billable cloud services. Resource metering is a good way to see usage within a virtualized environment, but Microsoft’s options for exporting the data you get from running these PowerShell commands is rather weak. I would prefer a GUI component that provides rich reporting and data visualization capabilities. Currently, the best way I can determine to extract data when you run resource metering cmdlets is to use the output command to create a CSV (comma-separated value) file.

 
Others
 
- Windows Server 2012 : Hyper-V - Managing Virtual Machines and Virtual Disks (part 3) - Cloning Virtual Domain Controllers, Merging Snapshots
- Windows Server 2012 : Hyper-V - Managing Virtual Machines and Virtual Disks (part 2) - Hyper-V Replica
- Windows Server 2012 : Hyper-V - Managing Virtual Machines and Virtual Disks (part 1) - Live-Migrating Virtual Machines
- Windows Server 2012 : Hyper-V - Creating and Configuring Virtual Machines (part 2) - Creating Virtual Machines
- Windows Server 2012 : Hyper-V - Creating and Configuring Virtual Machines (part 1) - Configuring Virtual Disks
- Windows Server 2012 : Hyper-V - Installing the Hyper-V Role
- Windows 8 : Sharing and Securing with User Accounts - Creating and Using Password Reset Disks, Running Programs as Administrator
- Windows 8 : Sharing and Securing with User Accounts - Using User Accounts (part 2) - Turning UAC on and off
- Windows 8 : Sharing and Securing with User Accounts - Using User Accounts (part 1) - Understanding User Account Control
- Windows 8 : Sharing and Securing with User Accounts - Deleting User Accounts
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us