IT tutorials
 
Technology
 

Windows Server 2012 : Managing virtual machines (part 5) - Monitoring virtual machines

4/23/2014 9:30:07 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

5. Monitoring virtual machines

Although the best tools for monitoring virtual machines running on Hyper-V hosts are those of the System Center family of products, you can monitor certain aspects of virtual machines using Hyper-V Manager or Windows PowerShell. For example, Figure 6 shows the bottom center pane in Hyper-V Manager when a virtual machine named SRV-B is selected in the upper center Virtual Machines pane. By selecting the Memory tab on this pane, you can view the current values for assigned memory and memory demand for virtual machines on which Dynamic Memory has been enabled.

Viewing Dynamic Memory in real time for a virtual machine.
Figure 6. Viewing Dynamic Memory in real time for a virtual machine.

You can also monitor virtual machines by using resource metering, a new feature of Hyper-V in Windows Server 2012 that allows you to use PowerShell to collect and report on historical resource usage of the following metrics:

  • Average CPU usage by a virtual machine

  • Average physical memory usage by a virtual machine

  • Minimum physical memory usage by a virtual machine

  • Maximum physical memory usage by a virtual machine

  • Maximum amount of disk space allocated to a virtual machine

  • Total incoming network traffic for a virtual network adapter

  • Total outgoing network traffic for a virtual network adapter

In addition, these metrics can be collected in a consistent fashion even when the virtual machines are moved between hosts using live migration or when their storage is moved using storage migration. Organizations that use Hyper-V to build cloud-computing solutions can also use resource metering for such purposes as tracking how much resources business units or customers are consuming in order to bill them for their use of these resources.

For example, you can use the Enable-VMResourceMetering cmdlet to enable resource metering on a virtual machine as follows:

PS C:\> Enable-VMResourceMetering -VMName SRV-B

Use the Get-VM cmdlet to verify the result:

PS C:\> Get-VM SRV-B | Format-List ResourceMeteringEnabled
ResourceMeteringEnabled : True

You can now use the Measure-VM cmdlet to display real-time resource usage by the virtual machine:

PS C:\> Measure-VM -Name SRV-B

VMName AvgCPU(MHz) AvgRAM(M) MaxRAM(M) MinRAM(M) TotalDisk(M) NetworkIn... NetworkOut...
------ ----------- --------- --------- --------- ------------ ------------ -------------
SRV-B 176 512 512 512 130469 2 1

For more information on using these cmdlets, use the Get-Help cmdlet.

 
Others
 
- Windows Server 2012 : Managing virtual machines (part 4) - Managing snapshots
- Windows Server 2012 : Managing virtual machines (part 3) - Optimizing virtual disks
- Windows Server 2012 : Managing virtual machines (part 2) - Optimizing network performance
- Windows Server 2012 : Managing virtual machines (part 1) - Optimizing workload consolidation
- Sharepoint 2013 : Configuring User Profile Synchronization (part 4) - Writing Back to Active Directory
- Sharepoint 2013 : Configuring User Profile Synchronization (part 3) - Importing User Profiles from Active Directory
- Sharepoint 2013 : Configuring User Profile Synchronization (part 2) - Creating the User Profile Service Application, Starting the Services
- Sharepoint 2013 : Configuring User Profile Synchronization (part 1) - Establishing Managed Accounts
- Sharepoint 2013 : A User’s Profile, The User Profile Infrastructure
- Microsoft Exchange Server 2013 : Email address policies (part 4) - Creating email address policies with custom filters
 
 
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