VMware Cloud Community
hafeezpashamoha
Enthusiast
Enthusiast

Unable to poweroff or connect Virtual Machine

hello there,

I have a vm running on esxi4.1 host. This morning, i manage to mount an ISO to copy files and the task hasn't completed.

Now i cannot poweroff, reset, shutdown or do anything. It keeps throwing me out with an error "another task is already in progress". see attached error.

is there a way, i can stop or kill the task as i can't find a way to cancel on vCenter??? appreciate your advise.

0 Kudos
9 Replies
hafeezpashamoha
Enthusiast
Enthusiast

i cannot migrate it either, see below message

"virtual machine is configured to use a device that prevents the operation: Device 'DD/DVD drive 1' is a connected device with remote backing".

0 Kudos
AWo
Immortal
Immortal

That you can't migrate the host is due to the connected ISO file. Can you log on and restart it from inside the guest OS?

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
hafeezpashamoha
Enthusiast
Enthusiast

no , unfortunately, i can't connect either.

see my attached screenshot on this discussion, it comes with an error

"unable to connect to the MKS: theere is no vmware process running for config file /vmfs/volumes/xxxxx/machinename/machinename.vmx

0 Kudos
AWo
Immortal
Immortal

Do you have something running like teh HP SIM agents on the ESXi box? If so, stop and disable them....

Try to remove the guest from the inventory (!not from the disk!) and readd it by browsing the datastore and using its .vmx file (right click on it and choose to add it again to the inventory).

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
hafeezpashamoha
Enthusiast
Enthusiast

I can't logon to console itself so no way, i will to console guest OS.

Is there a way, i can identify process holding lock for this VM and stop.

0 Kudos
AWo
Immortal
Immortal

I meant to use the vSphere client and to remove and readd the guest from the vSphere inventory. That should give you the console back.

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
hafeezpashamoha
Enthusiast
Enthusiast

"remove from inventory" option is grayed out..:(

0 Kudos
Ramverma
Enthusiast
Enthusiast

You have to poweroff before removing from Inventory to resolve the MKF issue.

Point out on which ESXi server your virtual machine is running. Login to the technical support mode using putty or ILO/DRAC.

run the following command to poweroff the virtual machine.

vim-cmd vmsvc/getallvms
Lists all vm's running on hypervisor and provides vmid

note down the Virtual machine vmid which you want to poweroff.

run the below command to poweroff
vim-cmd vmsvc/power.off vmid

Here vmid is vmid of your virtual machine. suppose your virtual machine vmid is 30 then run

vim-cmd vmsvc/power.off 30

Now remove the virtual machine from inventory and re-add it.

0 Kudos
umarzuki
Enthusiast
Enthusiast

i had similar issue when win7 pro from linked-clone won't get deleted.

~ # vim-cmd vmsvc/power.off 448
Powering off VM:
Power off failed

what else could've prevented this?

0 Kudos