EDIT (April 5, 2015): End-of-life for this mod. No more updates after today.
Parting gift: update for those looking for the MinecraftForge 1.7.10 version. See post #2 below.
I've switch from VirtualBox to VMware; no more glitchy mouse issues.
EDIT (September 3, 2014): I've created a jar mod that allows one to play Minecraft 1.8 on VirtualBox. YMMV, though:
The game takes a long time to load once you hit play. About a minute or two from when you see the "Downloading terrain" message. Argh.
Once loaded this version of Minecraft (1.8) seems a lot lagger than previous versions (1.7 and lower). My kids are seeing around 35 fps. Used to be in the 60s. Another argh.
In the game options / video settings menu scroll to the bottom and turn on "Use VBO". For Linux guest running on Windows host the game is very glitchy if VBO is set to "off". Final argh.
Anyhow, download links in Post #2 below.
EDIT (August 11, 2014): For versions 1.7+ see the second post below.
I've created a Minecraft Forge coremod that allows one to play on VirtualBox. Details as follows.
The usual problem that is encountered when playing Minecraft in VirtualBox is that the mouse doesn't work properly. The reason is that LWJGL warps the mouse to the center of the viewport when it detects the mouse has gotten to close to the edge of the viewport. Unfortunately, it is the guest OS that is informed of the warp -- not the host OS. As far as the host OS knows, the mouse has not been warped. So the host OS continually tells the guest OS that the mouse is at the edge of the viewport while LWJGL tells the guest OS that it is at the center of the viewport. Result: moving the mouse will often result in your Minecraft world-view spinning uncontrollably.
Half of the solution to playing Minecraft in VirtualBox:
(1) Disable mouse-integration and/or
(2) Plug in a second mouse and "capture" it.
This solution gets one halfway there. While moving the mouse no longer causes the world to spin uncontrollably one quickly notices that the mouse pointer / cursor disappears on GUI / crafting screens. The reason (I think -- not sure here) the mouse pointer disappears is that VirtualBox renders the OpenGL viewport by telling the host OS to overlay the viewport onto the guest OS display (because it looks like the mouse pointer disappears *behind* the OpenGL viewport).
The other half of the solution:
For about a month, I tried to fix this problem by looking over the VirtualBox implementation and the LWJGL implementation. I gave up. Instead, I have implemented a coremod via Minecraft Forge that draws a mouse cursor in the game using OpenGL. Combined with the other half solution above, Minecraft is now playable in VirtualBox!
To make a long story short (too late, I know) here are installation and usage instructions:
(1) Install Minecraft Forge. Please find instructions for this step using Google.
(2) Pre-1.6.2: Place the vbox-opengl-cursor-.jar into the coremods folder.
(3) 1.6.2 or 1.6.4: Place the vbox-opengl-cursor-.jar into the mods folder.
(4) 1.7+ See the second post below for download link and installation instructions.
(5) Tell VirtualBox to capture the mouse and/or disable mouse integration (CTRL-I).
(6) You should see a blue cross-hair on GUI screens in Minecraft. Enjoy!
EDIT: Thanks to laisnanet here is a video youtube demonstrating the install procedure:
(0) As of 1.6.2, there is no longer a coremods folder for Minecraft Forge.
(1) For those playing yogbox via Technic Launcher I have a mod that works for Minecraft 1.2.3. If interested please let me know and I will post it.
(2) This mod is only necessary if one is using VirtualBox. For those using VMware the solution to crazy mouse is much easier and no mods are necessary: just capture the mouse (VMware player) or choose optimize for games (VMware Workstation).
(3) Tested using VirtualBox 4.3.14, Windows 7 host, Xubuntu 12.04 guest.
(4) With a core i7 Ivy Bridge, 32 GB 1600 MHz DDR3 RAM, OCZ Vertex 4 SSD, two monitors, two extra keyboards, and two extra mice: I can run three Xubuntu VMs and both my kids can play Minecraft at the same time with the third VM functioning as a server so their friends can play (remotely) too.
(5) I have no idea what the graphics limitations are when playing Minecraft on VirtualBox. So YMMV playing Minecraft in VirtualBox.
(6) Open source. You can find it here: https://github.com/ttran17/minecraft
(1) Minecraft Coder Pack (MCP).
(2) Minecraft Forge.
(3) While I didn't use any of his code, thanks to ChickenBones http://www.minecraft...ckenbones-mods/ for making his source available. I learned a lot about ASM from his work.
Jar Mod Installation instructions (replace version number as appropriate):
(0) More verbose instructions are in post #5 below. Otherwise:
(1) Make a copy of your minecraft 1.8 folder
(2) There are two files in this folder -- 1.8.jar and 1.8.json
(3) Copy the contents of the downloaded jar into 1.8.jar
(4) Delete the two MOJANGCS files in 1.8.jar/META-INF
(5) Open the 1.8.json file and near the top change the "id" entry to "id": "virtualbox-1.8"
(6) Rename the jar and json files to virtualbox-1.8.jar and virtualbox-1.8.json
(7) Launch minecraft, create a new profile, and choose "release virtualbox-1.8" for that profile
This does not (obviously) use MCP or MinecraftForge since neither is available (as of 12/06/2013).
Go to [minecraft folder]/versions. You should see a folder (directory) named 1.7.2
Make a copy of the folder 1.7.2 and call it virtualbox-1.7.2
Go into your new folder: [minecraft folder]/versions/virtualbox-1.7.2
You should see two files 1.7.2.jar and 1.7.2.json
Open the 1.7.2.jar using your favorite archive viewer (e.g. winzip, 7zip, ...)
Open the zip file you downloaded above and copy its contents into 1.7.2.jar
Go into the 1.7.2.jar/META-INF folder and delete two files: MOJANGCS.SF and MOJANGCS.RSA
Exit your archive viewer. Obviously save changes if prompted to do so.
Open 1.7.2.json using your favorite text editor
Near the top you'll see an entry like this: "id": "1.7.2"
Change that entry to: "id": "virtualbox-1.7.2"
Exit the text editor.
Rename 1.7.2.jar to virtualbox-1.7.2.jar
Rename 1.7.2.json to virtualbox-1.7.2.json
Now launch minecraft and choose "New Profile" in lower left corner.
Change the profile name to whatever you like
For "Use version:" choose "release virtualbox-1.7.2" from the menu options.
To revert to vanilla minecraft choose your default profile. To use the minecraft with the virtualbox-opengl-cursor-mod use the profile you just created.
Let me know if you have any problems. PM me if necessary.
Optional (i.e. more than you wanted to know): the 1.7.2 update was a fairly extensive change to the Minecraft code base. That is why MCP and MinecraftForge (which relies on MCP) are so late in publishing their updates for 1.7.2. Rather than wait for MCP and/or MinecraftForge I have instead worked directly with the obfuscated code. Using the structure from the codebase MCP 1.6.4 it is possible to deduce the necessary changes in obfuscated 1.7.2 to make the virtual box-opengl-cursor-mod. Some of the more knowledgeable coders on this forum (e.g. immibis of bearded-octo-nemesis fame) have, I think, a decompiled and deobfuscated version of some sort floating around for 1.7.2. Because the virtual box-opengl-cursor-mod isn't all that complicated I just used ASM to modify the bytecode directly. You can find the source here: https://github.com/t.../github/ttran17
The_Nanobots:VirtualBox is free software that allows you to have many different "computers" running on your computer at the same time. Check it out here https://www.virtualbox.org
If you're the only one using your computer it's hard to make a case for running Minecraft in VirtualBox. There is no way the performance will be as good as what you'll get using your bare metal system. However, if you've got kids or you're a wee bit paranoid about security then VirtualBox offers an acceptable alternative -- if your system is powerful enough to handle it.
(1) If you have kids and a powerful enough computer (and multiple monitors) then VirtualBox allows these kids to all play at the same time! Note this is not going to work for just any system -- it's going to depend on the speed of your CPU, RAM, and hard disk. My hardware is Core i7 3770 Ivy Bridge, GSkill 1600 MHz DD3 RAM, and OCZ Vertex 4 SSD. I've usually got 4 virtual machines running at any one time: 1 Windows machine for my spouse, 1 Xubuntu machine running a Minecraft server, and 2 Xubuntu machines for Minecraft clients. Of course there is the host OS but it's not being asked to do anything other than perhaps iTunes. My kids are perfectly happy playing in this environment.
(2) Another reason for running Minecraft in VirtualBox is the security aspect. Minecraft requires Java which is a huge security risk to have on your machine. Running Minecraft via VirtualBox can limit the risk. You'll need to seal off the virtual machines from accessing the rest of your network, of course. (Not that I am completely convinced I know how to do this.)
Anyhow, your mileage will vary with Minecraft in VirtualBox.
Sorry for the delay in responding. This is a pretty unpopular thread / mod so I don't check in very often to see if anyone needs updates. In any case, I've updated the links in Post #2 above for 1.7.9 and 1.7.10.
Actually, here they are to save you some scrolling:
without me going into great detail, Could this be used to play the PC version of minecraft on a powerful enough android device?
If there were a VirtualBox port available for Android then, yes, you could use this mod to play the PC version of minecraft on a powerful enough android device. However, I'm not familiar with any VirtualBox ports for Android so this mod is worthless to you.
Looks great, m8, but how can I change the cursor to a default Windows cursor?
By "default Windows cursor" do you mean the usual white arrow with the small gray shadow? If so then the answer is no I don't know how to draw that. I'm pretty sure you could do it by (e.g.) drawing a little box and adding the arrow as a texture but that would take some time for me to figure out. Alternately you could draw the arrow by adding vertices as appropriate when drawing the cursor -- that would be easier but it wouldn't look as nice as the default Windows cursor, though.
If you're turned off by the color / size of the blue cross-hairs I can easily change that to your liking.