add restart vm mechanism.