How can I avoid screen lock on SPICE disconnect on RHEL

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Virtualization 3.x
  • Red Hat Enterprise Linux Workstation 6

Issue

When the SPICE client is closed, the VM connected with it will lock its screen. This is sometimes undesired

Resolution

The screen lock can be avoided by changing the PROGRAM in /etc/security/console.apps/ovirt-locksession to /bin/true like this:

# cat /etc/security/console.apps/ovirt-locksession
PROGRAM=/bin/true
#

Also, there is an RFE for having a more polished solution.

Root Cause

This is desired behaviour, which will be made configurable in newer versions of RHEV.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.