Skip to main content

Unable to power off VM from webclient and ESXCLI

 Unable to power off VM from webclient and ESXCLI


Issue:

  • Tried power off/kill/reset from webclient and it hangs
  • Tried from ESXI  CLI with:

[root@-s1:~] vim-cmd vmsvc/power.off 323

Powering off VM:

Power off failed

[root@-s1:~]



Solution:

  • SSH to ESXI
  • get world ID of your VM:

[root@:~] esxcli vm process list

VM1

   World ID: 2001025

   Process ID: 0

   VMX Cartel ID: 315952

   UUID: 42 0f 13 30 90 95 b7 41-65 2f d0 37 72 89 ba 0e

   Display Name: VM1


  • Forcefully power off VM:

-w =>world ID

--type=soft/hard/force

[root@1:~] esxcli vm process kill --type=hard -w=1412715

[root@1:~]




Comments

Popular posts from this blog

Deploy OVF fails Issues detected with selected template. Details: VALUE_ILLEGAL: No supported hardware versions among [virtualbox-2.2]; supported: [vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13, vmx-14, vmx-15, vmx-16, vmx-17, vmx-18, vmx-19].

 Error: While deploy using OVF file ,getting error as : Issues detected with selected template. Details: - -1:-1:VALUE_ILLEGAL: No supported hardware versions among [virtualbox-2.2]; supported: [vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13, vmx-14, vmx-15, vmx-16, vmx-17, vmx-18, vmx-19]. Solution: Open .OVF file and edit       <Info>Virtual hardware requirements for a virtual machine</Info>       <System>         <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>         <vssd:InstanceID>0</vssd:InstanceID>         <vssd:VirtualSystemIdentifier>zabbix_appliance-6.2.7</vssd:VirtualSystemIdentifier>         <vssd:VirtualSystemType> virtualbox-2.2 </vssd:VirtualSystemType>       </System> to  vmx-19       <Info>Virtual hardware requireme...

How to Open KVM oVirt Virtual machine console from windows

  To open virtual machine console from ovirt manager (KVM) 1. Download and Install ovirt-viewer from the below link:     https://virt-manager.org/download 2.From browser open ovirt engine and login to administrator portal 3.Right click the virtual machine and choose "Console" 4.Console file be getting created on your windows->downloads 5.Right click the file ->Properties and change the file "Opens With:" as a new program and browse till c:\program files->ovirt-viewer-> "Remote-Viewer" type 5.Now double click on the "Console.vv" file will open the console:

How to unlink a NIC from an esxi vSwitch

  List the vSwitches from ESXI using CLI:          esxcli network vswitch standard list  output example: vSwitch0    Name: vSwitch0    Class: cswitch    Num Ports: 1234    Used Ports: 7    Configured Ports: 128    MTU: 1500    CDP Status: listen    Beacon Enabled: false    Beacon Interval: 1    Beacon Threshold: 3    Beacon Required By:    Uplinks: vmnic2, vmnic0    Portgroups: VM Network, Now remove the wrong NIC from the switch0: esxcli network vswitch standard uplink remove --uplink-name=vmnic2 --vswitch-name=vSwitch0 To add a new network NIC to vSwitch: esxcli network vswitch standard uplink add --uplink-name=vmnic3 --vswitch-name=vSwitch2