Page 1 of 1
3D Acceleration on Arch Linux Guest
Posted: 11. Apr 2009, 07:09
by Wintervenom
What do I need to do to get 3D acceleration working on an Arch Linux guest? I've been working at it for a while now, got symlinks all over the place, and can't get it going for the life of me.
Re: 3D Acceleration on Arch Linux Guesr
Posted: 11. Apr 2009, 12:52
by Sasquatch
Enable 3D in the VM settings and install the GA. That's all you need. Make sure that the actual vboxvideo driver is in use. I've made a howto on how to install the GA, with a sample Xorg.conf you can use. It doesn't note all the distro's, as it's quite a lot of work to figure that out. If you have anything to add to the howto, please do so. We want it to be as complete and correct as possible.
Re: 3D Acceleration on Arch Linux Guesr
Posted: 11. Apr 2009, 16:36
by Perryg
You may want to look at the version of your kernel (uname -r) it must be 2.6.27 or newer to use OpenGL in VB.
Arch has a newer kernel available on their site if you want to compile it yourself.
http://wiki.archlinux.org/index.php/Ker ... rom_Source
Re: 3D Acceleration on Arch Linux Guesr
Posted: 11. Apr 2009, 18:08
by Wintervenom
I am using kernel 2.6.29.1, and I have the "Enable 3D acceleration" option enabled. When I installed the guest additions, it kept complaining about drm headers needing to be installed manually in Arch Linux. The drm headers are in Arch's libdrm package, but they don't have the drmP.h header. It's in the kernel sources, though, so I made a symlink to the includes/drm folder there in test_drm and vboxvideo_drm and everything compiled. Then, I got an error in the X log about vboxvideo_dri.so not being found, so I made a symlink to that in /usr/lib/xorg/modules/dri. Now, I see VirtualBox's drm module loading up in dmesg, but in the X log, I get yet another error: "(EE) AIGLX error: vboxvideo does not export required DRI extension." I can't figure out how to solve this one.
Re: 3D Acceleration on Arch Linux Guesr
Posted: 11. Apr 2009, 18:20
by Sasquatch
Check the Linux Guests and Host forum. Others have had this same issue. I thought it was with Debian, but the solution will be the same.
Re: 3D Acceleration on Arch Linux Guest
Posted: 14. Apr 2009, 07:19
by Wintervenom
I looked, and can't find anyone who has solved it. I did find this, though:
http://forums.virtualbox.org/viewtopic. ... 604#p67604. I get the same output (and I linked
vboxvideo_dri.so and not the one he says here).
Re: 3D Acceleration on Arch Linux Guest
Posted: 23. Apr 2009, 11:04
by whitman
Did you get any further with this? I'm having the same problems getting 3d acceleration in an arch guest.
Re: 3D Acceleration on Arch Linux Guest
Posted: 29. Apr 2009, 09:58
by Wintervenom
Nope, I've still got nothing on this.
Re: 3D Acceleration on Arch Linux Guest
Posted: 6. May 2009, 11:27
by bfg
same behavior...
my host is Ubuntu 9.04 - Jaunty Jackalope with a kernel 2.6.29-02062901-generic (x86_64)
virtualbox release is 2.2.2
my guest is a fresh ftp install of archlinux x86_64 (kernel 2.6.29-ARCH)
during installation of Additions the output is...
VirtualBox 2.2.2 Guest Additions installation
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this. Please see the log
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message.
Note that on ArchLinux you may need to manually install the drm headers.
still the same after installing package libdrm 2.4.9-1
the relevant part of the log is...
mkdir -p /tmp/selfgz34779646/module/test_drm/.tmp_versions ; rm -f /tmp/selfgz34779646/module/test_drm/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz34779646/module/test_drm
/tmp/selfgz34779646/module/test_drm/Makefile.include.header:97: Using BUILD_TYPE='release' from the environment.
gcc -Wp,-MD,/tmp/selfgz34779646/module/test_drm/.test_drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3$/tmp/selfgz34779646/module/test_drm/test_drm.c:12:22: error: drm/drmP.h: No such file or directory
make[2]: *** [/tmp/selfgz34779646/module/test_drm/test_drm.o] Error 1
make[1]: *** [_module_/tmp/selfgz34779646/module/test_drm] Error 2
make: *** [vboxadd_test_drm] Error 2
can someone address us to a solution?
Re: 3D Acceleration on Arch Linux Guest
Posted: 6. May 2009, 23:22
by waterowl
Install kernel headers following instructions here
http://www.cyberciti.biz/faq/howto-inst ... s-package/ before installing VirtualBox Guest Additions.
Re: 3D Acceleration on Arch Linux Guest
Posted: 7. May 2009, 16:51
by bfg
these instructions are focused on a debian guest...
Re: 3D Acceleration on Arch Linux Guest
Posted: 7. May 2009, 17:12
by Perryg
Re: 3D Acceleration on Arch Linux Guest
Posted: 21. Aug 2009, 05:51
by Wintervenom
I still have this problem on my Arch Linux guest. I'm not sure what else to do. The Guest Additions still doesn't put files in the right place, so symlinks still have to be made in "/usr/lib," and I still get the error about
vboxvideo not exporting some DRI extension. Here is the relevant part from the
/var/log/Xorg.0.log:
Code: Select all
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) AIGLX: Screen 0 is not DRI2 capable
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 12, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 12, (OK)
drmOpenByBusid: drmOpenMinor returns 12
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) Next line is added to allow vboxvideo_drv.so to appear as whitelisted driver
(II) The file referenced, is *NOT* loaded
(II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
(EE) AIGLX error: vboxvideo does not export required DRI extension
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
Re: 3D Acceleration on Arch Linux Guest
Posted: 24. Aug 2009, 04:55
by Wintervenom
I finally got it working thanks to this post:
http://bbs.archlinux.org/viewtopic.php? ... 69#p547569
I still get that error, but the acceleration works.
