Go to All Forums

Enable RDMA on hyperv

hello

i am using hyperv 2016 and i want to enable RDMA. plz tell me how i can enable? thanks
Like (0) Reply
Replies (2)

Hi,

Please follow the steps for creating Hyper-V virtual switch with RDMA.

Create a Hyper-V Virtual Switch with an RDMA vNIC.

Use the following PowerShell commands to create a Hyper-V Virtual Switch with an RDMA vNIC

# Create a vmSwitch without SET

New-VMSwitch -Name RDMAswitch -NetAdapterName "SLOT 2" 

# Add host vNICs and make them RDMA capable

Add-VMNetworkAdapter -SwitchName RDMAswitch -Name SMB_1
Enable-NetAdapterRDMA "vEthernet (SMB_1)"

# Verify RDMA capabilities

Get-NetAdapterRdma



Like (0) Reply

2
3
4
5
6
7
8
9
10
11
12
#Create a vSwith
New-VMSwitch-NameRDMACapable-vSwitch-NetAdapterName"NODE-A-S4P1-SW12P05-SMB1"
 
#Now add a host vNIC for the SMB Direct Traffic
Add-VMNetworkAdapter-SwitchNameRDMACapable-vSwitch-NameSMB1-ManagementOS
 
#Enable RDMA on it
Enable-NetAdapterRDMA"vEthernet (SMB1)"
 
#Grab that vNIC on the management OS and set the VLAN - PFC requires tagged VLANs
$NicSMB1=Get-VMNetworkAdapter-NameSMB1-ManagementOS
Set-VMNetworkAdapterVLAN-VMNetworkAdapter$NicSMB1-Access-VlanID 110
 
Regards,
 
Adrian Gates
 
Sr. System Admin - www.Apps4Rent.com
Like (0) Reply

Was this post helpful?