Go Reference

golang.org/x/build/cmd/debugnewvm

The debugnewvm command creates and destroys a VM-based buildlet with lots of logging for debugging.