Page 1 of 1

Unable to start v6.1.12 machine with NS_ERROR_FAILURE (0x80004005)

Posted: 24. Aug 2020, 14:08
by Verbomania
Hi

I've migrated my VMs to a new machine running Mint 20. I installed Virtualbox 6.1.12 r139181 from the Oracle repos. However, whenever I try to start a VM I get the ubiquitous ...

Code: Select all

Failed to open a session for the virtual machine Cxxxxx Pxx Mxxxx.

The virtual machine 'Cxxxxx Pxx Mxxxxx' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
These VMs were working without issue on the original machine running Mint 19.2 and Virtualbox 6.0.

I have checked the installed packages and there is no overlap that I can see between the Ubuntu packages and the Oracle ones

Code: Select all

Listing... Done
virtualbox-6.0/unknown 6.0.24-139119~Ubuntu~eoan amd64

virtualbox-6.1/unknown,now 6.1.12-139181~Ubuntu~eoan amd64 [installed]

virtualbox-dkms/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-dkms/focal 6.1.6-dfsg-1 amd64
virtualbox-ext-pack/focal-updates,focal-updates 6.1.10-1~ubuntu1.20.04.1 all
virtualbox-ext-pack/focal,focal 6.1.6-1 all
virtualbox-guest-additions-iso/focal-updates,focal-updates 6.1.10-1~ubuntu1.20.04.1 all
virtualbox-guest-additions-iso/focal,focal 6.1.6-1 all
virtualbox-guest-dkms-hwe/focal-updates,focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 all
virtualbox-guest-dkms-hwe/focal,focal 6.1.6-dfsg-2ubuntu20.04.1 all
virtualbox-guest-dkms/focal-updates,focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 all
virtualbox-guest-dkms/focal,focal 6.1.6-dfsg-1 all
virtualbox-guest-source-hwe/focal-updates,focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 all
virtualbox-guest-source-hwe/focal,focal 6.1.6-dfsg-2ubuntu20.04.1 all
virtualbox-guest-source/focal-updates,focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 all
virtualbox-guest-source/focal,focal 6.1.6-dfsg-1 all
virtualbox-guest-utils-hwe/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-guest-utils-hwe/focal 6.1.6-dfsg-2ubuntu20.04.1 amd64
virtualbox-guest-utils/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-guest-utils/focal 6.1.6-dfsg-1 amd64
virtualbox-guest-x11-hwe/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-guest-x11-hwe/focal 6.1.6-dfsg-2ubuntu20.04.1 amd64
virtualbox-guest-x11/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-guest-x11/focal 6.1.6-dfsg-1 amd64
virtualbox-qt/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-qt/focal 6.1.6-dfsg-1 amd64
virtualbox-source/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-source/focal 6.1.6-dfsg-1 amd64
virtualbox/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox/focal 6.1.6-dfsg-1 amd64
I have checked (and recompiled) the vbox drivers and they look to be correct ...

Code: Select all

# lsmod | grep vbox
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               487424  2 vboxnetadp,vboxnetflt
And there is nothing in the logs that indicates the nature of the problem ...

Code: Select all

# cat VBoxSVC.log 
00:00:00.000094 main     VirtualBox XPCOM Server 6.1.12 r139181 linux.amd64 (Jul 11 2020 09:09:53) release log
00:00:00.000095 main     Log opened 2020-08-24T12:01:39.455985000Z
00:00:00.000096 main     Build Type: release
00:00:00.000098 main     OS Product: Linux
00:00:00.000098 main     OS Release: 5.4.0-42-generic
00:00:00.000098 main     OS Version: #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
00:00:00.000113 main     DMI Product Name: MS-7C94
00:00:00.000117 main     DMI Product Version: 1.0
00:00:00.000121 main     Firmware type: UEFI
00:00:00.000200 main     Secure Boot: Disabled
00:00:00.000224 main     Host RAM: 64330MB (62.8GB) total, 56362MB (55.0GB) available
00:00:00.000226 main     Executable: /usr/lib/virtualbox/VBoxSVC
00:00:00.000226 main     Process ID: 47462
00:00:00.000227 main     Package type: LINUX_64BITS_UBUNTU_19_10
00:00:00.000968 main     IPC socket path: /tmp/.vbox-xxxxx-ipc/ipcd
00:00:00.102738 nspr-2   VirtualBox: object creation starts
00:00:00.102803 nspr-2   Home directory: '/home/xxxxx/.config/VirtualBox'
00:00:00.102945 nspr-2   Loading settings file "/home/xxxxx/.config/VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.105575 nspr-2   Successfully initialised host USB using sysfs
00:00:00.105941 nspr-2   HostDnsMonitor: initializing
00:00:00.106042 nspr-2   NAT: resolv.conf: nameserver 127.0.0.53
00:00:00.106047 nspr-2   NAT: resolv.conf: ignoring "options edns0"
00:00:00.106053 nspr-2   HostDnsMonitor: updating information
00:00:00.106063 nspr-2   HostDnsMonitor: old information
00:00:00.106065 nspr-2     no server entries
00:00:00.106068 nspr-2     no domain set
00:00:00.106069 nspr-2     no search string entries
00:00:00.106072 nspr-2   HostDnsMonitor: new information
00:00:00.106073 nspr-2     server 1: 127.0.0.53
00:00:00.106076 nspr-2     no domain set
00:00:00.106078 nspr-2     no search string entries
00:00:00.107586 nspr-2   VD: VDInit finished with VINF_SUCCESS
00:00:00.111843 nspr-2   Loading settings file "/home/xxxxx/VirtualBox VMs/Cxxxxx Pxx Mxxxx/Cxxxx Pxx Mxxxxx.vbox" with version "1.16-linux"
00:00:00.112986 nspr-2   VirtualBox: object created
00:00:03.636728 nspr-2   Launched VM: 469767760 pid: 47484 (0xb97c) frontend: GUI/Qt name: Cxxxxx Pxx Mxxxxx
00:00:04.136953 Watcher  ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={85632c68-b5bb-4316-a900-5eb28d3413df} aComponent={MachineWrap} aText={The virtual machine 'Cxxxxx Pxx Mxxxx' has terminated unexpectedly during startup with exit code 1 (0x1)}, preserve=false aResultDetail=0
So I'm not sure what to try next. Any help gratefully received.

Thanks

Re: Unable to start v6.1.12 machine with NS_ERROR_FAILURE (0x80004005)

Posted: 24. Aug 2020, 15:25
by scottgus1
Verbomania wrote:

Code: Select all

virtualbox-dkms/focal-updates 6.1.10-dfsg-1~ubuntu1.20.04.1 amd64
virtualbox-dkms/focal 6.1.6-dfsg-1 amd64
From what I have read, dkms hasn't been used by Virtualbox for several versions. Perhaps you need to purge everything related to Virtualbox then reinstall from https://www.virtualbox.org/wiki/Linux_Downloads ?

Re: Unable to start v6.1.12 machine with NS_ERROR_FAILURE (0x80004005)

Posted: 24. Aug 2020, 17:13
by Verbomania
Thanks. The dkms package is just one of the list of available packages. It's not installed and hasn't been.

The only installed package is the Oracle provided 6.1 package.

Re: Unable to start v6.1.12 machine with NS_ERROR_FAILURE (0x80004005)

Posted: 24. Aug 2020, 17:21
by scottgus1
Verbomania wrote:kms package is just one of the list of available packages. It's not installed
OK, I see the little {installed} tag now.

We'll have to wait for a Linux guru on this one, I'm a Windows guy. Only other thing I could suggest is a websearch on:

NS_ERROR_FAILURE "exit code 1" "Linux Hosts" site:forums.virtualbox.org

Mind the forum the web search results are in, the Windows and Mac Hosts forums also have "exit code 1" and these probably won't help you.

The Linux gurus will want a zipped guest vbox.log and/or the VboxSVC.log.

Re: Unable to start v6.1.12 machine with NS_ERROR_FAILURE (0x80004005)

Posted: 25. Aug 2020, 13:09
by Verbomania
I've spent the morning compiling the source for 6.1.12 and when I run that up all the VMs work fine.

This rather suggests that the Oracle package is broken or has a dependency or permissions issue but given the lack of feedback/logging it's difficult to know where the problem lies.