本次版本是view 5
问题描述:
原本用view administrator新建了一个自动桌面池,通过linkclone创建了几台虚拟机。随后又想删除此pool,但操作中虚拟机能够自动删除,linkclone的母版replica-50ac4933-3837-441a-9e67-0cda7194d5cf却未自动清掉。只好手动删,而这个母版replica-50ac4933-3837-441a-9e67-0cda7194d5cf只是composer生成虚拟机的时候用得虚拟机镜像,是被保护的,无法启动和删除等操作。
解决方法:
查找官方KB,有个跟这个问题差不多,大概翻译一下内容,view composer期间通过view connectionserver在创建,管理和删除linked clones时,如果服务器操作中断,linkedclones产生的孤立的文件夹、受保护的文件夹以及虚拟机对象仍然存在于VCenter中。可以通过unprotectentity 命令去删除受保护的linkedclone对象。
命令行路径:VCenter的composer安装目录
32-bit servers: C:Program FilesVMwareVMware View Composer
64-bit servers: C:Program Files (x86)VMwareVMware ViewComposer
基本命令:
sviconfig-operation=unprotectentity-VcUrl=https://<VirtualCenteraddress>/sdk -Username=<VirtualCenteraccount name>-Password=<VirtualCenter accountpassword> -InventoryPath=/<Datacentername>/[vm|host]/<foldername>-Recursive=[true|false]
实例:
C:Program Files (x86)VMwareVMware ViewComposer>sviconfig -operation=unprotectentity-VcUrl=https://localhost/sdk -Username=admin -Password=admin-InventoryPath="/DataCenter/vm/VMwareViewComposerReplicaFolder/replica-50ac4933-3837-441a-9e67-0cda7194d5cf"-Recursive=true
WARNING: Unprotecting VC managed entities will allowoperations
(power on, delete, migrate) that can cause existing linked clonesconnected
to those managed entities to fail to work correctly.
Establishing connection to the VC server.
VC server connection established successfully.
Looking for the entity on the VC server.
VirtualMachine found.
VirtualMachine with MoId vm-89 sucessfully unprotected.
SviConfig finished successfully.
Successfully unprotected entities: 1
Fail to unprotect entities: 0
C:Program Files (x86)VMwareVMware ViewComposer>
OK,去vcenter中发现可以对replica-50ac4933-3837-441a-9e67-0cda7194d5cf执行启动和删除等操作了。
问题解决!
PS:命令行很强大,需多研究!
官方KB链接:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1008704