* Update: 29 August, 2017
You will no longer need this solution I think, because installing MULTIPLE VERSIONS was needed with problematic older versions. Current VirtualBox version does all things a typical user needs. Just, try to accommodate it and don’t waste time in installing two versions, because it’s quite tricky and hard… (However, if you surely need that, you can continue reading…)
Installing Two versions of VB simultaneously
If you need to install multiple versions of VirtualBox, then you have to do some custom tricks (NOTE, if you decided to install two-versions of VB just to solve the error “bios disk read error at sector 00000011“, then you can simply solve that problem by reading this article)
(P.S. This method might not work in some cases.)
At first I advise you to stick with one version, and do as much as you can to avoid multiple versions on same computer . However, in very very rare occasions, you might need to install multiple versions of it.
Lets start (If you have already installed and using it, it’s better, to uninstall all versions of it, and go on then).
At first, ensure that you have exactly SAME versions of Virtualbox Installer and Extensions pack. Ok, for example, Install Virtualbox 4.3 in C:\Program files\Oracle-4.3\Virtualbox, then open it and go to PREFERENCES > EXTENSIONS and install Extension-pack for it. After that, copy the whole folder Oracle-4.3 to i.e. D:\MyPrograms\Oracle-4.3
Now, inside that folder, create the RunVirtualbox4.3.bat (if you dont use Windows, then create similar executable for that OS) and put this content inside that (just leave the first line empty and start from 2nd line):
chdir "D:\\MyPrograms\\Oracle-4.3\\VirtualBox" D: VBoxSVC /ReRegServer regsvr32 VBoxC.dll start "MyVirtualBoxTitle" VirtualBox.exe
save that file. Everytime you will need to run VBox 4.3, then run this .bat file with “Run As Administrator” privilege.
Now, install i.e. Virtual-Box 5.1 and do exactly the same steps for it, just change Oracle-4.3 to Oracle-5.1 in all above occasions. (you may also need to remove all contents from C:\users\your_username\.VirtualBox )
Now, try to run any of the .bat file with “Administrator Privilege”.
Voila, it should start!
Remember, you might face problems when if you want to run second version without RESTARTING PC. For example, when you run VBox 4.3, then you might need to restart PC to run VBox 5.1. Otherwise you may see some “kernel” error messages.
(Some possible reason is background service. Open CMD and type
sc query vboxdrv If it has status 3 (frozen), then you have to RESTART PC, or even a possible remedy for that is uninstall and re-install). Finally, after copying both versions, I run the Installers for both versions and UNINSTALLED them using SETUP. However, I’ve kept those copied installation folders and work with them at this moment.