Setting vm password before returning