Refactor vm bootstrapping

refs #5223