make sure to stop vm before deploying vmimage.