VirtualBox 7.1 NS_ERROR_FAILURE (0x80004005)

Hello everyone,
I think a have the following error in VirtualBox since version 7.1


This error occurs when starting VB.
I would appreciate any help, thank you.

Well, the error says it all:

Document is empty.

Location:'/home/dimitar/.config/VirtualBox/VirtualBox.xml'
...

You have somehow emptied the file. Delete it, so VirtualBox creates a default one.

Thank you! The file was empty and I delete it. But how to restore my VMs?

If you don’t have a copy of the .xml file (nor do i have one of my VirtualBox :smiley: ) you’ll have to add again the virtual machines to VirtualBox. Notice! not create them again, just add them from wherever they are.

The .xml file contains VirtualBox’s settings, so you may have to configure again some settings if you had change them in the past.

By deleting the empty file the VM created a new *.xml.
The file looks normal, but my VMs are still missing them.

Do you have the latest version now? I had a very similar error with the last one.

I have this version:
pacman -Qi virtualbox
Name            : virtualbox
Version         : 7.1.2-0.1
Description     : Powerful x86 virtualization for enterprise as well as home use
Architecture    : x86_64
URL             : https://virtualbox.org/
Licenses        : GPL  custom:CDDL
Groups          : None
Provides        : None
Depends On      : curl  gcc-libs  glibc  liblzf  libpng  libtpms  libvpx  libx11  libxcursor  libxext
                  libxinerama  libxml2  libxmu  libxt  openssl  procps-ng  python  qt6-base  qt6-scxml
                  qt6-tools  sdl  shared-mime-info  zlib  VIRTUALBOX-HOST-MODULES
Optional Deps   : vde2: Virtual Distributed Ethernet support
                  virtualbox-guest-iso: Guest Additions CD image [installed]
                  virtualbox-ext-vnc: VNC server support
                  virtualbox-sdk: Developer kit
Required By     : virtualbox-ext-oracle
Optional For    : None
Conflicts With  : virtualbox-ose
Replaces        : virtualbox-ose
Installed Size  : 189.13 MiB
Packager        : Philip Mueller <philm@manjaro.org>
Build Date      : Sat Oct 5 12:43:47 2024
Install Date    : Thu Oct 10 17:16:20 2024
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Previous one didn’t work, but this does. I was digging for the errors, but didn’t come up with anything useful.

I’m on Stable branch, fully up to date.

Yes, I have the latest version. And the issue was resolved when delete .xml file. But i had to add all of my VMs manually.