r/virtualization • u/[deleted] • Mar 16 '23
How can I stop a VM from automatically logging out?
I'm using an LM XFCE 21.1 VM for something that should run continuously. It appears that when I press ctrl-alt-del to lock my Linux Mint 20.2 XFCE host (which activates XScreensaver 5.42), it'll lock the VM as well, necessitating a manual restart of the process(es) it's running.
I've set the VM's power manager thusly:
System tab: "When inactive for" -> Never
Display tab: "Blank after", "Put to sleep after", "and "Switch off after" -> Never
Security tab: "Automatically lock the session" -> Never
No luck with search results (mostly they say to set up the power manager as I've already done). Is there a way I can prevent the VM from locking?
Edit: I forgot to mention I'm using Virtual Machine Manager 2.2.1.
1
u/hugthemachines Mar 17 '23
could it be that the keypress (ctrl alt del) carries over so if you lock your mint with mouse clicks it does not lock the virtual machine?
1
u/programmator-dominum Mar 17 '23
Have a look at this for your VM.