In this post, I will be working against the Custom UI web interface but there is nothing preventing you from doing the same for the vSphere UI web interface.
First thing first, login to vCOps UI VM (I like using WinSCP) and make a backup copy of the following two folders:
Note: The vSphere UI folders are located under /usr/lib/vmware-vcops/tomcat/webapps/vcops-vsphere
Replacing Images and editing HTML
For this customization, we will be replacing some of the default image files and edit the HTML code driving the UI.
To make things easy, download the zip file I made which contains the following files:
For a “quick win” follow steps 1 & 2 but if you want to know what needs to be edited in the loginPage.jsp file go through steps 3-8.
- Extract the files and copy the png files to the /vcops-custom/images/login/ folder.
- Replace the loginPage.jsp located in /vcops-custom/pages/ folder.
- From the /vcops-custom/pages/ folder, open the loginPage.jsp using your favorite editor (mine is Notepad++).
- Change the logo png path to /images/login/VMware_Cloud_Logo.png (line 345).
- Change the “top” and “bottom” images paths (lines 335, 337, 410 & 412).
- Add a custom text before the “main.productName” value, increase the font size to 18px and change the HTML color scheme to black (lines 353 & 358).
- Replace the Login Box HTML background color code to white (line 333).
- Replace the “User name” and “Password” HTML text color code to black (lines 366 & 370).
- After you finished editing the loginPage.jsp file, replace it with the original file located in /vcops-custom/pages/ folder.