Using Unity within virtualbox

Hi

I've read another post about the same subject but as it's an older, I thought since that Virtualbox had evolved that this may change the approach.

In fact, VB seems to integrate video acceleration. Altough I installed the last Directx 11 on the XP VM, unity3D send an error for DirectX 9 and Direct3D.

So : is it possible to have unity Working with Virtual Box ?

No, Unity will not work with VB. However it works with VMWare Fusion if you enable "Accelerate 3D Graphics". But be advised that you'll have a considerably loss of video performance compared with your host operating system.

I got VirtualBox 4.3.8 working with a Windows 7 Guest VM where the host was running Arch Linux. The most important thing is to install the 3D drivers. This guide is for a different purpose, but it shows how to install the 3D drivers: http://www.howtogeek.com/124479/how-to-enable-3d-acceleration-and-use-windows-aero-in-virtualbox/

I’ve followed all the advice in this forum with regards to enabling 3d acceleration, installing experimental d3d support, and unity3d doesn’t really work from inside virtualbox. The application window does not properly handle paint events, and the software is not usable inside of virtualbox in any sense.

Edit: Since I made the above comment, I have tried enabling an Aero desktop theme, and that caused Unity to start working correctly.

Hi

I have mac osx running in vmware on windows 7 with the Accellerate 3D Graphics enabled, but unity crashes everytime it start, i only need this so i can build to the ipad or iphone, for the rest i build everything on windows and there everything works fine.

Could you give me some feedback if you guys have tried this yourselves?

Kind Regards

Mario Vermeulen

I can confirm that a Unity project I built with Unity 3.5.1f2 runs on Windows XP SP3 in VirtualBox 4.1.16.

My VM has 2D and 3D acceleration enabled, and I installed the experimental Direct3D Support, but otherwise all VM settings are defaults.

Another reply here is wrong.
I can confirm to have recently seen Unity running just fine on VirtualBox, on a OS X guest.
It was used to deploy iOS builds to app store via Xcode

I’m running VirtualBox 4.3.12 and Unity 4.5.2. I have enabled hardware 2D and 3D acceleration on the VM, and I have installed the “basic Direct3D support” from the VirtualBox Guest Additions CD. With this configuration, I can run Unity3D. Until I had this configuration in place, Unity would crash on startup reporting that it “failed to initialize unity graphics”.

*Note: To enable hardware 3D acceleration in VirtualBox, you must give your VM 128 MB of video memory for one monitor, or 256 MB of video memory for two monitors.

Answer by Kerda · 28 secs ago
may be here somebody can help me
http://answers.unity3d.com/questions/1173394/unity-5-via-virtual-box-and-remote-desktop.html

Google sent me here …

I had similar problems with windows 10 host and windows 10 VM. I activated 3D acceleration in the VM’s settings and installed the vm guest tools. Still didn’t work.

Solution was: I am using an nvidia optimus laptop and it started virtual box with the weak graphics card instead of the storng NVIDIA

  1. turn on High-performance NVIDIA processor in the NVIDIA Control Panel in global settings (assume you can also only turn it on for virtual box if you want to).
  2. restart the vm → reinstall the virtual box guest tools
  3. restart again
  4. aaand it works!

Hope it can help anyone :slight_smile:

I am using Virtual Box Version 5.1.18 r114002 (Qt5.6.2), with Windows 10, VS 2017 and 8GB Ram assigned. It works pretty well.