apache / apache/cloudstack

Allow multiple simultaneous console viewers for KVM user VMs

Đang mở
#13,869 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
component:console-proxy component:kvm type:enhancement
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

### The required feature described as a wish

##### ISSUE TYPE

* Feature Idea

##### COMPONENT NAME

~~~text
KVM / Console Proxy
~~~

##### CLOUDSTACK VERSION

~~~text
Behavior reproduced on 4.22.1.0.
Feature implementation targets current main (4.23.0.0-SNAPSHOT).
~~~

##### CONFIGURATION

KVM user VMs using the standard CloudStack Console Proxy / noVNC console.

##### OS / ENVIRONMENT

KVM-based CloudStack environment.

##### SUMMARY

Currently, when two users attempt to access the console of the same KVM user VM,
opening the second console disconnects the first viewer.

The Console Proxy already supports using a unique console session UUID as the
viewer key when `sessionRequiresNewViewer` is enabled. This capability can be
used to allow multiple simultaneous console viewers for KVM user VMs.

The proposed change adds a global setting:

`consoleproxy.kvm.multiple.viewers.enabled`

The setting defaults to `false` to preserve the existing single-viewer behavior.

When enabled, each console request for a KVM user VM receives a unique viewer
session so multiple users can remain connected to the same VM console
simultaneously.

The change is restricted to KVM user VMs and does not alter console behavior for
system VMs or other hypervisors.

##### STEPS TO REPRODUCE

~~~text
1. Start a KVM user VM.
2. Log in to CloudStack as User A and open the VM console.
3. Log in separately as User B and open the console of the same VM.
4. Observe User A's console session.
~~~

##### EXPECTED RESULTS

~~~text
Both users should be able to remain connected to the same VM console when
multiple console viewers are enabled.
~~~

##### ACTUAL RESULTS

~~~text
Opening the console as User B disconnects the existing console session for
User A.
~~~

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách xử lý Console Proxy hiện có đối với các yêu cầu console của user VM trên KVM và hành vi của sessionRequiresNewViewer. Xác minh setting mới consoleproxy.kvm.multiple.viewers.enabled sẽ ảnh hưởng đến các phiên viewer như thế nào, đồng thời giữ nguyên hành vi hiện tại khi setting bị tắt và đối với system VM hoặc các hypervisor khác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
backend, cloud
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.