Home > Workload Solutions > SQL Server > Guides > Deployment Guide—Ready Bundle for Microsoft SQL Server 2016 > Establishing VM-to-SAN connectivity
The Virtual Fibre Channel feature in Hyper-V makes it possible for a VM to connect directly to a SAN through a virtualized Fibre Channel adapter. Establishing connectivity to the SAN by using a virtual Fibre Channel adapter is a two-step process. Create a VMware vSAN, and then add a virtual Fibre Channel adapter to the VM and connect it to the vSAN.
Create a vSAN:
Add and connect a virtual Fibre Channel adapter:
In Add Hardware, you can view a list of hardware options that you can add to the VM.
You can use the automatically generated default WWNs or manually assign them. Configure both WWN sets to ensure a successful live migration of the VM.
Create a VM, running the 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>