To create a VM, run these PowerShell commands as an administrator:
$VHDPath="C:\ClusteredStorage\volume1\HDD\<HDDname>.vhdx"
New-VHD -SizeBytes <size> –Path $VHDPath –Fixed
$VMPath="C:\ClusteredStorage\volume1\VMs\<VMname>"
New-VM -Name SP -Path $VMPath -MemoryStartupBytes <Memory> -
BootDevice CD -SwitchName
<switchname> -VHDPath $VHDPath
Set-VMProcessor -VMName DB -Count <vcpu count>
Add-VMNetworkAdapter -VMName <VMName> -Name <Virtual Network
adapter>
Set-VMNetworkAdapterVlan -VMName <VMName>
-VMNetworkAdapterName
<Virtual Network adapter> - Access -VlanId <VLANID>
Add-VMFibreChannelHba –VMName <VMName> –SanName <vSAN switch
name1>
Add-VMFibreChannelHba –VMName <VMname> –SanName <vSAN switch name2>