Virtualbox Guest Addition functions without root?

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Virtualbox Guest Addition functions without root?

Postby alcalde » Sat Apr 24, 2010 4:53

From some research, I think this is a bug, but I'm not sure. It seems that the VBoxClient program, which is needed to actually start some of the additions, will not function if run from a non-root account. I can confirm with a fresh 5.2 install/update that VBoxClient (--clipboard, --display, or any of the other options) will not perform the desired function. Using -d to see what's going on produces

Running VBoxClient with root permissions works fine. I tried adding the user to the appropriate user groups (come to think of it, it's almost easier to emerge gentoo from a Stage 1 tarball than it is to actually enable guest additions! :P ) and this was no help. Our brothers in Debian suggest the problem is that VBoxClient uses /dev/vBoxUser, which non-root doesn't have write access to. I checked and noticed that the user and group for this file is "root". Changing the group to vboxguest with a user already assigned to vboxguest enabled VBoxClient to start from a non-root account. The problem is that this file is apparently recreated or something on each reboot, as the owner/group would be reset to "root" on each reboot.

Can anyone else confirm that 1) there's no magic step I'm missing (and I've fiddled with rc-update script thingies and /etc/conf.d/modules whatchamacallits that made no difference) or 2) that VBoxClient is intended to be able to be run without root access?

I'm not even going to ask about why compiz doesn't want to start in Virtualbox; I'm guessing/hoping that's just 733 things that need to be added to xorg.conf. :mrgreen:

Oh, and I also tried uninstalling the guest additions and emerging the more recent guest additions from portage, but that didn't help... other than providing a stress test for my CPU.
alcalde
Simple Hen
 
Posts: 69
Joined: Sun Jul 29, 2007 18:59

Re: Virtualbox Guest Addition functions without root?

Postby Fitzcarraldo » Tue Sep 14, 2010 15:37

alcalde wrote:Our brothers in Debian suggest the problem is that VBoxClient uses /dev/vBoxUser, which non-root doesn't have write access to. I checked and noticed that the user and group for this file is "root". Changing the group to vboxguest with a user already assigned to vboxguest enabled VBoxClient to start from a non-root account. The problem is that this file is apparently recreated or something on each reboot, as the owner/group would be reset to "root" on each reboot.

I'm no expert on VirtualBox, but have you had a look at the Gentoo Wiki article on VirtualBox in case anything in that is of help?
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7334
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 0 guests