Windows 10 reboots itself after installing updates

Was wondering why my linux network share wasn’t connected on my laptop. Turns out Windows rebooted itself on my desktop, closing the virtual machine. I only know that’s what happened, because there was a notification that said updates were installed.