Mastering Windows Server 2016 Hyper-V

(Romina) #1

Figure 4.15 Using a Scale-Out File Server and a clustered storage space


SMB for Hyper-V Storage


Using SMB 3 with Hyper-V is easy. The Hyper-V host’s computer account and the
cluster account (if hosts are in a cluster) requires full control at the share and NTFS
filesystem level. Additionally, the administrator creating or moving the virtual
machines should have full control at the share and NTFS level. The easiest way to set
the correct permissions is using PowerShell, which is simple in Windows Server 2012
R2. This could also be done through Failover Cluster Manager on shares created on
scale-out file servers. The following command creates a folder, and then gives the
computer accounts for Hyper-V hosts HV01 and HV02 full control, and the HVCLUS
account for the failover cluster they are in full control as well. Note the $ after the
computer account names, which must be typed. Additionally, the administrator is
given full control.


MD G:\VMStore
New-SmbShare -Name VMStore -Path G:\VMStore -FullAccess domain\administrator,
domain\HV01$, domain\HV02$, domain\HVCLUS$
Set-SmbPathAcl -Name VMStore


Note that in Windows Server 2012, the Set-SmbPathAcl cmdlet was not available and
the NTFS permissions had to be set manually, as shown in the following command.
Note this is not required in Windows Server 2012 R2 because the Set-SmbPathAcl
cmdlet copied the share permissions to the NTFS filesystem.


ICACLS G:\VMStore /Inheritance:R

Free download pdf