VMWare ESXi: PANIC: Error while reading file: -3, state.tgz
Translation of the original in Catalan. Read it in: CatalàCastellano
After the windy days we are having at home these days and after one of the UPSs, due to the power surges and drops, ended up more hung than a whip, the ESXi server has been left knocked out and would not boot. That is, as always simple and automatic things end up giving an incomprehensible error for which the only thing you could do was search the internet to solve it. The error:
PANIC: Error while reading file: -3, state.tgz
Thanks to the VMWare forums I found a
thread
that explained it clearly:
. In a few words and summarising we boot the system again but with the ESXi installation CD and we tell it that we want to repair the system. Then if we are careful people we will have a backup of the VMWare Infraestructure configuration that we will be able to recover through the administration console. But if like in my case you have no backup, the thing has a second problem. Recovering the machines we have on the VMFS which according to what it told us in the recovery process has not been deleted and therefore contains the virtual machines we have set up.
Well then, in this case in the VMWare forums I found an approximate solution but that for the case allowed us to guess the solution, what it aims to explain is the solution for
how to delete a virtual machine after repairing the system
. So, once we are inside the VMWare Infraestructure administration console that no longer has our virtual machines because we have just repaired the system, what we have to do now is go to the
'Configuration' tab
, then inside the
'Harware' section
where it says
'Storage'
. Now on the right we will see the
'datastore1' we click with the right mouse button and in the contextual menu we press 'Browse Datastore...'
.
Here we should already see the list of directories that contain our virtual machines, once inside the directory of the machine we want to recover we locate the
file with the '.vmx' extension
, right mouse button on the file and we select the option
'Add to inventory'
. Now you should already see the machine inside the 'Virtual Machines' tab of the VMWare Infraestructure. The rest of the configurations you had made inside the VMWare infraestructure have been lost. That is, you have to do them again. For example, in what order the machines are powered on, resources reserved for the machines and all the rest of the settings. But well, compared to losing all the machines that is nothing. Right?
I have to admit that despite the blowout the whole thing made I am very happy with the simplicity it has had when it came to being solved. I was expecting to suffer much more. Every day I am more convinced of the great work the VMWare people do, a pity that it is all so proprietary and closed.