Chuck Timon | Senior Support Escalation Engineer | Microsoft CTS Management and Security Division
One of the more exciting features in Windows Server 2012 is the ability to support Hyper-V virtual machine data files on SMBv3 file shares hosted on a Windows Server 2012 File Server. Many of you, hopefully, have worked with this configuration and are excited about the functionality. I would also be willing to bet that those who have worked with this configuration have done so without System Center 2012 Virtual Machine Manager (VMM) Service Pack 1 as the management platform for the Hyper-V hosts. This post explores the process for implementing this solution using VMM 2012 SP1.
System Center 2012 Virtual Machine Manager Service Pack 1 is Microsoft’s premiere Cloud implementation and management platform. Virtual Machine Manager is a very ‘possessive’ application. It likes to be in control of all aspects of the cloud environment. Most of us think about VMM managing Hyper-V servers, Hyper-V Failover Clusters, ESX Servers, XEN Servers, Virtual Machines, etc but what about storage? Some may not think about VMM managing the storage used by the hosts and managing storage includes monitoring storage space utilization as well as providing storage capacity as needed. There are several types of storage providers that can interface with VMM, including Windows-based File Servers, SMI-S (Storage Management Initiative Specification) managed devices and devices managed by an
SMP (Storage Management Provider)
provider. This article focuses on Windows-based File Servers providing SMBv3 file shares hosted in a Scale-Out File Server solution.
To demonstrate, I configured a 2-Node Windows Server 2012 Failover Cluster and created the Scale-Out File Server Role.
I then configured a share to host virtual machine data files.
Using PowerShell (
), we can see this share listed in the Failover Cluster and scoped in the context of the Client Access Point (CAP) (e.g.
Examining a virtual machine configured to use this share, we can see the virtual hard disk is supported by a SMBv3 share hosted in the Failover Cluster. The virtual machine configuration file, and any snapshot files, are also, by default, stored in the same location.
Up to this point, the Hyper-V server has not yet been added to VMM as a managed host. Once it is, VMM is quick to point out that this configuration is unsupported.
Examining the completed job, an error (
) was registered when the virtual machine refresh job failed.
To remedy the situation, the share must be registered to the Hyper-V host. This can be accomplished if the File Server itself becomes a VMM managed (storage) resource.
When executing the procedures below, use a RunAs account that has administrative access on the file server itself.
In the SCVMM console under
, storage resource information is available.
Before we can see information about File Servers, we first have to configure the appropriate Provider. To do that, select
and then right-click and choose
Add Storage Devices.
, in this scenario, is a
Windows-based File Server.
Since we are using a Scale-Out File Server solution running as a highly available role in a Failover Cluster, we use the Client Access Point (CAP) (client connection point) as the
System Center Virtual Machine Manager gathers information about the storage device and stores it in its data base.
Once SCVMM 2012 has gathered the required information, the administrator can select which storage device(s) will be used. Since there is only one configured, that is selected.
Review and confirm the information and complete the wizard.
The File Server is now displayed as a
Additional shares may be configured in the Scale-Out file Server as needed.
VMM detects new shares, but they will initially show as not being managed.
To bring the shares under control of SCVMM simply right click on an unmanaged share, select
, and then check the box
File share managed by Virtual Machine Manager
With the file server storage managed by VMM, it can now be used to store virtual machine data files. Before deploying virtual machines (after adding additional storage in VMM), update the Hyper-V servers by adding new file share storage. This way a proper placement selection can be made when deploying virtual machines. Additionally, VMM updates the permissions on the share(s) to include the Hyper-V server computer account (e.g.
) and the Hyper-V administrator account. As an example, I deployed virtual machines to a Hyper-V server named
. I have updated the storage information for that server to include all the file shares on the Scale-Out File Server.
With the storage information updated, deploy a virtual machine to the new storage location(s). In the
Create Virtual Machine Wizard
, specify one of the SMBv3 shares mapped to the target Hyper-V host.
After the virtual machine is deployed, the settings for storage reflects the SMBv3 File Share on the Scale-Out File Server.
In VMM, storage consumption on the file server(s) can be tracked.
For Hyper-V SMB troubleshooting information as it relates to System Center Virtual Machine Manager, review this blog post for more information: