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.
Thursday, December 2, 2021
vCloude Director Failed to Start
vCloud Director Web Login Failed
vCloud Director An Error Occurred During the Initialization
In this article, we are going to discuss an error message that is appearing during login to the vCloud Director web interface. We got the following error message when we are trying to take access to the vCloud Director interface.
"An error occurred during the initialization. Accessing the application through an unsupported public URL or poor connectivity might cause this error"
One snapshot for this error message is given below:-
The URL which we are using to access the vCloud Director provider interface, it must be registered to the vCloud Director. There is a property available in the vCloud Director which name is "webapp.allowed.origins". All the URL information that can use to access the vCloud Director Provider interface, is listed in this property. We have to have used these listed URLs if we want to take access to the vCloud Provider web interface. If we are using an URL address that is not registered or listed on the "webapp.allowed.origins" property then we can't take access to the vCloud Director Provider interface. In that case, that error message will appear. If we want to take access to the vCloud Director Provider interface using a new URL address, we must register or enlist it to the "webapp.allowed.origins" property. Only then it is possible to take access to the vCloud Director Provider interface using that new URL address.
To view the list of enlisted or registered URL information that is available on the "webapp.allowed.origins" property, we have to execute the below command on the vCloud Director appliance.
" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -l "
After executing this command, it will show us the enlisted or registered URL information that is currently available on the "webapp.allowed.origins" property.
If we want to update this "webapp.allowed.origins" property or we want to add a new URL address in this property, then we have to execute the below command on the vCloud Director appliance.
" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v <comma_separated_list_without_space> "
Here, this "<comma_separated_list_without_space>" means, we can add multiple URLs one by one using comma without using any space. Suppose we want to add the "test1.vlcoud.com", "test2.vcloud.com", and "test3.vcloud.com" to the "webapp.allowed.origins" property. Then our command will be as follows:-
" /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v test1.vlcoud.com,test2.vcloud.com,test3.vcloud.com "
That's it. After registering our new URL address, then we can use it to take access to the vCloud Director interface. No more errors will be shown.
Thank you.