Direct3D on Linux Guest

Discussions about using Linux guests in VirtualBox.
Post Reply
kavika
Posts: 2
Joined: 23. May 2010, 00:00
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Direct3D on Linux Guest

Post by kavika »

Is it possible to get Direct3D working with Wine, on a Linux Guest?
I've seen people mention that they got this working on the Wine forums, but when I drilled down, I couldn't find any details on their exact configuration.

Yes, I know this is likely a Wine related issue, but other people say they have gotten something like this working, and people w/ these errors that solved the issue were running on hardware, not virtualized.

Note that OpenGL is working for me on this guest, with hardware acceleration, as is the Ubuntu "visual effects" feature (Compiz?)

Windows 7 x64 Host
nVidia GTX 260
Virtualbox 3.20
Ubuntu 10.04 x86, updated
Guest additions are installed

The error I'm getting is:
"err:wgl:X11DRV_wglCreateContext Cannot get FB Config for iPixelFormat 0, expect problems!
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D9 is not available without OpenGL."

I get this error on both World of Warcraft and SysWOW64/dxdiag.exe (shared from the host machine).

I also get an error in WoW with opengl32.dll if I try to launch in OpenGL mode:
"err:module:attach_process_dlls "opengl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"E:\\Users\\Public\\Games\\World of Warcraft\\Wow.exe" failed, status c0000005"

Is there more info I can provide, or more logs that would be useful to drill down into this error?
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Direct3D on Linux Guest

Post by stefan.becker »

For what the hell do you need WINE in a Linux Guest on a Windows Host?

Anyway, no way to tweak this. If Compiz works, then 3D is working in the Linux Guest. I think best is to forget this and use Windows native for Windows Software.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Direct3D on Linux Guest

Post by Technologov »

it is possible that wine uses more advanced opengl commmands than compiz does...
kavika
Posts: 2
Joined: 23. May 2010, 00:00
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Direct3D on Linux Guest

Post by kavika »

@stefan.becker: I don't NEED it, I just would like to evaluate both what is possible right now, both in terms of virtualization and in terms of WINE. I'd like to move off Windows, but last two times I dual booted/tried to go pure-Linux, games pulled me back. Virtualization will let me test out the current state of WINE, and know when I can hop over safely without worrying about my games.

@Technologov: Yes, that would make sense. However, VirtualBox is supposed to handle pretty advanced OpenGL, isn't it? Like, 2.0 or 2.1?

Anyhow, what I'm looking for is more verbose logging so I can figure out what is wrong, or someone who knows definitively that this will not work right now, and can tell me why :)

Thanks for your answers so far, tho.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Direct3D on Linux Guest

Post by Technologov »

My level of OpenGL is not good enough.
You need to find a developer, that is familiar with OpenGL.
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: Direct3D on Linux Guest

Post by Sasquatch »

Even if you get it working, it's unworkable. Wine inside VB is very, very slow and consumes about 30x more CPU than when it's on a native Linux system. Just starting a notepad or something else is terrible. I tried it a year ago or so to test NewsLeecher so the dev could get the VM and test his application for Linux/Wine. It's just not doable.
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