Add existing virtual desktops to “Automated Pool” in VMware View manually

Add existing virtual desktops to “Automated Pool” in VMware View manually

VMware View offers two basic pools for create and manage virtual desktops, “Automated Pool” and “Manual Pool”. Each of them has own benefits. “Automated Pool” has better management features and “Manual Pool” has more flexibility.

You can create virtual machines within a “Automated Pool” and the virtual machines will be created based on a pattern or manual name from a template. In other hand, you able to add virtual desktops that created from different templates, with different name pattern and from different vCenter folders to a “Manual Pool”.
Some times, you have to remove some virtual machines from a pool or you have to add an existing virtual machines to a “Automated Pool”, but you can’t replace deleted virtual machines with new virtual machines with same name on a “Automated Pool” with specific naming pattern and you can’t add any existing virtual machines from vCenter to that.

There is a solution that you can convert your “Automated Pool” to a “Manual Pool” temporary and add your virtual machines to that. Then you can convert that to “Automated Pool” again.

In this case, I’ve created an automated pool with pattern naming (Test) and one VM is created in the pool (VM-1) . You can see that on the below figure:


VM_Pool_1.png

VM_Pool.png

For convert your pool, you need access to VMware View ADAM database and change some things on that.

So logon to your View Connection Server and then connect to ADAM database by ADSI Edit tool.

ADSI_Edit.png

Connection_Settings.png

  • Connection Point: Change to “Select or type a Distinguished Name or Naming Context” and then enter dc=vdi,dc=vmware,dc=int
  • Computer: Change to “Select or type a domain or server:” and put in localhost
    • Note: This assumes you are locally connected to the Connection Server

After connecting to the database, you can find your pools under “Server Groups” OU.

Server_Group.png

Before editing anything, please consider to VMware View pool types and attribute values:

  • Automated Pool with naming pattern – Attribute value=1
  • Manual Pool – Attribute value=5
  • Automated Pool with manual naming – Attribute value=12

Double click or right click on your pool to open that and edit its properties. Then you should edit a attribute (pae-ServerPoolType).

Now, you see a window same as the below figure:

PoolType_1.png

Find the attribute and change the attribute value to “5″ for changing pool type to manual pool.

PoolType_2.png

Click on “OK” to apply the change.

Now, logon to your View Administrator portal or refresh your pools list, you’ll see that the pool is converted to a manual pool.

Then, open your pool and you’ll see “Add” button is visible now. Click on the button and then add your existing virtual machines to the pool.

VM_Pool_Add.png

After adding virtual desktops to the pool, a attribute on the virtual desktops VMX file (machine.id) will be reconfigured by VMware View server. “machine.id” is contains of information about connection server, pool, broker public key and etc. You don’t change anything on that. It will be changed during reconfiguration process.

machine_id.png

I added an existing virtual machine (Test-3) to the pool, the virtual machine is reconfigured by VMware View server.

vCenter_tasks.png

Back to your pool view and refresh your virtual machines status, then you’ll see the virtual machines are ready to use.

Final.png

Now, you have to edit the pool attribute and return value to 1 or 12 for reconvert that to a automated pool.

Notes:

  1. Don’t add virtual machine that it’s managing by another View manager.
  2. Some times you have to power off the added virtual machines. View will power on and reconfigure them automatically.
  3. Don’t change other settings on the converted pool.
  4. The solution is tested on View 5.2 and vCenter 5.1.
  5. Create manual backup from ADAM database before any change.
  6. Don’t add Windows XP virtual machine to a pool with 3D enabled feature.
Comments

Unfortunately this does not work with Horizon View 6.0 as far as I can tell.  I'll also save you some time and tell you the reverse procedure doesn't work either, of making a manual pool and converting to automatic.  When you try and edit the automatic pool it gives you an error.  Now, with THAT said, if you were to manually change every variable the auto pool adds, there is a slim chance it might work, but good luck identifying every entry it puts into ADAM.  The problem on Horizon View 6 appears to be, and I don't have a lot of experience with manual pools, is there is no option to add desktops to an existing manual pool.  This seems incredibly strange, so I am not doubting that maybe I am missing something, but I spent a couple hours last night trying to figure out how to add another desktop to an existing manual pool, but had no luck.  It seems very weird that once you go in and edit the pool, there is no option to add or remove desktops.  In the end, I just made a manual pool for existing users, and then entitled them to it.  Any new users will get the new automated pool with a similar but slightly different name.  Not ideal, but it gets the job done.

This worked just fine for me on View 6.2.1 build-3284346.  I actually cloned an existing Automatic pool and changed it to a Manual pool per your instructions.  Then I removed a machine from the automatic pool, added it to the new pool, shut the VM off/on (which automatically reconfigured it) and assigned a user.  Bingo, it was available and I could log in.  The reason we are looking at doing this is for machines that require 3D acceleration that we will handle as one-offs.

This is great! Automated pools full of dedicated vm desktops will have issues over time resulting in the need to delete a problematic vm. It has always frustrated me that the new vm which is subsequently provisioned gets piled onto the end of the numerical stack. This is a great way to fix the gaps that can be left over time after deleting several vm desktops! Has anyone tried this with Horizon 7 yet?

Version history
Revision #:
1 of 1
Last update:
‎02-11-2014 09:53 PM
Updated by: