关于VMware View 中composer在VC清单生成的replica无法删除

问题描述

原本用view administrator新建了一个自动桌面池,通过link clone创建了几台虚拟机。随后又想删除此pool,但操作中虚拟机能够自动删除,link clone的母版replica-50ac4933-3837-441a-9e67-0cda7194d5cf却未自动清掉。只好手动删,而这个母版replica-50ac4933-3837-441a-9e67-0cda7194d5cf只是composer生成虚拟机的时候用得虚拟机镜像,是被保护的,无法启动和删除等操作。

解决方法

查找官方KB,有个跟这个问题差不多,大概翻译一下内容,view composer期间通过view connection server在创建,管理和删除linked clones时,如果服务器操作中断,linked clones产生的孤立的文件夹、受保护的文件夹以及虚拟机对象仍然存在于VCenter中。可以通过unprotectentity 命令去删除受保护的linked clone对象。

 

命令行路径:VCenter的composer安装目录

32-bit servers: C:\Program Files\VMware\VMware View Composer

64-bit servers: C:\Program Files (x86)\VMware\VMware View Composer

 

基本命令:

sviconfig -operation=unprotectentity -VcUrl=https://<VirtualCenter address>/sdk -Username=<VirtualCenter account name> -Password=<VirtualCenter account password> -InventoryPath=/<Datacenter name>/[vm|host]/<folder name> -Recursive=[true|false] 

 

实例:

C:\Program Files (x86)\VMware\VMware View Composer>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 allow operations
(power on, delete, migrate) that can cause existing linked clones connected
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)\VMware\VMware View Composer>

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值