Gentoo Linux Guest, 3D Acceleration only under root.

Discussions about using Linux guests in VirtualBox.
Post Reply
ori0n
Posts: 2
Joined: 12. Jun 2010, 08:07
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Gentoo Linux

Gentoo Linux Guest, 3D Acceleration only under root.

Post by ori0n »

Hey guys, I have a fresh installation of Gentoo Linux. I've used the example xorg.conf file from the Guest Additions. Using the latest everything. Virtualbox 3.2.4 + 3.2.4 Guest Additions of course...

Anyways, glxgears is accelerated while running under root, but not under a non-root user. The non-root user I'm using is in the "video" group, if that matters.
ori0n
Posts: 2
Joined: 12. Jun 2010, 08:07
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Gentoo Linux

Re: Gentoo Linux Guest, 3D Acceleration only under root.

Post by ori0n »

I've found the answer!

Add your non-root user to the "vboxguest" group. I didn't find this documented anywhere, but I found the group in my /etc/group file and decided to try it.

As root, run the following:

Code: Select all

usermod -a -G vboxguest <non-root username>
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Gentoo Linux Guest, 3D Acceleration only under root.

Post by Sasquatch »

Odd, I don't have that group on my Ubuntu VMs. Nor do I need to be in any group for 3D capabilities inside the Guest.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply