Pages

Wednesday, November 11, 2015

Creating an AppStack with VMware App Volumes

This post serves as a continuation of my previous post:

Installing and performing initial configuration of VMware App Volumes Manager http://terenceluk.blogspot.com/2015/11/installing-and-performing-initial.html

… to demonstrate how to create an AppStack once you have VMware App Volumes deployed in your environment.

Prerequisites

  1. In order to create an AppStack, you’ll need a virtual machine to mount an empty AppStack to capture the application that is being installed.  With this in mind, you can either use a plain vanilla Windows install with no applications installed on it to avoid conflicts or, which I have found to be the better option, use the master image that you’ll be mounting the AppStacks on.  The reason why the latter appears to work better is because if you had Microsoft Office installed on your master image, it’s better to the master image to deploy an AppStack with Visio.  Not doing so caused all sorts of problems for me when attempting to mount a Visio AppStack to the master image. 
  2. You will need to deploy the App Volumes agent on the virtual machine that you will be using to create an AppStack.  If you are using your master image then this would not be a problem because it would need the agent to have AppStacks mounted onto it.

Step #1 – Install the App Volumes agent onto the virtual machine used to create the AppStack

Begin by logging onto the virtual machine that you will be using to create a new AppStack and launch the VMware App Volumes installer:

clip_image002

Proceed through the wizard:

clip_image002[4]

Select Install App Volumes Agent:

clip_image002[6]

clip_image002[8]

Type in either the IP address or FQDN of the App Volumes Manager server:

clip_image002[10]

Complete the installation:

clip_image002[12]

clip_image002[14]

clip_image002[16]

clip_image002[18]

clip_image002[22]

Restart the virtual machine:

clip_image002[20]

Step #2 – Create the new AppStack

Log onto the VMware App Volumes Manager administration console, click on Volumes and then AppStacks, then click on Create AppStack:

clip_image002[24]

Fill in the appropriate fields as such:

image

Selecting Perform in the background will allow you to continue through the creation immediately while selecting Wait for completion would keep you on the screen until the empty AppStack is created:

image

image

A summary of the empty AppStack that is ready to be provisioned will be displayed:

image

Proceeding to click on the Provision option will bring you to the following screen that allows you to search for the virtual machine to mount the AppStack and deploy the new application:

image

Hitting the search button with nothing filled out in the Find Provision Computer text box will list all the virtual machines with the agent installed that the App Volumes Manager can detect:

image

Select the virtual machine prepared in step 1 and click on Provision:

image

Confirm the provisioning:

image

image

Note the new AppStack created:

image

Reviewing the settings of the virtual machine selected will show that a new hard disk has been mounted to it and this is the hard disk where the new application files will be redirected:

image

Step #3 – Install the application

Proceed and log onto the virtual machine with the empty AppStack mounted and you will see the following message displayed:

App Volumes

You are now in provisioning mode.

Click OK only after you have completely installed all applications you wish to provision to this AppStack.

clip_image002[30]

Proceed to install the application and once completed, click on the OK button in the prompt:

clip_image002[32]

The following message will be displayed:

Installation complete? System will reboot

Click YES to finish and reboot computer.

Or Click No to continue provisioning.

clip_image002[34]

Proceed by clicking on the Yes button then OK:

clip_image002[36]

The following message will be displayed once you have logged in after the restart:

Provisioning successful (exit code 0)

Click OK, then return to the App Volumes Manager to assign the AppStack.

clip_image002[38]

Note that the settings of the virtual machine should show that the hard disk 2 has been removed:

image

Navigating back to the App Volumes Manager will show that the AppStack is now ready to be assigned:

image

Proceed with clicking on the Assign button then searching for the user or group you want to assign the AppStack to:

clip_image002[40]

image

image

What’s also worth noting is that you can also limit which computer this AppStack can get attached to regardless of whether it is assigned to the user or group specified:

image

Select the desired option:

image

The AppStack is now assigned:

image

If the AppStack is assigned immediately, you should be able to see a new hard disk attached to the virtual machine that the assigned user is logged on:

image

Logging onto the virtual machine should also show that the application is available:

clip_image002[42]

Tuesday, November 10, 2015

Installing and performing initial configuration of VMware App Volumes Manager

I’ve been fortunate enough to have a few clients interested in adopting VMware’s new App Volumes earlier this year and while I’ve had numerous issues with Microsoft Office or related applications, I’ve found it extremely for most other applications that have no dependency on Microsoft Office.  I know I’m a bit late in writing this post as the screenshots have been sitting in my Outlook for almost a year but better late than never, right?

Prerequisites

  1. Begin by allocating a server to deploy VMware App Volumes Manager on.  The server I’ll be using in this example will be Windows Server 2012 R2.
  2. Launch Server Manager and install .NET Framework 3.5 Features:image
  3. If a remote SQL database server is going to be used, create an empty database named svmanager_production (or a different name if desired) and a SQL authentication account granting it dbcreator and db_owner rights to the svmanager_production database.
  4. Create a service account in Active Directory with read-only access (regular domain user is fine).
  5. Assign the service account created in step #4 to vCenter and assign the following permissions:
  • Datastore
    • Allocate space
    • Browse datastore
    • Low level file operations
    • Remove file
    • Update virtual machine files
  • Folder
    • Create folder
    • Delete folder
  • Global
    • Cancel task
  • Host
    • Local operations
      • Create virtual machine
      • Delete virtual machine
      • Reconfigure virtual machine
  • Resource
    • Assign virtual machine to resource pool
  • Sessions
    • View and stop sessions
  • Tasks
    • Create task
  • Virtual machine
    • Configuration
      • Add existing disk
      • Add new disk
      • Add or remove device
      • Change resource
      • Remove disk
      • Settings
    • Interaction
      • Power Off
      • Power On
      • Suspend
    • Inventory
      • Create from exising
      • Create new
      • Move
      • Register
      • Remove
      • Unregister
    • Provisioning
      • Clone template
      • Clone virtual machine
      • Create template from virtual machine
      • Customize
      • Deploy template
      • Mark as template
      • Mark as virtual machine
      • Modify customization specification
      • Promote disks
      • Read customization specifications

App Volumes Manager Installation

Download the VMware App Volume ISO, extract it to a directory then run setup.exe:

clip_image002

Proceed through the installation wizard:

clip_image002[4]

clip_image002[6]

Select Install App Volume Manager:

clip_image002[8]

clip_image002[10]

clip_image002[12]

Select either Install local SQL Server Express Database or Connect to an existing SQL Server Database:

clip_image002[14]

For the purpose of this example, I will be using a remote database server:

clip_image002[16]

Type in the remote SQL server’s name and database instance, the account that was created and svmanager_production as the Name of database catalog to use or create then check the option to Overwrite existing database (if any) checkbox:

image

clip_image002[18]

clip_image002[20]

clip_image002[22]

clip_image002[24]

clip_image002[26]clip_image002[28]

clip_image002[30]clip_image002[32]

Once the installation has completed, proceed and launch the App Volumes Manager portal to begin the initial configuration:

clip_image002[34]

clip_image002[36]

In the Active Directory window fill in the following:

Active Directory Domain Name: Enter the FQDN of your AD domain
Domain Controller Host Name: <leave blank>
LDAP Base: <leave blank if you would like the whole domain to be used or fill in the DN of a specific OU>
Username: Enter the service account created
Password: Enter the password for the service account
Use LDAPS: <enable if LDAPS is enabled on the DCs>
Allow non-domain entities: <enable if non-domain users and computers are going to be used>

image

Select a group that you would like to assign administrative privileges to the App Volumes Manager:

image

Fill in the required details for the vCenter in your environment:

image

Select a storage location to store the App Volumes:

image

Confirm the Storage Settings:

image

Select a host in your cluster and enter root credentials to upload prepackaged volumes:

imageimage

Confirm the upload:

imageimage

Confirm the summary settings:

image

The initial configuration is now setup and you can proceed installing the App Volumes agent onto a desktop or server to provision new AppStacks:

clip_image002[1]