Skip to content

How to install LSI MegaRAID Storage Manager (MSM) on VMware ESXi 5.5

This morning I got an email from the datacenter that informed me of a loud alarm coming from one of my servers. I knew right away it was the LSI card sounding off due to a hard drive failure. Since I almost always use RAID 10 in critical arrays, I was more annoyed than concerned. So, off to the datacenter I went, new drive in hand. While diagnosing the issues, I realized there is no out-of-the-box way to be notified of a drive failure within ESXi. As far as I could tell, everything was fine, except for an audible alarm I would have never heard.

The RAID card in this particular server is an LSI 9260-8i, however this guide is the same for all of the 92xx series cards, like the 9265-8i, or 9265-16i. VMware includes drivers for these cards, starting in ESXi 5.1 if I remember correctly. However, there is no health data for drives and no management interface for arrays. After a couple google searches, I quickly found that there is a lot of conflicting information and tons of problems that go along with installing the LSI MegaRAID Manager, MSM, on ESXi. I also ran into some problems. So, I thought I would put together a quick, easy, clear guide to save others the hassle of going through what I went through. So, here we go.

 

How to install MSM on ESXi 5.5

To complete this process, you will have to put your ESXi host into maintenance mode, and you will have to reboot. So make sure your VMs are all shut down before proceeding.

You will need to have the following items:

 

The process is pretty straight forward. In a nutshell, here are the steps we will take:

  1. Enable SSH on ESXi Host.
  2. Copy LSI SMIS Provider to ESXi Host via WinSCP.
  3. Configure Host and Install SMIS Provider.
  4. Install MegaRAID Storage Manager on VM

 

Log into your host using the vSphere client, or the web interface, then go to the configuration tab and select Security Profile.

 

Screen Shot 2015-05-02 at 1.16.29 AM

 

Now, select Services Properties and find SSH.

 

Screen Shot 2015-05-02 at 1.21.02 AM

 

After selecting SSH, click Options and start the SSH service.

 

Screen Shot 2015-05-02 at 1.25.38 AM

 

Now go to Firewall Properties and make sure the SSH Server box is checked. This opens up port 22 on the host’s firewall.

 

Screen Shot 2015-05-02 at 1.28.18 AM

 

Under Services and Firewall, you will see Host Image Profile Acceptance Level. Edit this and change it to Community Supported.

 

Screen Shot 2015-05-02 at 1.32.03 AM

 

Now it’s time to enter Maintenance Mode. Click the Summary tab and at the very bottom you will see Enter Maintenance Mode.

 

Screen Shot 2015-05-02 at 1.44.22 AM

 

Open up WinSCP (or cyberduck or other program of choice) and connect to the ESXi host. In case you don’t know, SCP is a way to transfer files over SSH. Navigate to the /tmp folder on the host and upload the file called vmware-esx-provider-lsiprovider.vib.

 

Screen Shot 2015-05-02 at 1.37.01 AM

 

Go ahead and fire up putty, or open terminal and SSH into your ESXi host. If your’re using terminal, or command line, you would do the following:

 

#  ssh root@1.2.3.4
(change 1.2.3.4 to the IP of your ESXi host)

 

If you’re using putty, its pretty straight forward. Once you have connected to your host via SSH, do the following:

 

#  cd /usr/bin

#  esxcli software vib install -v /tmp/vmware-esx-provider-lsiprovider.vib `--`no-sig-check

 

It will take a minute or two, and eventually it will install. If you get any errors make sure you changed the Host Image Profile Acceptance Level as done earlier, and make sure you included the ‘–‘no-sig-check at the end of the command. Also, make sure you are in Maintenance Mode. Once finished, you can close your SSH window and reboot the server.

Once rebooted, if you open the vSphere client and go to Configuration > Health Status, you should now see a Storage category with your physical drives and arrays listed.

 

Screen Shot 2015-05-02 at 1.48.44 AM

 

On your Windows virtual machine, we need to edit the hosts file. Right click on Notepad and select “Run as Administrator.” Click File > Open, and navigate to your hosts file, which can be found at c:\windows\system32\drivers\etc\. You will need to select “all file types” to be able to see it. Add the IP address for both the hostname and the FQDN of your ESXi host.

 

Screen Shot 2015-05-02 at 1.57.34 AM

 

Now you can install the MegaRAID Storage Manager on your Windows virtual machine. It needs to be on the same local network as your hosts management ip address. After you have installed MSM, open it and click “Configure Host.” Then, select the checkbox that says “Display all the ESXi-CIMOM servers in the network of local server.” Save Settings.

 

Screen Shot 2015-05-02 at 1.51.08 AM

 

Enter the IP address of your ESXi host into the IP Address field in MSM, and click Discover Host. It should eventually show up below in Remote Servers, where you can click Login, and login using your ESXi host credentials.

 

Screen-Shot-2015-05-02-at-2.09.55-AM

 

Once you login, you are good to go. It will take a few seconds, after clicking login, before MSM opens. Don’t be alarmed, the lag is normal.

 

Screen Shot 2015-05-02 at 2.16.39 AM

Troubleshooting

If you are unable to discover you ESXi host in LSI MSM, the most likely culprit is the firewall on either the Windows VM or the ESXi host. Disable any firewall you’re running on your Windows VM, and disable the firewall on the ESXi server by running this command from the SSH prompt:

 

#  esxcli network firewall set --enabled false

 

If you want to turn the firewall back on, just run this command:

 

esxcli network firewall set --enabled true

 

That’s it. Its a fairly painless process, if you have the right information and steps at hand. Comment below if you have issues and I’ll do what I can to help.

 

Subscribe to future posts and updates!