vm.allocate works