Virtualbox 3.0 Announces OpenGL/Direct3D Support 161
bl8n8r writes "Apparently, Virtualbox 3.0 released today (2009-07-01) brings with it 'OpenGL 2.0 for Windows, Linux and Solaris guests; and experimental support for Direct3D 8/9 applications on Windows guests.' Maybe we can finally game in a VM?"
I wouldn't count on it (Score:4, Interesting)
"Experimental" generally means "full of tons of bugs." 3D virtualization seems like it is just hard to do, at this point. VMWare has been working on it and at this point it isn't even "experimental" in the latest version of VMWare Workstation. Well it works... kinda. It's fairly slow and there are some rendering errors. I can get WoW to run, but it isn't all that playable.
I've been watching this sort of thing with interest since old games are one of the things I'm very fond of. However at this point, 3D VMs seem to be an experimental playtoy, not something that can be used for serious gaming.
Re:Finally? (Score:3, Interesting)
Re:I wouldn't count on it (Score:3, Interesting)
This can be done well, it just hasn't yet been done well on a Linux host.
Virtual box (Score:4, Interesting)
I use Virtual box on a pair of mac intel core duo 2 machines to run windows XP pro I'm very pleased with it. It essentially works perfectly. I don't care that it is only single processor since All I want is basic seemless windows functionality for those few cases where software is windows only.
it works well with USB devices. I use it to program Lego Mindostorms, and for Midi (to USB) keyboard input and some thumb drives.
it will mount any folder on my mac disk either permenantly or temporarily (these show us as X: or Y: or whatever). What's mildly annoying is that this is 2 step process: first you tell the VM to "add the drive" then you have to use a windows "run" command "net use x: " to tell windows about it. the second step seems strange to me, but you only do it one time.
I've had three things I could not figure out.
I never was able to get a windows media player to mount in media player mode so I could use windows DRM protected WMA files on it and manage it from within windows media player 11. Instead it only will mount as a thumb drive.
I was not able to get a virtual CD device to mount an iso image or burn an iso image (as a work around for getting the WMA files in a format I could play).
It will not burn a CD or DVD.
also I never figured out how to add my Samsung C310 printer to it or my HP multifunction printer to it. it does see them, it just never finds the drivers. However I'm pretty certain this is a windows driver problem and nothing to do with the VM.
I don't game so open GL means squat to me.
Not perfect but pretty good (Score:5, Interesting)
Data loss bug (Score:5, Interesting)
Unfortunately, looks like they still haven't fixed bug 1040 [virtualbox.org], or even upgraded its priority from 'minor.' The gist of it is, do not even think about touching anything in the GUI relating to the 'snapshot' feature, unless you really, absolutely, positively understand what you're doing. The wording is very confusing, and can easily lead to data loss scenarios. Unfortunately, since this is a human interface flaw, and not a programming error, it seems like it's not really being taken seriously. In my mind, sadly, this is exactly the sort of macho hacker mentality that keeps OSS from mainstream acceptance.
Re:If it wasn't for window limitations... (Score:3, Interesting)
Passing OpenGL calls through is easier, and has actually been done for a while now. Reimplementing DirectX is considerably harder, I think they used Wine code for a lot of that.
...I grow weary... (Score:1, Interesting)
How many times do I have to tell people that gaming in VMs just doesn't work. Yes, this feature will add support for a lot of graphically accelerated applications and probably even the older games, but the fact is that you still cannot beat direct graphics access!
Virtualbox uses the D3D to OpenGL code from Wine (which I love very much). We aren't talking about DirectX from Windows pushed through to your graphics card.
However don't get me wrong, it will eventually be possible! Gallium3D will have the architecture to support DirectX in Linux (as I understand it anyway, please correct if this is false) which means that you could do a Virtualized Windows direct connection (passthrough) to the graphics driver which should be nearly as good as native performance!
Drag'n'Drop? (Score:2, Interesting)
Re:Finally? I've been doing that in VMware for age (Score:3, Interesting)
Games are the last bastion for a seperate Windows install.
The audio stuff (Reason, FLStudio) etc work perfectly well under VirtualBox now.
You need to use ASIO4ALL to get asio working, but once done and fiddled with... hah! 10ms audio latency in a freakin' virtual machine! That is just so awesome to me!
Changing from VMware to VirtualBox (Score:4, Interesting)
Cool! After the umpteenth million time of not being able to build VMware Server under the latest kernel version, and this time NOT being able to find yet-another-vmware-any patch to fix it, I finally abandoned VMware (at least for personal use) and switched back to VirtualBox. Looks like I made the right decision right, just in time.
I'm still using VMware for server virtualization at work, but for running one of Uncle Bill's products on my desktop, it looks like VirtualBox is a better solution.
I will be interested in seeing how it works with USB. That's always been a bug-a-boo for me--getting USB devices to talk to the VM. This release sounds like they've cleaned up some things. I will be really interested in how it performs with some of my games that require 3D. (I'm talking like Guild Wars, not the latest releases.)
Re:I wouldn't count on it (Score:3, Interesting)
The problem, as I understand it, isn't that 3D hardware is difficult to handle in a VM (it's not, really, you simply paravirtualise calls to the 3D hardware and translate them into libGL calls in the VM host software). The problem is that doing so in Windows is practically impossible, because of MS's licensing terms for the DDKs you need. Smart move on their part, of course, if Paravirtual D3D was considered a first-order citizen of windows in the same way that NVidia or ATI D3D was, then nobody would have any really compelling reason to use windows as any sort of on-the-metal OS.
While this holds true for both directx lower-level drivers and ICDs to suit MS OpenGL, it's possible to simply REIMPLEMENT OpenGL, as everything (barring perhaps the "WGL" parts specific to windows, i'm honestly unsure about that) is nicely standardised. This doesn't help with DirectX, so the approach to date has been to replace d3d8.dll and d3d9.dll with mingw-compiled versions of the Wine D3D dlls, which simply wrap DX in OpenGL.
Re:Data loss bug (Score:1, Interesting)
I read and re-read the doc, and I still can't figure out how to merge my snapshot so as to make them my main image. I'm stuck with an outdated main disk image and external snapshots that take up space were I'd rather just run the snapshots and get rid of the old image.
From what I understand of the doc, I can revert to the old image, discard the snapshot, but not merge them to have the latest snapshot as my main disk.
Re:w00t! Kidz are Happy! (Score:3, Interesting)
I feel for you. I've spent the last couple of weeks trying to beat an Access 2000 VBA application into submission. I've got the current holes plugged, but next Monday I'm telling the guy I'm doing the work for that I'd rather recode it in Lisp than ever ever ever have to deal with VBA again. All VBA and VB ever did was allow people who had no business programming to create programs, and somehow so many of those programs ended up outlasting the original guys who made them.
Re:If it wasn't for window limitations... (Score:3, Interesting)
OpenGL already supports network transparency, you could potentially just use that existing functionality to deliver the GL calls over a local interface to the local host...
Re:I wouldn't count on it (Score:2, Interesting)
Parallels, definitely! I play CS 1.6 and HL2 on my Parallels install with few/no problems!
If I could double mod you up, I would ;)
Re:Finally? (Score:4, Interesting)
Have to wonder how they figure USB passthrough "primarily targets enterprise customers" though...
Re:why virtual ? (Score:1, Interesting)
[citation needed]
Do modern consumer chipsets already implement IOMMUs or are you talking about server hardware?