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

Version 2

    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

    https://dl.dropboxusercontent.com/u/55156562/Posts/Add%20existing%20virtual%20desktops%20to%20Automated%20Pool%20in%20VMware%20View%20manually/VM_Pool.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.

     

    https://dl.dropboxusercontent.com/u/55156562/Posts/Add%20existing%20virtual%20desktops%20to%20Automated%20Pool%20in%20VMware%20View%20manually/ADSI_Edit.png

    ADSI_Edit.png

    https://dl.dropboxusercontent.com/u/55156562/Posts/Add%20existing%20virtual%20desktops%20to%20Automated%20Pool%20in%20VMware%20View%20manually/Connection_Settings.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.