RT:如何修复VMware View Composer代理初始化状态错误(16)

相信有朋友在部署VMware虚拟机时,碰到过如下图的错误。

How to fix VMware View Composer agent initialization state error (16)_第1张图片

or

How to fix VMware View Composer agent initialization state error (16)_第2张图片

是什么原因导致的呢,请看下面的英文介绍以及附有中文翻译。

If your running any sort of demo deployment of VMware View you may find that you receive “VMware View Composer agent initialization state error (16): Failed to activate license” when creating a pool.

如果运行任何种类的VMware View的演示部署,您可能会发现在创建池时收到“VMware View Composer代理初始化状态错误(16):无法激活许可证”。


This error will occur during the quick prep phase as quick prep and VMware View only support KMS and not MAK activations. This can pose a problem when running a small demo environment or home lab as you will not be able to complete the quick prep process and pool creation will fail at the final hurdle.

一般这个问题会发生在桌面池链接克隆生成虚拟机的过程中,由于VMware View仅支持KMS而不是MAK激活的虚拟机模板,这可能会在运行小演示环境或家庭实验室时出现问题,因为你无法完成快速准备过程,并且桌面池会因该错误创建失败。


However all is not lost! With an addition of a registry key you can skip the license check phase within quick prep and the  creation will complete. Ideally you would add this registry key to the parent vm before creating the snapshot and pool, however for the forgetful amongst us you can also add the key through group policy preferences.

该问题并不是不能解决的,可以通过添加注册表项,你可以跳过快速准备阶段中的许可证检查阶段,并且完成创建。理想情况下,你可以在创建快照和桌面池之前将此注册表项添加到父vm;不过对于那些马大哈(马虎之人),还可以通过组策略首选项添加密钥。


Adding the key to group policy preferences also works for a pool that has already been created and has received this error which means you don’t have to trash the pool and recreate it again which is a real timesaver.

将密钥添加到组策略首选项也适用于已经创建并且已收到此错误的池,这意味着你不必删除该桌面池并再次重构它也是可以的。


Add the key by creating a new GPO (or an existing one if appropriate) on your VMware View desktop OU , you have created a separate OU for your View desktops right?

通过在VMware View桌面OU上创建新的GPO(如果适用,现有的GPO)来添加密钥,你是否为View桌面创建了单独的OU?


Then navigate to “Computer Configuration\Preferences\Windows Settings\Registry”  right click and select “New\Registry Item”.

然后导航到“计算机配置\首选项\ Windows设置\注册表”,右键单击并选择“新建\注册表项”。

wKioL1g-pNSiIiYxAAAQpmlPvf8115.png


Enter the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmware-viewcomposer-ga and match the settings as per the screenshot below.

How to fix VMware View Composer agent initialization state error (16)_第3张图片


Then OK your way out of the GPMC.

All that is left to be done is reboot the VM’s within the pool and wait a few minutes for the quick prep to complete correctly.

原文链接