Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console Disconnect Action Logout user #868

Open
shubhaOracle opened this issue Jun 8, 2023 · 0 comments
Open

Console Disconnect Action Logout user #868

shubhaOracle opened this issue Jun 8, 2023 · 0 comments
Labels

Comments

@shubhaOracle
Copy link
Contributor

Affected version
oVirt-4.5.4-1

Describe the bug

It provides four actions on disconnect.
• Lock screen - This is the default option. For all Linux machines and for Windows desktops this locks the currently active user session. For Windows servers, this locks the desktop and the currently active user.
• Logout user - For all Linux machines and Windows desktops, this logs out the currently active user session. For Windows servers, the desktop and the currently active user are logged out.
• Shutdown virtual machine - Initiates a graceful virtual machine shutdown.
• Reboot virtual machine - Initiates a graceful virtual machine reboot.
In my testing, the shutdown and reboot options worked. However, lock screen and logout user option did not work for me.

I looked around and found out that qemu-guest agent has no command to log off a user. I see ovirt-guest-agent has some code to logout user as described below - https://github.com/oVirt/ovirt-guest-agent/blob/master/ovirt-guest-agent/LogoutActiveUser.py
However, it turns out that the ovirt-guest-agent is not supported anymore. So I am wondering how the ‘lock screen’ and ‘logout user’ is implemented and whether it is still supported/supposed to work?

To reproduce

  1. Create VM with console disconnect action set to logout.
  2. Start VM and install qemu-guest-agent
  3. Start the VM and connect to the console
  4. Disconnect the console. Connect to the console again. User is logged to previous session

Expected behavior

When console is disconnected, user is logged out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant