Blog about networking tutorial and device configuration. Blog about various type of software troubleshooting.
Wednesday, December 15, 2021
ESXi Host Failed to Restart the Virtual Machine
ESXi Host Failed to Power Off the Virtual Machine
ESXi Host Kill VM
ESXi Host Shutdown VM Command Line
ESXi VM Not Shutting Down
ESXi Shutdown Virtual Machine Command
ESXi Cli VM Shut Down
Failed to Restart the Virtual Machine, cannot execute script
Failed to Power Off the Virtual Machine, Cannot Execute Script
vCenter VM Not Restarting
vCenter VM Not Shutting Down
A General System Error Occurred: Invalid Fault
From the vCenter when we are trying to shut down or restart a virtual machine, it is failed with the below error message.
A General System Error Occurred: Invalid Fault
One snapshot for this error message is given below.
If the vCenter server is failed to perform any task regarding the virtual machine then we can do it directly from the host where that virtual machine is residing. If we are not able to shut down or restart the virtual machine from the vCenter server for any reason then we can do it using the ESXi host.
We can take two types of access to the ESXi host. The first one is "Graphical Access" and the second one is "Command Line Access". Using the "vSphere Web Client", we can take access to the graphical mode. To work on the command line mode, we can use "ESXi Shell" or we can make an SSH connection from any other network computer.
But, sometimes it will also fail to perform any operation regarding virtual machines from the graphical access. That's why it is good practice to work with command line mode for any VM operation.
In this tutorial, we will stop a VM from the command line mode. We will stop the VM by killing that VM process. Three types of killing methods are available for the virtual machine. We can use any of the methods. By chance, the "Soft" and "Hard" method is failed to kill that VM process then we should use the "Force" method. It will definitely work.
To view the virtual machine list that is running on this host, we will use the below command.
esxcli vm process list
This command will output just like as the below. We will use the "World ID" number to identify the specific VM.
Now we will execute the VM process killing command using that "World ID" number. The command structure is given below.
esxcli vm process kill --type=[soft,hard,force] --world-id=[world-number]
One example for the VM process killing command is given below.
esxcli vm process kill --type=force --world-id=2188667
After executing this command, that virtual machine will be stopped whose "world-id" number is "2188667".
That's all. Using this way, we can turn off or shut down any virtual machine that can't be stopped from the vCenter server.
Monday, December 13, 2021
Mikrotik EoIP Tunnel Step by Step
Tuesday, December 7, 2021
NSX Controller Failed to Start the File System Check
NSX Controller Automatically Boot Emergency Mode
NSX Controller Booting Emergency Mode
Friday, December 3, 2021
The Process Cannot Access the File Because Another Process has Locked a Portion of the File
VMware Failed to Start the Virtual Machine
VMware Workstation Module Disk Power on Failed
Sometimes, we failed to start or power on our virtual machines and it displays the below error message.
"The process cannot access the file because another process has locked a portion of the file."
In this tutorial, we will know how to resolve that issue. Every virtual machine is made of some configuration files and those files are stored in that virtual machine's home directory. If any of the configuration files are being blocked by the VMware Workstation program then that virtual machine will fail to start and will show up the below error message.
If any configuration files are being blocked then a new folder will be created with that file name. That folder name will have an extension called ".lck". For example, the folder name will be " TestVM.vmx.lck ". One snapshot is given below as an example. Those are all the lock folders that are created with the same file name that is being locked by the program.
To resolve this issue we have to have removed or deleted that locked folder from the virtual machine home directory. That's it. Now the virtual machine should run without any issues. If you find any locked files with the .lck extension like the locked folder that also have to be deleted.
If you have doubts about the virtual machine home directory path or the locked folder or file path then you can find it from that error message.
That's all. Please make sure that if any lock files (filename with .lck extension) are available those are also deleted.
