To run your process in background, you need Unattended License
For attended license you have to always login to the system and make it appear the screen, It will not work once you minimize the screen or logout the VM
For Unattended, no manual interaction is required, It can unlock your system and run the flow according to your schedule in background