I really want to refactor some of the code. build-inside-vm.sh is getting big (357 lines).
build-inside-vm.sh