Page 1 of 1

NS_ERROR_FAILURE MachineWrap

Posted: 13. Jul 2024, 19:19
by Fulgurance
Hi guys, I am actually working on my Linux distribution. I finished to build VirtualBox from source. The app start fine. But when I try to run a virtual machine, I have got always the same error, it's just impossible to start any VM.

Error:

Code: Select all

VM Name: Test

The virtual machine 'Test' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0X80004005)
Component:
MachineWrap
Interface:
IMachine {300763af-5d6b-46e6-aa96-273eac15538a}
Loaded modules:

Code: Select all

ism [ ~ ]$ lsmod
Module                  Size  Used by
vboxdrv               659456  0
snd_intel8x0           45056  2
snd_ac97_codec        196608  1 snd_intel8x0
ac97_bus               12288  1 snd_ac97_codec
snd_pcm               180224  2 snd_intel8x0,snd_ac97_codec
snd_timer              45056  1 snd_pcm
snd                   126976  8 snd_intel8x0,snd_timer,snd_ac97_codec,snd_pcm
e1000                 147456  0
soundcore              12288  1 snd
efivarfs               24576  1
Version:

Code: Select all

Port: @VirtualizationSoftwares-Main
Name: VirtualBox
Description: Powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use
Available(s) architecture(s): x86_64
Website: https://www.virtualbox.org/
Available(s) Version(s): 7.0.18
Installed Version(s): 
        | 7.0.18 { Sdl2 }
Unique dependencies setted: None
Current options setted: 
[ ] Sdl2: Enable sdl2 support
Current local patches: None
SDL support was not enabled for that build. You just need to be aware that this is run under a virtual machine (for test reason of course)

Let me know if you need more information

Re: NS_ERROR_FAILURE MachineWrap

Posted: 12. Aug 2024, 13:38
by Fulgurance
So guys I find why it fail to start. Apparently it's when I compile with hardening support. Otherwise VirtualBox start the VM properly.

Someone know if there is something to patch or to configure when VirtualBox is build with hardening support ?

Re: NS_ERROR_FAILURE MachineWrap

Posted: 13. Aug 2024, 19:29
by Fulgurance
I fixed the issue ! First I had to rebuild VirtualBox and fix the hardcoded path into lib64 instead of the symlink I am using.
And I had as well to change the permissions for VirtualBoxVM: chmod 4755 /usr/lib64/virtualbox/VirtualBoxVM.

I don't want to be harsh, but the wiki is a bit poor to be honest...