Connect a network drive to a dedicated server with VMware ESXi hypervisor
Network disks are available for connection to dedicated servers in the MSK-1 pool.You can connect a network disk to dedicated servers of a ready-made configuration with a tag You can also connect network disks to dedicated servers of an arbitrary configuration with an additional 2 × 10 GE NIC + 10 Gbps Network Disk SAN connection.
You can connect the network disk to one or more servers.
- Create a SAN.
- Connect the network drive to the server.
- Connect the network disk to the server in the server OS.
- Mount the VMFS file system.
1. Create a SAN network
- In the Control Panel, on the top menu, click Products and select Dedicated Servers.
- Go to Network Disks and Storage → Network Disks tab.
- Open the disk page → Server Connection tab.
- Click the Create SAN link.
- Click Add SAN.
- Select an availability zone.
- Enter a subnet or leave the subnet that is generated by default. The subnet must belong to the private address range
10.0.0.0/8
,172.16.0.0/12
or192.168.0.0/16
and must not already be in use in your infrastructure. - Click Create SAN.
2. Connect the network drive to the server
- In the Control Panel, on the top menu, click Products and select Dedicated Servers.
- Go to Network Disks and Storage → Network Disks tab.
- Open the disk page → Server Connection tab.
- In the Server field, click Select.
- Select the server to which the network drive will be connected.
3. Connect the network disk to the server in the server OS
-
Print the list of network interfaces:
esxcli network nic list
A list of network interfaces will appear in the response. For example:
Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description
-------- ------------ -------- ------------ ----------- ----- ------ ----------------- ---- -----------
vmnic0 0000:01:00.0 nmlx4_en Up Up 10000 Full 1x:11:xx:0x:00:x0 1500 Mellanox Technologies ConnectX-3 Pro EN NIC; 10GigE; dual-port SFP+ (MCX312B-XCC)
vmnic1 0000:02:00.0 igbn Up Up 1000 Full aa:1a:0a:11:1a:a0 1500 Intel Corporation I350 Gigabit Network Connection
vmnic128 0000:01:00.0 nmlx4_en Up Up 10000 Full 1c:00:cc:0c:00:c0 1500 Mellanox Technologies ConnectX-3 Pro EN NIC; 10GigE; dual-port SFP+ (MCX312B-XCC)
vmnic2 0000:02:00.1 igbn Up Up 1000 Full cc:1c:6c:01:6c:c1 1500 Intel Corporation I350 Gigabit Network ConnectionHere in the
Name
field are the names of the network interfaces. -
Output the configuration information of the network interfaces:
esxcli network vswitch standard list
The response will show the current configuration of the network interfaces. For example:
vSwitch0
Name: vSwitch0
Class: cswitch
Num Ports: 2560
Used Ports: 4
Configured Ports: 128
MTU: 1500
CDP Status: listen
Beacon Enabled: false
Beacon Interval: 1
Beacon Threshold: 3
Beacon Required By:
Uplinks: vmnic1
Portgroups: VM Network, Management Network -
Create two virtual switches for the SAN:
esxcli network vswitch standard add --vswitch-name=<switch_name_1>
esxcli network vswitch standard add --vswitch-name=<switch_name_2>Specify:
<switch_name_1>
— name of the first virtual switch;<switch_name_2>
— name of the second virtual switch.
-
Assign network interfaces to virtual switches:
esxcli network vswitch standard uplink add --vswitch-name=<switch_name_1> --uplink-name=<eth_name_1>
esxcli network vswitch standard uplink add --vswitch-name=<switch_name_2> --uplink-name=<eth_name_2>Specify:
<switch_name_1>
— name of the first virtual switch you created in step 4;<eth_name_1>
— the name of the first network interface on the first port of the network card that you got in step 2;<switch_name_2>
— name of the second virtual switch that you created in step 4;<eth_name_2>
— the name of the second network interface on the second port of the network card that you obtained in step 2.
-
Make sure that the network interfaces are configured correctly:
esxcli network vswitch standard list
The response will show the configuration of the network interfaces you configured in steps 4 and 5.
-
Create portgroups on the virtual switches:
esxcli network vswitch standard portgroup add --portgroup-name=<portgroup_name_1> --vswitch-name=<switch_name_1>
esxcli network vswitch standard portgroup add --portgroup-name=<portgroup_name_2> --vswitch-name=<switch_name_2>Specify:
<portgroup_name_1>
— name of the first portgroup;<switch_name_1>
— name of the first virtual switch you created in step 4;<portgroup_name_2>
— name of the second portgroup;<switch_name_2>
— name of the second virtual switch that you created in step 4.
-
Verify that portgroups are correctly created on the virtual switches:
esxcli network vswitch standard portgroup list
The response will list the portgroups you created in step 7.
-
Create virtual interfaces:
esxcli network ip interface add --interface-name=<vmkernel_name_1> --portgroup-name=<portgroup_name_1>
esxcli network ip interface add --interface-name=<vmkernel_name_2> --portgroup-name=<portgroup_name_2>Specify:
<vmkernel_name_1>
— name of the first virtual interface;<portgroup_name_1>