retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.63k stars 362 forks source link

NoVnc console too slow to type #499

Open cairoapcampos opened 2 years ago

cairoapcampos commented 2 years ago

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?

catborise commented 2 years ago

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

cairoapcampos commented 2 years ago

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

catborise commented 2 years ago

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

cairoapcampos commented 2 years ago

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"),
)
catborise commented 2 years ago

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

cairoapcampos commented 2 years ago

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