The code for the VM is hosted on github where a readme file explains the basics requirements of how to build the VM.
There are also several secondary sources which describe certain aspects of the VM:
-
Here the guide, which covers all VM building process in deep detail,
-
There is also a 1:30 hour PharoCast