[SOLVED] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
alekcacko
Posts: 4
Joined: 27. Mar 2020, 15:36

[SOLVED] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by alekcacko »

I just installed VirtualBox-6.1 for Ubuntu 18.04 using the provided DEB package

I get the following error when trying to start a new VM:

Code: Select all

The virtual machine 'TestVirtBox' 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}
My system is Ubuntu 18.04 with kernel

Code: Select all

uname -a
Linux <hostname> 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
VirtualBox log VBOXSVC.log is given in attachment

EDIT: The problem is solved.

Basically, I had to make the user root as owner of the /usr folder. For some reason, the /usr folder's owner and group was my own regular user instead of root.

Code: Select all

sudo chown root:root /usr 
sudo chown root:root /usr/lib 
sudo chown root:root /usr/lib/virtualbox
The same solution is provided on the following StackOverflow question: https://stackoverflow.com/questions/446 ... time-error
Attachments
VBoxSVC.log
(3.59 KiB) Downloaded 90 times
Last edited by alekcacko on 1. Apr 2020, 21:30, edited 1 time in total.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by scottgus1 »

Please zip and post a guest vbox.log, using the forum's Upload Attachment tab.
alekcacko
Posts: 4
Joined: 27. Mar 2020, 15:36

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by alekcacko »

I am unable to find that file, where is it?

EDIT: Right-click on the VM -> Show Logs is saying that there aren't any logs.

The VM I am trying to start is newly created.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by scottgus1 »

I regret I don't know enough about Linux hosts. Googling:

Linux host "terminated unexpectedly during startup with exit code 1" site:forums.virtualbox.org

led to some posts that might help:
viewtopic.php?f=7&t=92764
viewtopic.php?f=7&t=91064
viewtopic.php?f=7&t=91436
viewtopic.php?f=7&t=95137

the idea being that if a gust vbox.log is not made, there is something fundamentally bunged up with Virtualbox or something else that Virtualbox was talking to changed.

Completely uninstall & purge Virtualbox and the Extension Pack, then reinstall from https://www.virtualbox.org/wiki/Linux_Downloads (not from your distro's repositories, those are forks we don't support here).
Beli99
Posts: 1
Joined: 30. Mar 2020, 10:12

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by Beli99 »

Hallo,
How can I delete? (Linux Beginner)
My log:
VirtualBox VM 5.2.34_Ubuntu r133883 linux.amd64 (Oct 23 2019 13:26:08) release log
00:00:00.638547 Log opened 2020-03-30T07:52:39.302491000Z
00:00:00.638548 Build Type: release
00:00:00.638552 OS Product: Linux
00:00:00.638554 OS Release: 4.15.0-91-generic
00:00:00.638556 OS Version: #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020
00:00:00.638597 DMI Product Name: ET1831
00:00:00.638609 DMI Product Version:
00:00:00.638681 Host RAM: 3000MB (2.9GB) total, 1487MB available
00:00:00.638686 Executable: /usr/lib/virtualbox/VirtualBox
00:00:00.638686 Process ID: 4376
00:00:00.638687 Package type: LINUX_64BITS_GENERIC (OSE)
00:00:00.642144 ERROR [COM]: aRC=VBOX_E_FILE_ERROR (0x80bb0004) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={VM cannot start because the saved state file '/home/bernd/VirtualBox VMs/Windows 7/Snapshots/2020-03-29T08-48-01-513118000Z.sav' is invalid (VERR_FILE_NOT_FOUND). Delete the saved state prior to starting the VM}, preserve=false aResultDetail=0
00:00:00.642509 GUI: Aborting startup due to power up issue detected...
00:00:00.645291 GUI: UIMediumEnumerator: Medium-enumeration finished!

Thank you
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by scottgus1 »

alekcacko
Posts: 4
Joined: 27. Mar 2020, 15:36

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by alekcacko »

scottgus1 wrote:I regret I don't know enough about Linux hosts. Googling:

Linux host "terminated unexpectedly during startup with exit code 1" site:forums.virtualbox.org

led to some posts that might help:
viewtopic.php?f=7&t=92764
viewtopic.php?f=7&t=91064
viewtopic.php?f=7&t=91436
viewtopic.php?f=7&t=95137

the idea being that if a gust vbox.log is not made, there is something fundamentally bunged up with Virtualbox or something else that Virtualbox was talking to changed.

Completely uninstall & purge Virtualbox and the Extension Pack, then reinstall from https://www.virtualbox.org/wiki/Linux_Downloads (not from your distro's repositories, those are forks we don't support here).
I have already tried reinstalling Virtualbox from Linux_Downloads several times, still doesn't work. I have also installed virt-manager, qemu and libvirt. Does it have something to do with it?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by scottgus1 »

If qemu involves KVM, then KVM kills Virtualbox.
alekcacko
Posts: 4
Joined: 27. Mar 2020, 15:36

Re: [PROBLEM] Failed to open a session for the virtual machine on host Ubuntu 18.04 for any VM

Post by alekcacko »

I tried running the command virtualboxvm and this is the output:

Code: Select all

$ virtualboxvm
VirtualBoxVM: Error -610 in supR3HardenedMainInitRuntime!
VirtualBoxVM: dlopen("/usr/lib/virtualbox/VBoxRT.so",) failed: <NULL>

VirtualBoxVM: Tip! It may help to reinstall VirtualBox.
scottgus1 wrote:If qemu involves KVM, then KVM kills Virtualbox.
If so, what solution do you propose?
Post Reply