This is an old revision of the document!


RPN-SAN : VMWare ESXi

This documentation covers the versions 5.0/5.1/5.5/6.0 of VMWare ESXi

Configuration of VMWare ESXi for the usage of the RPN

Activation of SSH

  • Start the vSphere client; (1) click the Configuration tab, (2) click Security Profile in the Software panel.

  • In the Services section, click Properties.

  • ( 1 ) Select SSH; (2 ) click options; (3) Select “Start and stop manually”; (4) Manually launch the service

Configuration of ESXi to access the RPN network

In the ESXi interface
  • Go to “Configuration” > “Network configuration (1), then click on “Properties”

  • Create a new VMKernel named “RPN” linked to the RPN interface

  • To continue select “Assign IP automatically” and validate the windows
Network will go down because the MAC address is not correct.
Set the MTU 9000
Configuration -> Network settings -> Properties... (of vSwitch1)
vSwitch -> Modify -> MTU = 9000 -> OK
RPN -> Modify -> MTU = 9000 -> OK

Attention: If the MTUs are not matching, there is a risk that it will not work

In the console

Edit the configuration file of ESXi

vi /etc/vmware/esx.conf

Find the number of the child in the RPN portgroup (in this example: 0001)

/net/vmkernelnic/child[0001]/portgroup = "RPN"

Find the MAC of the network card connected to the RPN (in this example: XX:YY:ZZ:AA:BB:CC)

/net/pnic/child[0001]/mac = "XX:YY:ZZ:AA:BB:CC”

Replace the MAC of the VMKernel RPN (see the number of the child) with the MAC of the network card connected to the RPN

/net/vmkernelnic/child[0001]/mac = "XX:YY:ZZ:AA:BB:CC”

Reboot the ESXi to take the changes into effect

Find your RPN gateway

Add to route the subnet of the RPN the IP of its gateway

esxcfg-route -a 10.90.0.0/15 [PUT HERE YOUR RPN GATEWAY]

Attention : You need to add the route to /etc/rc.local to keep it after a reboot
For the version ESXi 5.1 the file is located at /etc/rc.local.d/local.sh

Ping the RPN-SAN

# ping san-1.rpn.online.net
PING 10.90.254.2 (10.90.254.2): 56 data bytes
64 bytes from 10.90.254.2: icmp_seq=0 ttl=61 time=0.241 ms
64 bytes from 10.90.254.2: icmp_seq=1 ttl=61 time=0.241 ms

The ping has to work, if not there is a problem.

In the ESXi interface

Click on

Configuration -> Storage adapters -> Add...

Select

“Software iSCSI Adapter” -> OK

Then click on

Software Adapter (normally named vmhba32)

Click then, in the panel at the bottom, at

Properties 

Go to the tab Dynamic discovery, then click on

Add...

Enter the address of the RPN server in the textbox “iSCSI Server” (the address is available in your management console)

Click on

OK -> Fermer

Accept the proposed rescanning.

The IET disk will appear in the panel at the bottom Now go to

Configuration -> Storage -> Add storage... -> Disk/LUN -> Etc...

to use the added storage