You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge Feature/limit vnc console sessions to master (xapi-project#6820)
Merge feature VNC console session limitation
This feature adds two new pool-level controls for VNC console
connections.
1. Connection Limiting
New field: pool.limit_console_sessions (boolean, default: false)
When enabled, only one user can connect to each VM/host console at a
time. Additional connection attempts are rejected with an error message
showing who is currently connected.
How it works:
- Tracks active connections per VM/host using unique connection IDs
- Rejects new connections when limit is enabled and one exists
- Automatically cleans up on disconnect
- WebSocket connections are blocked when limiting is enabled
2. Idle Timeout
New field: pool.vm_console_idle_timeout (seconds, default: 0 = no
timeout)
Automatically disconnects idle console sessions after the specified
time. Separate host.console_idle_timeout field exists for control domain
consoles.
How it works:
- Monitors keyboard and mouse activity via RFB protocol parsing
- Resets timer on user input (KeyEvent, PointerEvent)
- Disconnects when idle timeout exceeded
- Default value of 0 preserves existing behavior (no timeout)
0 commit comments