Skip to content

About

Easily build VirtualBox for Windows

Resources

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

VirtualBox for Windows EZ-Build by rootw0rm, https://github.com/rootw0rm/VirtualBox-EzBuild

Version: 0.3, major bugfixes


What it does:

Downloads all required tools and library sources (and their dependencies) for building VirtualBox and builds them. It then builds VirtualBox and installs it. Ultimately, the goal is to also automatically patch the source code with randomized machine information, but that is not implemented yet. The tools and libraries downloaded include:

  • mingw64 (4.9.3)
  • nasm (2.12.02)
  • python (2.7.13)
  • perl (ActivePerl 5.24.1)
  • ruby (2.3.3)
  • jom (latest)
  • libcurl (7.52.1)
  • openssl (1.1.0e)
  • qt (5.6.2)
  • virtualbox (5.1.14)
  • virtualbox sdk (5.1.14)

What it consists of:


Details of the VirtualBox build:

  • 64-bit release binaries, test signed, with x86 guest support
  • No SDL support, Qt5 only
  • Hardening disabled
  • Tested on version 5.1.14

Requirements:


Limitations:

  • Cannot build from a path which contains spaces (kbuild limitation)
  • Cannot build from a path which contains exclamation mark (make/qmake limitation)
  • Cannot build from a path which contains a set of parentheses (Windows limitation)
  • Building VirtualBox is limited to 1 core right now, as parallel hasn't been reliable for me

Instructions:

  • Extract tools to a reasonably short path with NO SPACES or EXCLAMATION MARK and execute BUILDVBOX.bat with administrative priveleges.
  • Admin rights are required for tool installation & certificate generation.
  • VirtualBox will be installed to "\output".
  • To move VirtualBox installation, stop the VBoxDrv services ("net stop vboxdrv"), move the folder where you want it, and run "loadall.cmd" and "comregister.cmd"

Notes:

Building everything will take up to a few hours, a VirtualBox rebuild should take 1-2 hours. To update library versions or VirtualBox version, updating the link at the top of BUILDVBOX.bat should suffice as long as an archive link (.7z, .tgz, etc.) is changed to another archive link. Archive type shouldn't matter. Exe links will have to be compatible with the existing method for installing them. Downloads are not resumed, but once tools and library sources are acquired and/or built, those steps won't be repeated. Clean manually if necessary. Once you run this tool, always keep "vboxtest.cer" in the root folder. If you move or delete the build folder after using it and don't save "vboxtest.cer", you'll need to run certmgr and remove the "VboxTest" certificate from Personal, Trusted Publisher, and Trusted Root Certification Authorities stores.

About

Easily build VirtualBox for Windows

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages