[GH-ISSUE #499] NoVnc console too slow to type #303

Open
opened 2026-02-27 15:58:10 +03:00 by kerem · 6 comments
Owner

Originally created by @cairoapcampos on GitHub (May 12, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/499

I created a webvirtcloud container using an Ubuntu 20.04 image. I use an nginx reverse proxy in front of webvirtcloud.

I edited the file /srv/webvirtcloud/webvirtcloud/settings.py.

I changed WS_PUBLIC_PORT = 6080 to WS_PUBLIC_PORT = 443.

After this configuration I was able to access the console of Linux and Windows virtual machines.

But when I type users, passwords and commands it is slow. The digits take a long time to appear on the console screen.
On Linux the digits also do not appear correctly.

What can I do to solve this problem?

Originally created by @cairoapcampos on GitHub (May 12, 2022). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/499 I created a webvirtcloud container using an Ubuntu 20.04 image. I use an nginx reverse proxy in front of webvirtcloud. I edited the file `/srv/webvirtcloud/webvirtcloud/settings.py`. I changed `WS_PUBLIC_PORT = 6080` to `WS_PUBLIC_PORT = 443`. After this configuration I was able to access the console of Linux and Windows virtual machines. But when I type users, passwords and commands it is slow. The digits take a long time to appear on the console screen. On Linux the digits also do not appear correctly. What can I do to solve this problem?
Author
Owner

@catborise commented on GitHub (May 12, 2022):

May be it is related with vm. Do you have hardware acceleration for virtualization?
İnstall virt-manager then check it if it is properly working or not, please

<!-- gh-comment-id:1125298063 --> @catborise commented on GitHub (May 12, 2022): May be it is related with vm. Do you have hardware acceleration for virtualization? İnstall virt-manager then check it if it is properly working or not, please
Author
Owner

@cairoapcampos commented on GitHub (May 12, 2022):

The machine has hardware acceleration for virtualization. Characters when using virt-manager appear normally and there is no delay.

In webvirtcloud when I type some "dirt" appears in the console and no characters. Look:

2022-05-12_15-40

<!-- gh-comment-id:1125313849 --> @cairoapcampos commented on GitHub (May 12, 2022): The machine has hardware acceleration for virtualization. Characters when using virt-manager appear normally and there is no delay. In webvirtcloud when I type some "dirt" appears in the console and no characters. Look: ![2022-05-12_15-40](https://user-images.githubusercontent.com/21186839/168146137-1b0dcea0-8ee6-450a-aaee-e38d705f766c.png)
Author
Owner

@catborise commented on GitHub (May 13, 2022):

it is related with spice type console.
please convert console type to VNC. Then check again.

<!-- gh-comment-id:1125658092 --> @catborise commented on GitHub (May 13, 2022): it is related with spice type console. please convert console type to VNC. Then check again.
Author
Owner

@cairoapcampos commented on GitHub (May 13, 2022):

Where do I make this change?

My file /srv/webvirtcloud/webvirtcloud/settings.py:

#
# WebVirtCloud settings
#

# Websock port
WS_PORT = 6080

# Websock host
WS_HOST = '0.0.0.0'

# Websock public port - 80 or 443 if reverse-proxy, else 6080
WS_PUBLIC_PORT = 443

# Websock public host
WS_PUBLIC_HOST = None

# Websock public path
WS_PUBLIC_PATH = "/novncd/"

# Websock Certificate for SSL
WS_CERT = None

# List of console listen addresses
QEMU_CONSOLE_LISTEN_ADDRESSES = (
    ("127.0.0.1", "Localhost"),
    ("0.0.0.0", "All interfaces"),
)

<!-- gh-comment-id:1126225268 --> @cairoapcampos commented on GitHub (May 13, 2022): Where do I make this change? My file `/srv/webvirtcloud/webvirtcloud/settings.py`: ``` # # WebVirtCloud settings # # Websock port WS_PORT = 6080 # Websock host WS_HOST = '0.0.0.0' # Websock public port - 80 or 443 if reverse-proxy, else 6080 WS_PUBLIC_PORT = 443 # Websock public host WS_PUBLIC_HOST = None # Websock public path WS_PUBLIC_PATH = "/novncd/" # Websock Certificate for SSL WS_CERT = None # List of console listen addresses QEMU_CONSOLE_LISTEN_ADDRESSES = ( ("127.0.0.1", "Localhost"), ("0.0.0.0", "All interfaces"), ) ```
Author
Owner

@catborise commented on GitHub (May 13, 2022):

It is an instance property 7ED16D25-EDEA-4E56-BAEE-4075081565C5

<!-- gh-comment-id:1126286624 --> @catborise commented on GitHub (May 13, 2022): It is an instance property ![7ED16D25-EDEA-4E56-BAEE-4075081565C5](https://user-images.githubusercontent.com/1725643/168337387-d01e7a40-eb6a-4db3-8c2d-9c76104ae01e.png)
Author
Owner

@cairoapcampos commented on GitHub (May 13, 2022):

After making the suggested change, the console worked correctly. Thank you very much!

<!-- gh-comment-id:1126316975 --> @cairoapcampos commented on GitHub (May 13, 2022): After making the suggested change, the console worked correctly. Thank you very much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#303
No description provided.