https://blog.csdn.net/h106140873/article/details/100191965

 

esxcli vm process list    查看正在运行的虚拟机
记下world id 
esxcli vm process kill --type= [soft,hard,force] --world-id= WorldNumber
esxcli vm process kill -t [ soft,hard,force] -w WorldNumber
esxcli vm process kill --type=force --world-id=68762
esxcli vm process kill -t force -w 68762

-t,--type 执行类型

soft: 执行正常关机,调用vmearetool执行关机

hard: 执行立即关机

force:强制断电关机

-w,--world-id

这里指定虚拟机的World ID号了 

这样虚拟机就可以在控制台上进行操作了,问题处理完毕

以下是官方的KB说明,还有其他的方式进行虚拟机结束

https://kb.vmware.com/s/article/1014165


因不小心把 磁盘被其他虚拟机引用;以致虚拟机不能启动;
https://kb.vmware.com/s/article/1007969
错误提示
Power On virtual machine:The parent virtual disk has been modified since the child was created. 
The content ID of the parent virtual disk does not match the corresponding parent content ID in the child

See the error stack for details on the cause of this problem.
Time: 2023/4/14 11:30:52
Target: test1
ESXi: 192.168.31.5
Error Stack
Failed to start the virtual machine.
Module DiskEarly power on failed.
Cannot open the disk '/vmfs/volumes/5e715b73-fd285163-fe33-549f350e3192/test1/arpl-000001.vmdk' or one of the snapshot disks it depends on.
The parent virtual disk has been modified since the child was created. 
The content ID of the parent virtual disk does not match the corresponding parent content ID in the child

解决方法:测试成功
如下蓝色字要对应一致,
Example descriptor file for a base disk:
examplevm.vmdk:
# Disk DescriptorFile
version=1
CID= 7b7644b2
parentCID=ffffffff
createType="vmfs"
# Extent description
RW 20971520 VMFS "examplevm-flat.vmdk"

# The Disk Data Base
#DDB
ddb.toolsVersion = "0"
ddb.adapterType = "lsilogic"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "1305"
ddb.uuid = "60 00 C2 9f ae de ba e9-95 4e a7 a6 4e 95 c1 c1"
ddb.virtualHWVersion = "4"
	

Example descriptor file for a delta disk
examplevm-000001.vmdk:

# Disk DescriptorFile
version=1
CID= 69a1c662
parentCID= 7b7644b2
createType="vmfsSparse"
parentFileNameHint="examplevm.vmdk"

# Extent description
RW 20971520 VMFSSPARSE "examplevm-000001-delta.vmdk"

# The Disk Data Base
#DDB

ddb.toolsVersion = "7302"