Prevent Ubuntu 14.04 from locking on virtualbox if Windows is locked

I have installed an Ubuntu 14.04 VM with Virtualbox on Windows7,

When I lock my Windows session, then get back to it, Ubuntu session inside the VM is also locked,

How can I prevent Ubuntu VM from locking? (In any situation)


Solution 1:

As thomasa88 suggests, the Win+L command to lock your screen will be received by both your host OS (Windows 7) and your guest OS (Ubuntu).

You have two options to solve this:

  1. While in your guest OS and wishing to lock your computer screen, navigate via the GUI to the host OS taskbar and lock the computer via the "Lock" option. This will prevent your guest OS from also locking.
  2. Change the keyboard shortcut for screen-locking in your guest OS. Follow this solution for Ubuntu: Remap Ubuntu keyboard keys

Here is a screenshot of the final step:

enter image description here

(I don't currently have sufficient reputation to add a comment, so I'm providing this answer.)

Solution 2:

Go to:

Top right corner > System Settings > Brightness and Lock, and adjust the settings according to your needs.

This is done inside your VM.