Results for category "Hyper-V"

Magic Quadrant for x86 Server Virtualization Infrastructure – 2015

Gartner recently released the Magic Quadrant for x86 Server Virtualization Infrastructure  for the year 2015. I am always keen to see how Hyper-V is positioned on each reports and happy to see that Hyper-V is going strong as expected and still in leaders quadrant chasing VM Ware. Hope to see VM Ware chasing Hyper-V in upcoming year.

Magic Quadrant for x86 Server Virtualization Infrastructure

Magic Quadrant for x86 Server Virtualization Infrastructure

 

 

From the report

Microsoft

Microsoft’s Windows Server 2012 R2 was a major release, delivered in October 2013, and during the last year and a half, that release has become mainstream. Microsoft has effectively closed most of the functionality gap with VMware in terms of the x86 server virtualization infrastructure. Differences continue to be price (favoring Microsoft, although customers report that VMware has slightly better hardware density), ease of management (Microsoft’s multiple management tools make operations more complex, and the parent OS architecture tends to drive more planned downtime), and features (Microsoft’s Dynamic Optimization is impractical for most organizations, and VMware’s broader OS support is often critical to enterprises).

Microsoft’s efforts in enabling Azure-like capability have been attracting enterprises interested in leveraging Azure and managing both on-premises Hyper-V and Azure services. There is a growing interest in using Hyper-V for Microsoft-based development teams, especially due to its Azure affinity.

Microsoft can now meet the needs of most enterprises with respect to server virtualization. Its challenge is neither feature nor functions, but competing in a market with an entrenched competitor, VMware. Microsoft is now winning a good percentage of enterprises that are not yet heavily virtualized — especially those that are mostly Windows-based (while Linux support is improved, especially in Windows Server 2012 R2, there are few customers using Hyper-V for Linux). However, few enterprises that are heavily virtualized with an alternative technology are choosing to go through the effort to switch. A growing number of large enterprises are finding niches in which to place Microsoft — for example, in stores, branch offices or separate data centers. This strategy of “second sourcing” will enable these enterprises to evaluate Hyper-V for further deployments and perhaps leverage the competition in deals with VMware. While Microsoft’s technology is capable, winning the larger and more mission-critical deployments will be an uphill battle and will require more proof points. Hyper-V will likely be more successful in development teams interested in Azure, but requiring on-premises deployments. As Microsoft further improves its support for Azure affinity, and adds support for Windows containers in a future release, its success with development teams will continue to grow.

Strengths
  • There is a large installed base of Windows servers and a large number of Windows-only enterprises.
  • Microsoft’s virtualization products are offered at a low price.
  • Hyper-V and System Center have a growing interoperability and integration with Azure.
Cautions
  • Microsoft will find it difficult to convert the entrenched VMware installed base, especially in large enterprises.
  • While improving, Microsoft’s management tools have some ease-of-use weaknesses.
  • Microsoft faces growing competition with open-source-based solutions, especially in the service provider market.

You can get the full report here.

 

Powershell one liners for Hyper-V

Few Powershell based OneLiners which I use frequently !

 

Identify the best node for placement with respect to memory utilization.

(Get-ClusterNode -cluster CLUSTERNAME |Select Name, @{L="VMCount";E={(Get-VM -ComputerName $_.name).count}},
@{L="AvailableMemory(GB)"; E={(Get-VMHOST $_.Name).MemoryCapacity/1GB-(Get-VM -ComputerName $_.name |Measure-Object MemoryAssigned -Sum).sum/1GB}}|Sort "AvailableMemory(GB)" -Descending)

 

 

PowerShell One Liner - MemoryUsage

PowerShell One Liner – MemoryUsage

 

CSV Usage Statistics

 

Get-ClusterSharedVolume -Cluster CLUSTERNAME| select -Expand SharedVolumeInfo |select FriendlyVolumeName, @{n="Capacity(GB)";e={$_.Partition.Size/1GB}}, @{n="FreeSpace(GB)";e={($_.Partition.Size -$_.Partition.UsedSpace)/1GB}} |Sort-Object "FreeSpace(GB)" |sort "FreeSpace(GB)" -Descending

 

 

CSV Stat

List all VMs in a Hyper-V Cluster

 

Get-ClusterNode -Cluster CLUSTERNAME |foreach {Get-VM -ComputerName $_.Name}

 

 

List all VMs in a cluster with Integration Service version

Get-ClusterNode -Cluster CLUSTERNAME |Foreach {Get-VM -ComputerName $_.name |select name, IntegrationServices
Version}

 

 

List all VMs in a cluster which got a SnapShot/CheckPoint

 

Get-ClusterNode -Cluster CLUSTERNAME |Foreach {Get-VM -ComputerName $_.name|Where {$_.ParentSnapshotId -ne $Null}}

 

List all VMs with DVD/CD information

Get-ClusterNode -Cluster CLUSTERNAME |Foreach {Get-VM -ComputerName $_.name |Get-VMDvdDrive}

 

Mounted DVD Information

Mounted DVD Information

 

List all Hyper-V related errors for the last 24 hours

Get-ClusterNode -Cluster CLUSTERNAME |Foreach {Get-WinEvent Microsoft-Windows-hyper-V-* -ComputerName $_.name|where {$_.TimeCreated -gt (Get-Date).AddDays(-1) -AND ($_.LevelDisplayName -eq "Error" -OR $_.LevelDisplayName -eq "Critical")}|Select Machinename, TimeCreated, LevelDisplayName, MEssage |FL}

 

 

More to come !

 

Cheers.

 

Microsoft Virtual Machine Converter 2.0 Released

Servers

Microsoft Virtual Machine Converter 2.0 released

MVMC is a great tool which is required if have a mixed Hypervisor environment. The previous version, MVMC v1 was released in 2012. However, v1 dont have support for Windows 8 and Windows 2012 R2.

Now we got V2 with lot many new features including Powershell support.

MVMC 2.0 release of MVMC includes the following new features:

  • Converts virtual disks that are attached to a VMware virtual machine to virtual hard disks (VHDs) that can be uploaded to Windows Azure.
  • Provides native Windows PowerShell capability that enables scripting and integration into IT automation workflows.

Note   The command-line interface (CLI) in MVMC 1.0 has been replaced by Windows PowerShell in MVMC 2.0.

  • Supports conversion and provisioning of Linux-based guest operating systems from VMware hosts to Hyper-V hosts.
  • Supports conversion of offline virtual machines.
  • Supports the new virtual hard disk format (VHDX) when converting and provisioning in Hyper-V in Windows Server® 2012 R2 and Windows Server 2012.
  • Supports conversion of virtual machines from VMware vSphere 5.5, VMware vSphere 5.1, and VMware vSphere 4.1 hosts Hyper-V virtual machines.
  • Supports Windows Server® 2012 R2, Windows Server® 2012, and Windows® 8 as guest operating systems that you can select for conversion.

 

Standard MVMC Features

In addition to the new features previously identified, MVMC provides the following functionality:

  • Converts and deploys virtual machines from VMware hosts to Hyper-V hosts on any of the following operating systems:
  • Windows Server® 2012 R2
  • Windows Server® 2012
  • Windows Server 2008 R2 SP1
  • Converts VMware virtual machines, virtual disks, and configurations for memory, virtual processor, and other virtual computing resources from the source to Hyper-V.
  • Adds virtual network interface cards (NICs) to the converted virtual machine on Hyper-V.
  • Supports conversion of virtual machines from VMware vSphere 5.5, VMware vSphere 5.0, and VMware vSphere 4.1 hosts to Hyper-V.
  • Has a wizard-driven GUI, which simplifies performing virtual machine conversions.
  • Uninstalls VMware Tools before online conversion (online only) to provide a clean way to migrate VMware-based virtual machines to Hyper-V.

Important   MVMC takes a snapshot of the virtual machine that you are converting before you uninstall VMware Tools, and then shuts down the source machine to preserve state during conversion. The virtual machine is restored to its previous state after the source disks that are attached to the virtual machine are successfully copied to the machine where the conversion process is run. At that point, the source machine in VMware can be turned on, if required.

Important   MVMC does not uninstall VMware Tools in an offline conversion. Instead, it disables VMware services, drivers, and programs only for Windows Server guest operating systems. For file conversions with Linux guest operating systems, VMware Tools are not disabled or uninstalled. We highly recommend that you manually uninstall VMware Tools when you convert an offline virtual machine.

  • Supports Windows Server and Linux guest operating system conversion. For more details, see the section “Supported Configurations for Virtual Machine Conversion” in this guide.
  • Includes Windows PowerShell capability for offline conversions of VMware-based virtual hard disks (VMDK) to a Hyper-V–based virtual hard disk file format (.vhd file).

Note   The offline disk conversion does not include driver fixes.

Supported Configurations for Virtual Machine Conversion

The following table shows all supported configurations for virtual machine conversion.

VMware sources: VMware vSphere 5.5
VMware vSphere 5.1
VMware vSphere 4.1
VMware vCenter Server 5.5
VMware vCenter Server 5.1
VMware vCenter Server 4.1
VMware ESXi 5.5
VMware ESXi 5.1
VMware ESXi/ESX 4.1
Destination host servers:

Note   Hyper-V must be enabled.

Windows Server 2012 R2 Standard
Windows Server 2012 R2 Enterprise
Windows Server 2012 R2 Datacenter
Windows Server 2012 Standard
Windows Server 2012 Enterprise
Windows Server 2012 Datacenter
Windows Server 2008 R2 Standard with Service Pack 1 (SP1)
Windows Server 2008 R2 Enterprise with Service Pack 1 (SP1)
Windows Server 2008 R2 Datacenter with Service Pack 1 (SP1)
Operating systems that are supported for which MVMC can be installed: Windows Server 2012 R2 Standard
Windows Server 2012 R2 Enterprise
Windows Server 2012 R2 Datacenter
Windows Server 2012 Standard
Windows Server 2012 Enterprise
Windows Server 2012 Datacenter
Windows Server 2008 R2 Standard with Service Pack 1 (SP1)
Windows Server 2008 R2 Enterprise with Service Pack 1 (SP1)
Windows Server 2008 R2 Datacenter with Service Pack 1 (SP1)
Guest operating systems that are supported for conversion to Hyper-V: Windows Server 2012 R2 Standard x64
Windows Server 2012 R2 Datacenter x64
Windows Server 2012 Standard x64
Windows Server 2012 Datacenter x64
Windows Server 2008 R2 Standard x64
Windows Server 2008 R2 Enterprise x64
Windows Server 2008 R2 Datacenter x64
Windows Web Server 2008 R2 x64
Windows Server 2008 Standard
Windows Server 2008 Standard x64
Windows Server 2008 Enterprise
Windows Server 2008 Enterprise x64
Windows Server 2008 Datacenter
Windows Server 2008 Datacenter x64
Windows 8 Enterprise
Windows 8 Enterprise x64
Windows 8 Pro
Windows 8 Pro x64
Windows 7 Enterprise
Windows 7 Enterprise x64
Windows 7 Professional
Windows 7 Professional x64
Windows 7 Ultimate
Windows 7 Ultimate x64
Windows VistaEnterprise x64
Windows Vista Enterprise
Red Hat® Enterprise Linux® 6 (x86/x64)
Red Hat Enterprise Linux 5 (x86/x64)
Ubuntu 12.04 (x86/x64)
Ubuntu 10.04 (x86/x64)
SUSE® Linux Enterprise Server 11 (x86/x64)
CentOS 6 (x86/x64)
CentOS 5 (x86/x64)
Debian GNU/Linux 7 (x86/x64)
Oracle Linux 6 (x86/x64)
Oracle Linux 5 (x86/x64)

 

I am planning to do one more followup post on this with some demos.

You can download MVMC and the help files here.

http://www.microsoft.com/en-us/download/details.aspx?id=42497

Cheers

Shaba

 

Oracle Enterprise Linux on Hyper-V

Its a while Microsoft and Oracle made a joint announcement on the support for Oracle Enterprise Linux on Hyper-V.

http://insidevirtualization.com/hyperv/oracle-enterprise-linux-on-hyperv/

Though OEL 6.3 and OEL 6.4 did supported Hyper-V, the latest Oracle Enterprise Linux – OEL 6.5 works on Hyper-V with all major features.

OEL Support

You can refer the full information on this Technet blog.

 

http://technet.microsoft.com/en-us/library/dn609828.aspx

 

Cheers !

Shaba

 

 

Resizing VHDX – Online

HyperV now supports online resizing of VHDX. A VHDX disk which is used by a VM can be resized and without restarting the VM, This is really an important feature which will allow flexibility on expending or shrinking VHDX on the fly as per the requirement.

Prerequisites

VHDX – the ability to expand and shrink virtual hard disks is exclusive to virtual hard disks that are using the .vhdx file format. Online resizing is supported for VHDX disk types, including fixed, differencing, and dynamic disks. Virtual hard disks that use the .vhd file format are not supported for resizing operations.

SCSI controller – the ability to expand or shrink the capacity of a virtual hard disk is exclusive to .vhdx files that are attached to a SCSI controller. VHDX files that are attached to an IDE controller are not supported.

Irrespective of the Generations – Gen1 or Gen2, Online Resizing will work fine if the prerequisites are met.

Lets try this on a Gen1 VM with a SCSI Disk.

G1 VM - BeforeResize

 

The DISK1 in the above screen shot is a SCISI Disk


 

Get-VM VMName |Get-VMHardDiskDrive -ControllerType SCSI |Resize-VHD -SizeBytes 500GB


 

Resize-VHD

Resize-VHD

 

Now the VHDX is expanded. As the GUST OS on this VM is Windows 2008 R2, To get this change reflected on the VM, From DISK Management , Initiate a RESCAN. With Windows Server 2012, This change will get reflected immediately without a rescan.

Resize-VHD

After Resize – 500 GB

AS

If its a GEN2 VM, Its more easy as the default DISK which is getting created is a SCSI Disk. So even a System Drive can be expanded.

 

Resize-VHD

Gen2 VM – Before VHD Resize

 


 

Get-VM VMName |Get-VMHardDiskDrive -ControllerType SCSI |Resize-VHD -SizeBytes 1TB


 

Resize-VHD

Resize-VHD G2 VM

 

If its a Windows Server 2012 VM, the change will get reflected immediately and don’t need a rescan.

 

Resize-VHD

G2 VM – After Resize

 

The current C drive which is 100 GB can now expanded  to start using the added space.

From Disk Management -> Right Click on the volume which needs to be extended

Select Extend Volume

Extend Volume

Extend Volume

 

The maximum available space will be set by default , how ever this could be reduced as per the requirement.

DISK Management - Extend-Volume -  Configure Size

DISK Management - Extend-Volume -  Summary

DISK Management – Extend-Volume – Summary

And now the C Drive is 1 TB.

DISK Management - After extending volume

DISK Management – After extending volume

 

Explorer View

Cheers !

 

Hyper-V Dashboard – 500+ downloads

Its a special day for me. My Hyper-V Dashboard crossed 500 downloads in three months. Thanks for all those who have downloaded, commented, tweeted and provided me feedback over email.

 

Cheers !

 

HyperV Dashboard

HyperV Dashboard

 

 

PageStat

 

Hyper-V Clusters crashing… Due to network disconnects

I faced a strange issue with Hyper-V servers. My Windows Server 2012 cluster started crashing randomly. Last time, I had a similar experience but that was having a pattern. Every Friday between 1.3o PM and 2 PM, servers will crash. After digging, We realized that the Antivirus client (SEP) was having a scheduled scan running. However, after few minutes of scanning, the system will crash with BSOD. However, this issue was not happening to all nodes and the cluster was mostly up.

In this case, majority of the servers are crashing in a sequence. Started analyzing the logs and memory dumps.

BSOD - Probably caused by : VMMDHCPSvr.sys ( VMMDHCPSvr+80e6 )

Memory Dump  – Probably caused by : VMMDHCPSvr.sys ( VMMDHCPSvr+80e6 )

 

 

The second dump like this..

 

Memory Dump - Probably caused by : ntkrnlmp.exe ( nt!WheaReportHwError+249 )

Memory Dump – Probably caused by : ntkrnlmp.exe ( nt!WheaReportHwError+249 )

 

The event logs was having events which says that Network is getting partitioned. This opened a clue and started looking at the connectivity. Though servers are connected to the same switch, the servers are loosing pings with in the same VLAN frequently. This issue was specific to the communication with in the subnet and external connectivity was mostly fine.

 

We got our network team involved and after some analysis, we identified one Windows 2008 R2 server which was flooding the network. Disconnected this server and the issue is sorted out.

Lesson Learned – The issues in the echo system can also lead to failures. No where related with Hyper-V servers or the VMs, but got badly impacted.

 

 

PowerShell Script for Hyper-V Dashboard

Its always good to have a daily report as an email. I would always prefer this as we can have a quick view through Blackberry or Active Sync Phones to get an overview of the servers. In Hyper-V, I had challenges to get this done using Powershell. In fact, I never tired and now I felt its becoming important as the Hyper-V Infrastructure is growing gradually.

This script will provide the basic information like VM Name, Memory Allocation, Processor Allocation, Disk Allocation, Disk Usage etc.

Hyper-V Dashboard

Hyper-V Dashboard

 

Along with this, You can get a brief on the CSV Utlilzation – like Storage Allocated on each volume, Free space on each volume, Total Size of VHDX Allocated for each volume, Actual Usage of VHDX on each Volume and if Over Provisioned, how much Over Provisioned.

 

CSV Report on Over Provisioning

CSV Report

You can download the script directly from Technet Gallery.

For feedback/issues – you can reach me on shabarinath@insidevirtualization.com .

Enjoy !

 

 

RSS is limited to 4 queues

After I fixed the Processor overlapping issue using Set-NetAdapterRss, I noticed a new event.

HP FlexFabric 10Gb 2-port 554FLB Adapter #5 : RSS is limited to 4 queues. Enable Advanced Mode in the PXE BIOS to use up to 16 queues. This may require a firmware update.

 

Event 49

Event 49

To Fix this, We need to enabled Advanced Mode in PXE BIOS as mentioned in the event.

So we need to reboot the server. On the POST Screen, You will get an option eo enable PXE Bios. On this HP Blade, its CTRL + P.

PRESS CTRL P

Ctrl + P will open up PXE Select Utility. Advanced mode support will be disabled by default. You need to enable it.

ADVANCED MODE SUPPORT

The Personality should be selected as NIC.

Personality Selection

Save the setting first and then select continue.

From the next screen, You can just exist. And after the reboot, no more events are generated.

 

 

The processor sets overlap when LBFO is configured with sum-queue mode.

This event started just after I created the HyperV virtual switch.

 

The processor sets overlap when LBFO is configured with sum-queue mode.

The processor sets overlap when LBFO is configured with sum-queue mode.

 

As I couldn’t find much information on this event  on Blogs/Forums, I opened up a case with Microsoft for a quicker resolution. And the resolution which I got is to configure the HyperV Data Interfaces to use exclusive set of processors with respect to RSS configuration.

Set-NetAdapterRss -name vm-nic-1 -BaseProcessorNumber 4 -MaxProcessorNumber 7

Set-NetAdapterRss -name vm-nic-2 -BaseProcessorNumber 8 -MaxProcessorNumber 12

This event stopped after the next reboot, However, I got a new event – Event ID 49 – HP FlexFabric 10Gb 2-port 554FLB Adapter #5 : RSS is limited to 4 queues. Enable Advanced Mode in the PXE BIOS to use up to 16 queues. This may require a firmware update. I will write about this in my next post.

To my understanding, You can allocate a subset of logical processors to each HyperV Data interface. I am trying to understand more details on this. Based on a recent Technet Blog, VMQ will get enabled by default while we create a vSwitch. Once VMQ is enabled, RSS will be disabled on those interfaces. I will update this post once I get more details. If you can get this clarified, Please comment 😀 .

 

Update – Microsoft has published a KB article on this recently. Have a look on that too.