VMware DEM – Capture Application using Application Profiler

Release date: April 14th 2020

Welcome to my VMware Dynamic Environment Manager series. In this session I will describe how I captured an application, Audacity, using VMware DEM Application Profiler. Before I begin, I will mention that it is quite possible to download config templates from Vmware Marketplace, directly from inside DEM Console.

CaptureAppSettings-01

CaptureAppSettings-02

 

The approach above is quite suitable for many generic applications, but far from all application have a template on VMware Marketplace. Sometimes we have to create our own config file using the Application Profiling utility. To do this, I first start up my Profiler-VM which I created earlier in this session: VMware DEM – Setup Application Profiler VM. Next, I either install the application in question, or even better, use the Application I created in App Volumes earlier. In this session I will use the Audacity Application I packaged with App Volumes earlier. So, I make sure to assign the Audacity application to the user I will be using in this session. This user will also need write permission to the config share on my Dynamic Environment server. This is where I will put my config file when I have created it. Prior to capturing the new application, I have the following Applications defined.

CaptureAppSettings-03

 

When my Profiler VM is started, I launch Vmware Remote Console and log in. (When making this session I only had a Norwegian Windows 10 and Audacity installation, but we all get the gist of what will get done). As we can see below, the pre-installed App Volumes Agent has attached the Audacity Application inside Windows and the hostname for this VM is W10DEMCAPT

CaptureAppSettings-04

CaptureAppSettings-05

 

If I launch Audacity, it starts nicely as it should for all users, I then close the application before I continue.

CaptureAppSettings-06

 

To capture the Audacity template, I launch DEM Application Profiler and click Start Session…

CaptureAppSettings-07

CaptureAppSettings-08

 

I can now either browse to my applications folder, or choose it from the start menu. I simply select Audacity from the Start Menu, OK…

CaptureAppSettings-09

 

VMware DEM starts to analyze the application and launches Audacity.

CaptureAppSettings-10

 

For this session, I will pre-define the sample rate from default 44100 Hz to 48000 Hz

CaptureAppSettings-11

 

After I have done my change, I close Audacity. With the analysis done, my Flex Config file is created.

CaptureAppSettings-11_1

 

Next, I will save my Config File with predefined settings

CaptureAppSettings-12

 

I will save this directly to my Config Share

CaptureAppSettings-13

CaptureAppSettings-14

 

Finally I revert the Profiler VM to my snapshot in order to have a clean VM for the next capture.

CaptureAppSettings-15

 

Back in the VMware DEM Console, I refresh and verify that Audacity is now present.

CaptureAppSettings-16

 

To test this, I log into a Horizon Desktop with a user that has this Application assigned from App Volumes. I start up Audacity and make a change to a setting. As we can see I have my predefined sample rate setting of 48000 Hz, this I will change back to the default value 44100 Hz.

CaptureAppSettings-17

CaptureAppSettings-18

 

As I log off my Horizon Desktop, I can now verify that the settings are exported to my test user’s profile archive

CaptureAppSettings-19

 

If I open the Audacity zip-file I can now verify the setting I changed has been exported

CaptureAppSettings-20

 

I open the audacity.cfg file using Notepad and see DefaultProjectSampleRate is set to 44100 as I changed it to inside the Horizon Desktop

CaptureAppSettings-21

 

And, with that, my users settings in Audacity are now roaming between sessions.

 

VMware Dynamic Environment Manager LAB setup

Vmware Dynamic Environment Manager product page

Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.