Requirements to Install vSphere Plugin 2.5.1+ from the PureStorage GUI
For instructions on installing and updating the plugin from the Pure GUI see VMware vSphere Plugin Install (Version 3.0 | Version 2.5 or Older).
-
Java 1.8 (for TLS 1.1 or 1.2). If Java 1.8+ is not present DO NOT REQUEST TO UPDATE IT.
-
Network access between Array and vSphere server through TCP ports 443.
-
vCenter administrator privileges and PureStorage system administrator privileges, or an administrator with these privileges is available to do the installation. Administrative username and password for vCenter server.
-
vSphere Web Client.
Requirements to Install and Configure vSphere Plugin Using the PluginServer Method
-
Linux OS or Windows OS (either can be VM’s).
-
Network access to vSphere server port 8080 or 8081.
-
Administrative username and password for vCenter server.
-
Windows OS does not need java 1.8 (the pluginserver has a java run-time included).
-
Linux OS needs java jdk 1.8+ and jre 8+(for TLS 1.1 or 1.2).
-
The pluginserver files in archive.
-
vSphere Web Client
-
PureStorage system administrator privileges to connect to PureStorage array within vSphere.
-
TCP Ports 443 (for vCenter to send API commands to the array).
-
vSphere 5.5, vsphere 6.0 and vSphere 6.5. Note: The space reclamation feature requires vSphere 6.0 or higher and ESXi 6.0 or higher.
Troubleshooting
If after following the documentation for VMware vSphere Plugin Installation and the plugin still does not function properly, this is often due to the VMware vSphere web client server not supporting TLS 1.1 or 1.2. See Analyzing the vsphere_client_virgo.log below if you would like to confirm this.
The PluginServer was developed because other troubleshooting steps such as adjusting the wrapper.conf file, updating Java, or manually installing the plugin can cause other unexpected issues in the customer's environment. If the following does not work create a Jira do not try other steps without directions from PSE.
Installing the PluginServer
The procedure below does a few different things. It runs the
unregisterplugin sh/bat
using the IP address of the vSphere server. It commands this server to stop its attempt to download the vSphere plugin from our array through the API and then attempts installation of the plugin. The next time a user logs into the vSphere web client, the web client triggers the plugin's installation when a user logs in. If there was a failed attempt to prevent login from taking a long time, it will not try and install the plugin twice. Restarting the vSphere Web Client service resolves this. Next, the
startserver
enables the API to pull the needed files from the Windows or Linux OS. And finally, the
registerplugin
uses API to pull the needed files to the vSphere server and tell vSphere to install the plugin the next time someone logs into the vSphere web client.
Windows
If any of these steps do not work see the notes section below.
-
Download PureStorage_vSphere_installer.jar and the PluginServer-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest plugin server from https://archive.dev.purestorage.com/flasharray/purity/customer_shipped_releases/older_releases_at_.._.._.._customer_shipped_releases/vsphere_plugin/ and then copy these files to a google drive (or equivalent) to share.
-
Make a new directory for the PluginServer files and unzip them to the directory.
-
Enter make a folder in the gui called pluginserver or in CLI
mkdir [drive:]path/pluginserver
.
-
Extract Pluginserver-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest to the pluginserver folder.
-
Extract the PluginServer to above folder and make sure PureStorage_vSphere_installer.jar is present in the same folder as the unzipped PluginServer files.
-
Enter
cd pluginserver/
.
-
Enter
copy ../PureStorage_vSphere_installer.jar /pluginserver
.
-
Unregister the failed plugin install.
-
Enter
unregisterplugin.bat
, while in the folder where the extracted files and the PureStorage_vSphere_installer.jar resides.
-
Enter the vSphere server'ss IP address.
-
Enter the vSphere credentials.
-
Run
startserver.bat
in the command console used for creating the directory. This will start up the web server that hosts the plugin. Keep this console open and running while you perform the rest of the steps.
-
You should see something similar to the following:
robm$ ./startserver.bat
Found these arguments port(8080) keystore(keystore.jks)
File location(purestorage-vsphere-plugin.zip)
Starting server on port 8080...
Server started successfully!
-
Leave this running and open a new command line window for the next step.
-
If it doesn’t work and you see “Found these arguments port(8080)” … “Address already in use” follow the steps in the note section below.
-
In a new command window, run
registerplugin.bat
while in the directory where unzip extracted the pluginserver and the PureStorage_vSphere_installer.jar resides.
-
Once run, it will ask for the IP address and credentials to run API commands against the vSphere server.
-
Restart the vSphere Web Client service on the vCenter server and then wait five minutes for it to fully come up(
on vCenter 6.5, you won't see the vSphere Web Client service listed in Services, so you can use a command prompt to stop and start the process:)
C:\Program Files\VMware\vCenter Server\bin>service-control --stop vspherewebclientsvc
C:\Program Files\VMware\vCenter Server\bin>service-control --start vspherewebclientsvc
Now have the user log into the vSphere web client to see the PureStorage plugin, if it is there, you can now close both command line windows.
8. If we still do not see the PureStorage Plugin make sure they have logged out then back into the vSphere Web Client.
9. If we still do not see PureStorage Plugin proceed to Analyzing the vsphere_client_virgo.log (steps below).
Once the user has logged into vSphere Web Client and can see the plugin, follow the vSphere Web Client user guide.
Linux VCSA Appliance, Installing the Plugin Server on a Linux VM
vCenter Server Appliance VCSA requires another OS to run the pluginserver scripts on. This can be another temporary VM running Linux or Windows, the following instructions are for a linux VM. Follow the above Windows steps if this other OS is running windows OS.
If any of these steps do not work see the notes section below.
-
vCenter Server Appliance VCSA requires another machine to run the pluginserver scripts on. This can be another temporary VM running Linux or Windows (above windows steps) or can be the Windows Guest OS the customer is using for their machine to temporarily run the pluginserver scripts.
-
Download PureStorage_vSphere_installer.jar from and the PluginServer-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest plugin server from https://archive.dev.purestorage.com/flasharray/purity/customer_shipped_releases/older_releases_at_.._.._.._customer_shipped_releases/vsphere_plugin/.
-
From the command line make new directory for the pluginserver files and unzip them to the directory.
-
Enter
mkdir pluginserver
.
-
Enter
unzip -d pluginserver/ Pluginserver-2.5.1_201704051804+163c8cd-rel_2_5_x.zip
.
-
Extract the PluginServer to any directory and make sure to copy PureStorage_vSphere_installer.jar to the same directory as the unzipped pluginserver files.
-
Enter
cd pluginserver/
.
-
Enter
cp ../PureStorage_vSphere_installer.jar ./
.
-
Make the scripts executable.
-
Enter
chmod a+x *.sh
.
-
Unregister the failed plugin install.
-
Enter ./unregisterplugin.bat, while in the directory where unzip extracted the files and the PureStorage_vSphere_installer.jar resides.
-
Enter the vSphere servers ip address.
-
Enter the vSphere credentials.
-
Execute the plugin using the pluginserver.
-
./startserver.sh
.
-
You should see something similar to the following:
robm$ ./startserver.sh
Found these arguments port(8080) keystore(keystore.jks)
File location(purestorage-vsphere-plugin.zip)
Starting server on port 8080...
Server started successfully!
-
If it doesn’t work and you see “Found these arguments port(8080)” … “Address already in use” follow the steps in the note section below.
-
If this fails for another reason, you may need to java jdk 1.8+ and jre 8+ on this linux VM. If this is a production VM, you do not want to update java, use a nonproduction VM.
-
In testing, a ubuntu-16.04.3 VM was used. The following commands were required:.
robm@ubuntu:~$ sudo apt-get update
robm@ubuntu:~$ sudo apt-get install default-jre
-
Leave this running and open a new command line window for the next step.
-
In a new command window, run
registerplugin.sh
while in the directory where unzip extracted the PluginServer and where the PureStorage_vSphere_installer.jar resides.
-
Once run, the program prompts for the IP address and credentials to run API commands against the vSphere server.
-
Restart the vSphere Web Client service from the command line on the vCenter server (not the VM) and then wait five minutes for it to fully come up.
-
Enter
service vsphere-client restart
.
-
Now have the user log into the vSphere web client to see the PureStorage plugin, if it is there, you can now close both command line windows.
-
If you still do not see the PureStorage Plugin, make sure you have logged out then back into the vSphere Web Client.
-
If you still do not see PureStorage Plugin, proceed to Analyzing the vsphere_client_virgo.log (steps below).
-
Once the user has logged into vSphere Web Client and can see the plugin, follow the vSphere Web Client user guide.
Analyzing the vsphere_client_virgo.log
Locate the vsphere_client_virgo.log and have the customer copy them to a text file then email them to us. These logs often get zipped up and numbered so be sure we have the file for the time period of when we attempted to install the plugin. Below is where these files should be located. Often this file is not where we expect it to be so searching it may be necessary. The following is from this vmware kb.
-
For vSphere 5.0, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\Program Files\VMware\Infrastructure\vSphere Web Client\DMServer\serviceability\.
-
Linux: /usr/lib/vmware-vsphere-client/server/serviceability/.
-
For vSphere 5.1, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\ProgramData\VMware\vSphere Web Client\serviceability\.
-
Linux: /var/log/vmware/vsphere-client/serviceability/.
-
For vSphere 5.5, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\ProgramData\VMware\vSphere Web Client\serviceability\.
-
Linux: /var/log/vmware/vsphere-client/.
-
For vSphere 6.0+ as per the following VMware kb.
-
C:\ProgramData\VMware\vCenterServer\logs\vsphere-client\logs.
-
/var/log/vmware/vsphere-client/logs.
Search the vsphere_client_virgo log for when the plugin was attempted. Usually, it will say “purestorage” when the attempt to install was performed. The following are errors we have seen in this file.
[2016-02-11 16:06:03.213] ERROR [ERROR] http-bio-9443-exec-16 com.purestorage.FlashArrayHelper javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
This alert was from not having JDK 1.8 see this JIRA.
[2017-06-19 10:34:00.954] [ERROR] vc-service-pool-2169 70002699 100142 200004 com.vmware.vise.vim.extension.VcExtensionManager Error unzipping https://192.168.41.131/download/pure...?version=2.5.1 to directory C:\ProgramData\VMware\vSphere Web Client\vc-packages\vsphere-client-serenity\com.purestorage.plugin.vsphere-2.5.1, check if the server process has Write Permission on this machine. java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
This alert is due to vSphere trying to establish communication with the array using TLSv1.0 ES-27873.
If installing from the GUI and it does not work and you see the above messages, install the PluginServer. If the vSphere server resides on a windows OS the PluginServer can be installed on it as described above. If the Linux VCSA appliance is being used we can put the PluginServer on a windows OS server (vm or bare metal) or a Linux vm as described above. Make sure this is not a production Linux VM as we may need to update or install java to 1.8+.
Windows
If any of these steps do not work see the notes section below.
-
Download PureStorage_vSphere_installer.jar and the PluginServer-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest plugin server from https://archive.dev.purestorage.com/flasharray/purity/customer_shipped_releases/older_releases_at_.._.._.._customer_shipped_releases/vsphere_plugin/ and then copy these files to a google drive (or equivalent) to share.
-
Make a new directory for the PluginServer files and unzip them to the directory.
-
Enter make a folder in the gui called pluginserver or in CLI
mkdir [drive:]path/pluginserver
.
-
Extract Pluginserver-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest to the pluginserver folder.
-
Extract the PluginServer to above folder and make sure PureStorage_vSphere_installer.jar is present in the same folder as the unzipped PluginServer files.
-
Enter
cd pluginserver/
.
-
Enter
copy ../PureStorage_vSphere_installer.jar /pluginserver
.
-
Unregister the failed plugin install.
-
Enter
unregisterplugin.bat
, while in the folder where the extracted files and the PureStorage_vSphere_installer.jar resides.
-
Enter the vSphere server'ss IP address.
-
Enter the vSphere credentials.
-
Run
startserver.bat
in the command console used for creating the directory. This will start up the web server that hosts the plugin. Keep this console open and running while you perform the rest of the steps.
-
You should see something similar to the following:
robm$ ./startserver.bat
Found these arguments port(8080) keystore(keystore.jks)
File location(purestorage-vsphere-plugin.zip)
Starting server on port 8080...
Server started successfully!
-
Leave this running and open a new command line window for the next step.
-
If it doesn’t work and you see “Found these arguments port(8080)” … “Address already in use” follow the steps in the note section below.
-
In a new command window, run
registerplugin.bat
while in the directory where unzip extracted the pluginserver and the PureStorage_vSphere_installer.jar resides.
-
Once run, it will ask for the IP address and credentials to run API commands against the vSphere server.
-
Restart the vSphere Web Client service on the vCenter server and then wait five minutes for it to fully come up(
on vCenter 6.5, you won't see the vSphere Web Client service listed in Services, so you can use a command prompt to stop and start the process:)
C:\Program Files\VMware\vCenter Server\bin>service-control --stop vspherewebclientsvc
C:\Program Files\VMware\vCenter Server\bin>service-control --start vspherewebclientsvc
Now have the user log into the vSphere web client to see the PureStorage plugin, if it is there, you can now close both command line windows.
8. If we still do not see the PureStorage Plugin make sure they have logged out then back into the vSphere Web Client.
9. If we still do not see PureStorage Plugin proceed to Analyzing the vsphere_client_virgo.log (steps below).
Once the user has logged into vSphere Web Client and can see the plugin, follow the vSphere Web Client user guide.
Linux VCSA Appliance, Installing the Plugin Server on a Linux VM
vCenter Server Appliance VCSA requires another OS to run the pluginserver scripts on. This can be another temporary VM running Linux or Windows, the following instructions are for a linux VM. Follow the above Windows steps if this other OS is running windows OS.
If any of these steps do not work see the notes section below.
-
vCenter Server Appliance VCSA requires another machine to run the pluginserver scripts on. This can be another temporary VM running Linux or Windows (above windows steps) or can be the Windows Guest OS the customer is using for their machine to temporarily run the pluginserver scripts.
-
Download PureStorage_vSphere_installer.jar from and the PluginServer-2.5.1_201704051804+163c8cd-rel_2_5_x.zip or latest plugin server from https://archive.dev.purestorage.com/flasharray/purity/customer_shipped_releases/older_releases_at_.._.._.._customer_shipped_releases/vsphere_plugin/.
-
From the command line make new directory for the pluginserver files and unzip them to the directory.
-
Enter
mkdir pluginserver
.
-
Enter
unzip -d pluginserver/ Pluginserver-2.5.1_201704051804+163c8cd-rel_2_5_x.zip
.
-
Extract the PluginServer to any directory and make sure to copy PureStorage_vSphere_installer.jar to the same directory as the unzipped pluginserver files.
-
Enter
cd pluginserver/
.
-
Enter
cp ../PureStorage_vSphere_installer.jar ./
.
-
Make the scripts executable.
-
Enter
chmod a+x *.sh
.
-
Unregister the failed plugin install.
-
Enter ./unregisterplugin.bat, while in the directory where unzip extracted the files and the PureStorage_vSphere_installer.jar resides.
-
Enter the vSphere servers ip address.
-
Enter the vSphere credentials.
-
Execute the plugin using the pluginserver.
-
./startserver.sh
.
-
You should see something similar to the following:
robm$ ./startserver.sh
Found these arguments port(8080) keystore(keystore.jks)
File location(purestorage-vsphere-plugin.zip)
Starting server on port 8080...
Server started successfully!
-
If it doesn’t work and you see “Found these arguments port(8080)” … “Address already in use” follow the steps in the note section below.
-
If this fails for another reason, you may need to java jdk 1.8+ and jre 8+ on this linux VM. If this is a production VM, you do not want to update java, use a nonproduction VM.
-
In testing, a ubuntu-16.04.3 VM was used. The following commands were required:.
robm@ubuntu:~$ sudo apt-get update
robm@ubuntu:~$ sudo apt-get install default-jre
-
Leave this running and open a new command line window for the next step.
-
In a new command window, run
registerplugin.sh
while in the directory where unzip extracted the PluginServer and where the PureStorage_vSphere_installer.jar resides.
-
Once run, the program prompts for the IP address and credentials to run API commands against the vSphere server.
-
Restart the vSphere Web Client service from the command line on the vCenter server (not the VM) and then wait five minutes for it to fully come up.
-
Enter
service vsphere-client restart
.
-
Now have the user log into the vSphere web client to see the PureStorage plugin, if it is there, you can now close both command line windows.
-
If you still do not see the PureStorage Plugin, make sure you have logged out then back into the vSphere Web Client.
-
If you still do not see PureStorage Plugin, proceed to Analyzing the vsphere_client_virgo.log (steps below).
-
Once the user has logged into vSphere Web Client and can see the plugin, follow the vSphere Web Client user guide.
Analyzing the vsphere_client_virgo.log
Locate the vsphere_client_virgo.log and have the customer copy them to a text file then email them to us. These logs often get zipped up and numbered so be sure we have the file for the time period of when we attempted to install the plugin. Below is where these files should be located. Often this file is not where we expect it to be so searching it may be necessary. The following is from this vmware kb.
-
For vSphere 5.0, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\Program Files\VMware\Infrastructure\vSphere Web Client\DMServer\serviceability\.
-
Linux: /usr/lib/vmware-vsphere-client/server/serviceability/.
-
For vSphere 5.1, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\ProgramData\VMware\vSphere Web Client\serviceability\.
-
Linux: /var/log/vmware/vsphere-client/serviceability/.
-
For vSphere 5.5, all the logs for the vSphere Web Client service are located at:
-
Windows: C:\ProgramData\VMware\vSphere Web Client\serviceability\.
-
Linux: /var/log/vmware/vsphere-client/.
-
For vSphere 6.0+ as per the following VMware kb.
-
C:\ProgramData\VMware\vCenterServer\logs\vsphere-client\logs.
-
/var/log/vmware/vsphere-client/logs.
Search the vsphere_client_virgo log for when the plugin was attempted. Usually, it will say “purestorage” when the attempt to install was performed. The following are errors we have seen in this file.
[2016-02-11 16:06:03.213] ERROR [ERROR] http-bio-9443-exec-16 com.purestorage.FlashArrayHelper javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
This alert was from not having JDK 1.8 see this JIRA.
[2017-06-19 10:34:00.954] [ERROR] vc-service-pool-2169 70002699 100142 200004 com.vmware.vise.vim.extension.VcExtensionManager Error unzipping https://192.168.41.131/download/pure...?version=2.5.1 to directory C:\ProgramData\VMware\vSphere Web Client\vc-packages\vsphere-client-serenity\com.purestorage.plugin.vsphere-2.5.1, check if the server process has Write Permission on this machine. java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
This alert is due to vSphere trying to establish communication with the array using TLSv1.0 ES-27873.
If installing from the GUI and it does not work and you see the above messages, install the PluginServer. If the vSphere server resides on a windows OS the PluginServer can be installed on it as described above. If the Linux VCSA appliance is being used we can put the PluginServer on a windows OS server (vm or bare metal) or a Linux vm as described above. Make sure this is not a production Linux VM as we may need to update or install java to 1.8+.
Notes:
If running the
startserver.bat/sh
script fails, there may be an issue when port 8080 is already in use. As seen below:
robm$Found these arguments port(8080) keystore(deystore.jks)
File location(purestorage-vsphere-plugin.zip)
java.net.BindException: Address already in use: bind”
robm$ ./startserver.sh
Found these arguments port(8080) keystore(keystore.jks)
File location(purestorage-vsphere-plugin.zip)
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
at sun.net.httpserver.HttpsServerImpl.<init>(HttpsServerImpl.java:50)
at sun.net.httpserver.DefaultHttpServerProvider.createHttpsServer(DefaultHttpServerProvider.java:39)
at com.sun.net.httpserver.HttpsServer.create(HttpsServer.java:90)
at com.purestorage.PluginServer.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException: null SSLContext
at com.sun.net.httpserver.HttpsConfigurator.<init>(HttpsConfigurator.java:82)
at com.purestorage.PluginServer$1.<init>(Unknown Source)
at com.purestorage.PluginServer.main(Unknown Source)
To fix this error modify the startserver.bat/sh so it is using 8081.
-
Open startserver.bat/sh in a text editor (notepad or vim).
-
Search for 8080 then change it to 8081 twice.
-
Change port 8080 to 8081 in the registerplugin.bat/sh.
Here is what the startserver.bat/sh looks like after modification:
#!/bin/bash
set -e
if [ ! -f /usr/bin/java ]; then
echo 'Please install java'
exit -1
fi
# The listening port is 8081. You can modify to use any port. Make sure to modify the registerPlugin script.
java -cp ./PureStorage_PluginServer.jar com.purestorage.PluginServer 8081 keystore.jks purestorage-vsphere-plugin.zip
Additionally, you will need to edit the registerplugin.bat/sh with the following command:
java -cp ./PureStorage_PluginServer.jar:./PureStorage_vSphere_installer.jar com.purestorage.RegisterPlugin 8081 3.0.0 $ip
Additional troubleshooting steps include:
-
If you get a JNI error when running the
registerserver
script, most likely the installer.jar isn't in the same directory as the unzipped PluginServer scripts.
-
To determine where the plugin is failing, you can verify if it is showing up in the https://vcenterIP/mob.
-
Go to https://ipaddress_of_vSphere_server/mob.
-
Go to
Content > ExtensionManager > extensionList["com.purestorage.plugin.vsphere"] > client
.
-
From there verify the URL and ensure that this is the correct location vCenter should be looking to download and install the plugin.
-
You can also ensure that the vCenter GUI has the plugin enabled via the following:
-
Go to https://ipaddress_of_vSphere_server/.
-
Go to
Home > Administration > Client Plug-Ins
.
-
From there make sure the Pure Storage Plugin is enabled (and not set to disabled).