New vSphere Mobile Client Fling with Docker Container Notification Service

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.
  1. sudo apt install docker.io

Installing-Docker-in-Ubuntu-18.04 New vSphere Mobile Client Fling with Docker Container Notification Service
Installing Docker in Ubuntu 18.04
  1. sudo systemctl enable docker
  2. sudo systemctl start docker

Enabling-and-starting-Docker-in-Ubuntu-18.04 New vSphere Mobile Client Fling with Docker Container Notification Service
Enabling and starting Docker in Ubuntu 18.04
  1. docker --version

Checking-the-version-of-Docker-that-is-installed-to-verify New vSphere Mobile Client Fling with Docker Container Notification Service
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 New vSphere Mobile Client Fling with Docker Container Notification Service
Loading the VMware Mobile Client Docker image into Docker on my Ubuntu VM.
  1. docker load -i vsphere-mobile-client-service.tar.bz2

Load-the-VMware-Mobile-Client-fling-Docker-image-into-Docker New vSphere Mobile Client Fling with Docker Container Notification Service
Load the VMware Mobile Client fling Docker image into Docker
Creating the VMware Mobile Client Notification Service in a Docker Container.
  1. docker create -p 443:8888 vsphere-mobile-client-service

Create-a-container-from-the-Docker-image-provided New vSphere Mobile Client Fling with Docker Container Notification Service
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 New vSphere Mobile Client Fling with Docker Container Notification Service
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.
  1. 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_ New vSphere Mobile Client Fling with Docker Container Notification Service
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:
  1. docker container ls --all

Listing-out-the-Docker-images New vSphere Mobile Client Fling with Docker Container Notification Service
Creating the trust keystore for the notification service using the vCenter root.cer

Copying-the-trust-store-to-Docker New vSphere Mobile Client Fling with Docker Container Notification Service

Creating the service-key-store is performed using a command line one-liner on your VCSA appliance:
  1. keytool -genkeypair -alias service -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore service-keystore.
  2. pfx -validity 365

After-generating-both-the-trust-and-service-key-stores New vSphere Mobile Client Fling with Docker Container Notification Service
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 New vSphere Mobile Client Fling with Docker Container Notification Service
Creating the application.io file for use with the Docker container.

Creating-an-application.io-file-for-the-Docker-container-image New vSphere Mobile Client Fling with Docker Container Notification Service
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 New vSphere Mobile Client Fling with Docker Container Notification Service
Copying the application.io file to the Docker image for the vSphere Mobile Client
Start the Docker container:
  1. 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 New vSphere Mobile Client Fling with Docker Container Notification Service
Opt into the testing by clicking the Become a Tester link.

Becoming-a-tester-for-the-vSphere-Mobile-Client New vSphere Mobile Client Fling with Docker Container Notification Service
Click the Download it on Google Play for Android users.

Downloading-the-vSphere-Mobile-Client-from-Google-Play-Store New vSphere Mobile Client Fling with Docker Container Notification Service
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 New vSphere Mobile Client Fling with Docker Container Notification Service
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.

Post a Comment

0 Comments