Snapshot issue.
Issue : An error occured while restarting the vm after removing the snapshot the server went to hung state.
When You are experiencing these issues:
•You cannot power off an ESXi hosted virtual machine.
•A virtual machine is not responsive and cannot be stopped or killed.
Work Around:
1 ) Login to ESx host through the console.
2) Get the Vmid of the virtual machine. Run the command:
vim-cmd vmsvc/getallvms
3) Get a list of tasks associated with a specific virtual machine Run the command:
vim-cmd vimsvc/task_list
4) To get information about a particular task's status, run the command
vim-cmd vimsvc/task_info <task identifier>
5)To determine if the virtual machine process is running on the ESXi host, run this command:
ps | grep vmx
6) If the vmx process is listed, terminate the process using this command:
kill ProcessID
7) wait for 30 sec, If it is not terminated, run this command:
kill -9 ProcessID
8) To get the current state of the VM Run the command:
vim-cmd vmsvc/power.getstate VMID
9)To Power off the server Run the command:
vim-cmd vmsvc/power.off VMID
10) Even through the above command if you are not able to stop or start the VM.
Restart the management agents by running the command
/sbin/services.sh restart
11)To unregister a virtual machine from a command line on an ESXi host:
vim-cmd vmsvc/unregister VMID
12)To register a virtual machine from a command line on an ESXi host:
vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx
13) To lists out all of the VM machines running on your host
vm-support -x
14) To kill the VM:
vm-support -X <wid>
Issue : An error occured while restarting the vm after removing the snapshot the server went to hung state.
When You are experiencing these issues:
•You cannot power off an ESXi hosted virtual machine.
•A virtual machine is not responsive and cannot be stopped or killed.
Work Around:
1 ) Login to ESx host through the console.
2) Get the Vmid of the virtual machine. Run the command:
vim-cmd vmsvc/getallvms
3) Get a list of tasks associated with a specific virtual machine Run the command:
vim-cmd vimsvc/task_list
4) To get information about a particular task's status, run the command
vim-cmd vimsvc/task_info <task identifier>
5)To determine if the virtual machine process is running on the ESXi host, run this command:
ps | grep vmx
6) If the vmx process is listed, terminate the process using this command:
kill ProcessID
7) wait for 30 sec, If it is not terminated, run this command:
kill -9 ProcessID
8) To get the current state of the VM Run the command:
vim-cmd vmsvc/power.getstate VMID
9)To Power off the server Run the command:
vim-cmd vmsvc/power.off VMID
10) Even through the above command if you are not able to stop or start the VM.
Restart the management agents by running the command
/sbin/services.sh restart
11)To unregister a virtual machine from a command line on an ESXi host:
vim-cmd vmsvc/unregister VMID
12)To register a virtual machine from a command line on an ESXi host:
vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx
13) To lists out all of the VM machines running on your host
vm-support -x
14) To kill the VM:
vm-support -X <wid>
Comments
Post a Comment