Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555582 - app-emulation/virtualbox-4.3.28 upgrade aborts with permission problems and forgets settings
Summary: app-emulation/virtualbox-4.3.28 upgrade aborts with permission problems and f...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 21:28 UTC by Mike Mattie
Modified: 2017-08-31 18:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vbox-start.log (vbox.log,5.71 KB, text/plain)
2015-08-17 12:00 UTC, Andrey Aleksandrovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Mattie 2015-07-21 21:28:45 UTC
VirtualBox upgrade to 4.3.28 broke totally. Some VM configurations were completely reset.

VirtualBox failed to run with error:

"NS_ERROR_FACTORY_NOT_REGISTERED" and refused to create a session.

a google search turned up this entry from the VirtualBox site:

https://www.virtualbox.org/ticket/3568

this indicates a permissions problem.

Fix: 
  1. change  /usr/lib64/virtualbox/VBox to setuid root.
  2. Run setuid and launch a vm ( launching may not be necessary )
  3. disable setuid root.
  4. run normally.

It seems that virtualbox is able to fix itself with root permissions and unprivelaged runs subsequently succeed.


Reproducible: Always

Steps to Reproduce:
1. completely uninstall virtualbox
2. install virtualbox and run. it stops with the NS_ERROR_FACTORY_NOT_REGISTERED error
3. toggle on setuid root. run again. ( fixes it )
4. toggle off setuid root. run again and now it works correctly.
Actual Results:  
I was able to work around a installation problem.

Expected Results:  
installed correctly with needed permissions available to virtualbox as a unprivelaged user.
Comment 1 Andrey Aleksandrovich 2015-08-17 12:00:46 UTC
Created attachment 409254 [details]
vbox-start.log

I have this error. Of course the modules are loaded. I can make new virtual machine but after closing VirtualBox I don't see it. However, if I delete ~/.VirtualBox it shows warning that it can't find virtual machine (previously created). I don't understand what's going on...

ps hardened/linux/amd64/no-multilib
Comment 2 Ben Kohler gentoo-dev 2017-08-31 18:19:01 UTC
Please reopen if this is still a problem on current versions