3D Acceleration on Arch Linux Guest
-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
3D Acceleration on Arch Linux Guest
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.
Last edited by Wintervenom on 14. Apr 2009, 07:13, edited 1 time in total.
-
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: 3D Acceleration on Arch Linux Guesr
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.
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.
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.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: 3D Acceleration on Arch Linux Guesr
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
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
-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
Re: 3D Acceleration on Arch Linux Guesr
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.
-
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: 3D Acceleration on Arch Linux Guesr
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.
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.
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.
-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
Re: 3D Acceleration on Arch Linux Guest
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).
-
whitman
- Posts: 2
- Joined: 23. Apr 2009, 10:53
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch
Re: 3D Acceleration on Arch Linux Guest
Did you get any further with this? I'm having the same problems getting 3d acceleration in an arch guest.
-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
Re: 3D Acceleration on Arch Linux Guest
Nope, I've still got nothing on this.
-
bfg
- Posts: 2
- Joined: 6. May 2009, 11:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: archlinux
Re: 3D Acceleration on Arch Linux Guest
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?
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?
-
waterowl
- Posts: 1
- Joined: 22. Apr 2009, 20:46
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Ubuntu 8.10
Re: 3D Acceleration on Arch Linux Guest
Install kernel headers following instructions here http://www.cyberciti.biz/faq/howto-inst ... s-package/ before installing VirtualBox Guest Additions.
-
bfg
- Posts: 2
- Joined: 6. May 2009, 11:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: archlinux
Re: 3D Acceleration on Arch Linux Guest
these instructions are focused on a debian guest...waterowl wrote:Install kernel headers following instructions here http://www.cyberciti.biz/faq/howto-inst ... s-package/ before installing VirtualBox Guest Additions.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: 3D Acceleration on Arch Linux Guest
<Snip>
Has anyone asked the Arch Linux forum?
http://bbs.archlinux.org/search.php?search_id=261220963
<snip>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
Has anyone asked the Arch Linux forum?
http://bbs.archlinux.org/search.php?search_id=261220963
-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
Re: 3D Acceleration on Arch Linux Guest
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-
Wintervenom
- Posts: 6
- Joined: 9. Apr 2009, 21:03
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Arch Linux, Windows XP
Re: 3D Acceleration on Arch Linux Guest
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.
http://bbs.archlinux.org/viewtopic.php? ... 69#p547569
I still get that error, but the acceleration works.