Hi Shantanu,
Have you got a chance to check the event viewer console in the virtual machine to see any hints registered there before the unexpected restart? system and Application and System sections should have some details about the reason for the restart
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--