Another task is already in progress.
VMware vSphere ESXi 8.0.x
VMware vSphere ESXi 7.0.x
VMware ESX 4.0.x
VMware vSphere ESXi 6.5
VMware vSphere ESXi 6.7
VMware ESX Server 3.0.x
VMware ESXi 4.0.x Embedded
VMware ESXi 3.5.x Embedded
VMware ESXi 3.5.x Installable
VMware ESX Server 3.5.x
VMware vSphere ESXi 5.0
VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.1
VMware vSphere ESXi 7.0.0
VMware vSphere ESXi 6.0
VMware ESX 4.1.x
VMware ESXi 4.0.x Installable
vim-cmd vimsvc/task_list
(ManagedObjectReference) [
'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887',
'vim.Task:haTask-pool21-vim.ResourcePool.updateConfig-33252',
'vim.Task:haTask-pool22-vim.ResourcePool.updateConfig-33253',
'vim.Task:haTask-pool3-vim.ResourcePool.updateConfig-33254',
'vim.Task:haTask-pool5-vim.ResourcePool.updateConfig-33255',
'vim.Task:haTask-pool6-vim.ResourcePool.updateConfig-33256',
'vim.Task:haTask-pool7-vim.ResourcePool.updateConfig-33257',
'vim.Task:haTask-pool8-vim.ResourcePool.updateConfig-33258',
'vim.Task:haTask-pool10-vim.ResourcePool.updateConfig-33260'
]
Vmid
of the virtual machine. Run the command:vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
112 VM-1 [Datastore] VM-3/VM-3.vmx winLonghornGuest vmx-04
128 VM-2 [Datastore] VM-3/VM-3.vmx winXPProGuest vmx-04
144 VM-3 [Datastore] VM-3/VM-3.vmx winNetStandardGuest vmx-04
Vmid
, you can then get a list of tasks associated with a specific virtual machine. Run the command:vim-cmd vmsvc/get.tasklist VMID
(ManagedObjectReference) [
'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887'
]
haTask-112-vim.VirtualMachine.createSnapshot-3887
vim-cmd vimsvc/task_info task_identifier
task_identifier
is the string recorded in step 6.(vim.TaskInfo) {
dynamicType = <unset>,
key = "haTask-112-vim.VirtualMachine.createSnapshot-3887",
task = 'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887',
description = (vmodl.LocalizableMessage) null,
name = "vim.VirtualMachine.createSnapshot",
descriptionId = "VirtualMachine.createSnapshot",
entity = 'vim.VirtualMachine:112',
entityName = "deploy-test",
state = "running",
cancelled = false,
cancelable = false,
error = (vmodl.MethodFault) null,
result = <unset>,
progress = 15,
reason = (vim.TaskReasonUser) {
dynamicType = <unset>,
userName = "root",
},
queueTime = "2012-11-28T01:29:35.233835Z",
startTime = "2012-11-28T01:29:35.234891Z",
completeTime = <unset>,
eventChainId = 2936866,
changeTag = <unset>,
parentTaskKey = <unset>,
rootTaskKey = <unset>,
}
vim-cmd vimsvc/task_list
(ManagedObjectReference) [
'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887',
'vim.Task:haTask-pool21-vim.ResourcePool.updateConfig-33252',
'vim.Task:haTask-pool22-vim.ResourcePool.updateConfig-33253',
'vim.Task:haTask-pool3-vim.ResourcePool.updateConfig-33254',
'vim.Task:haTask-pool5-vim.ResourcePool.updateConfig-33255',
'vim.Task:haTask-pool6-vim.ResourcePool.updateConfig-33256',
'vim.Task:haTask-pool7-vim.ResourcePool.updateConfig-33257',
'vim.Task:haTask-pool8-vim.ResourcePool.updateConfig-33258',
'vim.Task:haTask-pool10-vim.ResourcePool.updateConfig-33260'
]
Vmid
of the virtual machine. Run the command:vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
112 VM-1 [Datastore] VM-3/VM-3.vmx winLonghornGuest vmx-04
128 VM-2 [Datastore] VM-3/VM-3.vmx winXPProGuest vmx-04
144 VM-3 [Datastore] VM-3/VM-3.vmx winNetStandardGuest vmx-04
Vmid
, you can then get a list of tasks associated with a specific virtual machine by running the command:vim-cmd vmsvc/get.tasklist VMID
(ManagedObjectReference) [
'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887'
]
haTask-112-vim.VirtualMachine.createSnapshot-3887
vim-cmd vimsvc/task_info task_identifier
task_identifier
is the string recorded in step 6.(vim.TaskInfo) {
dynamicType = <unset>,
key = "haTask-112-vim.VirtualMachine.createSnapshot-3887",
task = 'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887',
description = (vmodl.LocalizableMessage) null,
name = "vim.VirtualMachine.createSnapshot",
descriptionId = "VirtualMachine.createSnapshot",
entity = 'vim.VirtualMachine:112',
entityName = "deploy-test",
state = "running",
cancelled = false,
cancelable = false,
error = (vmodl.MethodFault) null,
result = <unset>,
progress = 15,
reason = (vim.TaskReasonUser) {
dynamicType = <unset>,
userName = "root",
},
queueTime = "2012-11-28T01:29:35.233835Z",
startTime = "2012-11-28T01:29:35.234891Z",
completeTime = <unset>,
eventChainId = 2936866,
changeTag = <unset>,
parentTaskKey = <unset>,
rootTaskKey = <unset>,
}