vSphere Mobile

New vSphere Mobile Client Fling with Docker Container Notification Service

A look at the New vSphere Mobile Client Fling with Docker Container Notification Service that provides Clarity UI to mobile clients and good features

Like many of you, I have been highly interested in vSphere mobile clients over the years. I have written posts previously around the VMware vSphere Watchlist for Android that is readily available on the Google Play Store. However, I saw a blurb recently about a new vSphere Mobile Client that is a VMware Fling that can be used currently in testing. The cool thing with the VMware Fling is that it is comprised of both an app that is downloadable once you opt in to testing and then also a Docker container notification service that you configure to run on-premises with your infrastructure that allows sending push notifications to your client for events you have subscribed for. Let’s take a look at the new vsphere Mobile Client Fling with Docker Container notification service to see how to provision the Docker container in a VM for the notification service and download the mobile app.

vSphere Mobile Client Requirements

  • Supports mobile devices using Android version 4.4 (KitKat) or newer
  • Supports mobile devices using iOS version 10 or newer
  • No other mobile operating systems are currently supported
  • For Notification Appliance – 2 vCPU, 4 GB RAM, 14 GB storage
  • An existing VC (version 6.0 or newer) installation (VCSA or Windows).
  • Application is tested on the vCenter VCSA 6.5 GA release.

New vSphere Mobile Client Features

Features

  • VM overview: Review the status of your VMs including state (powered on/off), resource usage and configuration information
  • VM management: Change the power state of a VM or restart it. Locating the virtual machine to operate on can be done through search.
  • Task monitoring: Subscribe to any running task and receive a notification on your mobile device upon task completion, even when your device is in-active or you have another application running on the foreground.
  • Performance charts: Monitor the resource usage of a VM in real time or a day, week, month or year back. Counters include CPU, Memory, Storage and Network.

Installing Docker in Ubuntu

The first thing I had to do was install Docker in my Ubuntu 18.04 VM for which I wanted to use with the notification service.

sudo apt install docker.io
Installing-Docker-in-Ubuntu-18.04
Installing Docker in Ubuntu 18.04
sudo systemctl enable docker
sudo systemctl start docker
Enabling-and-starting-Docker-in-Ubuntu-18.04
Enabling and starting Docker in Ubuntu 18.04
docker --version
Checking-the-version-of-Docker-that-is-installed-to-verify
Checking the version of Docker that is installed to verify

Installing and Configuring the VMware Mobile Client Docker Container Notification Service

The first thing you need to do is download the Docker image from the VMware Flings website. I have downloaded the Docker image and copied it over to the Ubuntu server.

Download-and-copy-over-the-Docker-image-provided-in-the-VMware-Mobile-Client-Fling

Loading the VMware Mobile Client Docker image into Docker on my Ubuntu VM.

docker load -i vsphere-mobile-client-service.tar.bz2
Load-the-VMware-Mobile-Client-fling-Docker-image-into-Docker
Load the VMware Mobile Client fling Docker image into Docker

Creating the VMware Mobile Client Notification Service in a Docker Container.

docker create -p 443:8888 vsphere-mobile-client-service
Create-a-container-from-the-Docker-image-provided

The next few steps involve getting files that you need to create on your VCSA appliance. You need to first create a copy of the root.cer in the /var/lib/vmware/vmca folder on your VCSA appliance.

Copying-the-root.cer-from-VCSA-for-creating-the-needed-keystore-files
Copying the root.cer from VCSA for creating the needed keystore files

Using the keystore file, run the following command pointed to your root.cer file.

keytool -import -file root.cer -alias vcsaCA -storetype PKCS12 -keystore csm-trust-store.pfx
Creating-the-trust-keystore-for-the-notification-service-using-the-vCenter-root.cer_
Creating the trust keystore for the notification service using the vCenter root.cer

Copying the keystores to Docker require using the Docker ID. You can get that with:

docker container ls --all
Listing-out-the-Docker-images
Creating the trust keystore for the notification service using the vCenter root.cer
Copying-the-trust-store-to-Docker

Creating the service-key-store is performed using a command line one-liner on your VCSA appliance:

keytool -genkeypair -alias service -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore service-keystore.
pfx -validity 365
After-generating-both-the-trust-and-service-key-stores

Copying both the truststore.pfx and the service-keystore.pfx to the Docker container image.

Copying-the-trust-and-service-keystores-to-Docker-for-the-vSphere-Mobile-Client

Creating the application.io file for use with the Docker container.

Creating-an-application.io-file-for-the-Docker-container-image
Creating an application.io file for the Docker container image

Just a note, I am not running these commands more than once, but this screen below shows all the commands ran copying files to the Docker container image.

Copying-the-application.io-file-to-the-Docker-image-for-the-vSphere-Mobile-Client
Copying the application.io file to the Docker image for the vSphere Mobile Client

Start the Docker container:

docker start <docker container ID>

To get the actual vSphere Mobile Client, you go back to the Fling site and click the Instructions tab and then get the mobile app for either Android or IOS.

Becoming-a-tester-and-downloading-the-mobile-apps

Opt into the testing by clicking the Become a Tester link.

Becoming-a-tester-for-the-vSphere-Mobile-Client

Click the Download it on Google Play for Android users.

Downloading-the-vSphere-Mobile-Client-from-Google-Play-Store
Downloading the vSphere Mobile Client from Google Play Store

Install the vSphere Mobile Client by clicking the link.

Click-install-to-install-the-vSphere-Mobile-Client-on-your-Android-Device
Click install to install the vSphere Mobile Client on your Android Device

Once you have the client installed, under the Settings of the vSphere Mobile Client, you have a field to point it to the Notification Service. For this, you will plug in your IP/FQDN of the notification service running in Docker.

Wrapping Up

The New vSphere Mobile Client Fling with Docker Container Notification Service is a great new vSphere Client for Mobile Devices that brings the same look and feel of the Clarity UI to the vSphere Mobile Client. The features are fairly limited at the moment, however, I suspect they will add many new additions to the service as it is updated and actually gets released to the public.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.