Page 1 of 2
[Solved] VM start failed [E_FAIL (0x80004005)]
Posted: 9. Mar 2022, 23:43
by martin123
Hi all,
I get this error message when I start the VM:
---
Failed to open a session for the virtual machine Name.
The virtual machine 'Name' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'M:\VirtualBox VMs\Name\Logs\VBoxHardening.log'.
Result Code: E_FAIL (0x80004005)
Component: MachineWrap
Interface: IMachine {93859c64-b5bc-4218-a960-4em27c3513dk}
---
Please, how to fix it?
Thanks,
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 10. Mar 2022, 01:26
by scottgus1
Please zip and post that log file, using the forum's Upload Attachment tab.
Also see
Diagnosing VirtualBox Hardening Issues
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 10. Mar 2022, 02:06
by martin123
Thanks for your reply,
here is the VBoxHardening.log file
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 10. Mar 2022, 23:23
by scottgus1
I'm afraid this one puzzles me. The posted log has an exit code of 0. It should have been 1 according to the posted error message. When the hardening exit code is 0 as logged, there wouldn't be a hardening error message and the VM would start.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 11. Mar 2022, 18:15
by martin123
Hi @scottgus1, Hi all,
What's the solution to access VMs,
Thanks,
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 12. Mar 2022, 02:00
by scottgus1
Is the error message still the same as in the first post? The attached log had a different exit code saying there was no error.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 12. Mar 2022, 03:07
by goldempo
scottgus1 wrote:Is the error message still the same as in the first post? The attached log had a different exit code saying there was no error.
Yes it was.
Try using the other start option, that appear from the falling menu.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 12. Mar 2022, 11:45
by fth0
Please try the following:
1. Open a Windows Command Prompt and start the VM with the following commands:
Code: Select all
cd "C:\Program Files\Oracle\VirtualBox"
VirtualBoxVM --startvm "VM name"
Check if the command output exhibits more detailed error messages and post them.
2. Compare the current wall clock time to the date and time of the
VBoxHardening.log and
VBox.log files to check if they were created at all, and if so, post a zip file containing them.
3. Post a zip file containing the contents of the
C:\Users\<username>\.VirtualBox folder (note the ".").
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 13. Mar 2022, 10:36
by martin123
Hi All,
Thank you for your replies.
---
I successfully accessed the VM by choosing the "Deatachable Start" option. But, every time I have to select this option to open VM.
It's better to make a "Normal Start" working again.
---
On the other hand, I executed the commands:
Code: Select all
cd "C:\Program Files\Oracle\VirtualBox"
VirtualBoxVM --startvm "VM name"
But there are no outputs.
Concerning to compare the current wall clock time to the date and time of the VBoxHardening.log and VBox.log file, I don't manage to do so, I don't found this information.
Otherwise, I post here the VirtualBox zip folder.
---
Thanks,
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 13. Mar 2022, 11:46
by fth0
martin123 wrote:On the other hand, I executed the commands:
Code: Select all
cd "C:\Program Files\Oracle\VirtualBox"
VirtualBoxVM --startvm "VM name"
But there are no outputs.
Just to be sure: You did replace the "VM name" in the command?
martin123 wrote:Concerning to compare the current wall clock time to the date and time of the VBoxHardening.log and VBox.log file, I don't manage to do so, I don't found this information.
If you meant to say that you didn't know where to find the files, take a look inside the e.g.
M:\VirtualBox VMs\Nectar\Logs\ folder. If you meant to say that there were no files created, please say so. In the latter case, please provide a zip file containing the
M:\VirtualBox VMs\Nectar\Nectar.vbox\ file instead.
General questions:
What type of device is "M:"? Is it constantly available?
Did you do something special regarding USB devices?
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 13. Mar 2022, 14:40
by martin123
Yes, I replaced the "VM name" in the command, see the screenshot.
Concerning the wall clock time, I meant, I can't find and check the information inside the file. I provide here the "vbox" zip file.
The type of "M" device is an external hard drive.
I didn't do something special regarding USB devices.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 13. Mar 2022, 16:26
by fth0
Thanks for the VM configuration file, which helped to rule out some possible problems (e.g. USB filters).
martin123 wrote:Concerning the wall clock time, I meant, I can't find and check the information inside the file.
Ah, that's probably a misunderstanding.

Let me elaborate:
The error you're experiencing happens very early, and therefore it's possible that no new
VBoxHardening.log and
VBox.log files are created. In consequence, you would find only files from previous VM runs inside the
M:\VirtualBox VMs\Nectar\Logs\ folder. I suggested to compare the timestamp (date and time) of the files (not their contents) in the host's filesystem to your wall clock time. Alternatively, you could delete the log files before trying to start the VM.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 14. Mar 2022, 13:55
by martin123
I emptied the Logs folder and deleted all the files inside, but I still get the same error message when starting the VM.
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 14. Mar 2022, 20:12
by fth0
Of course you got the same error message. But did you get new log files or not?
Re: VM start failed [E_FAIL (0x80004005)]
Posted: 15. Mar 2022, 10:39
by martin123
Yes, I got a new log file: VBoxHardening.log