dockur / windows

Windows inside a Docker container.
MIT License
17.49k stars 1.5k forks source link

VM Lag and Screen Resolution Problems #609

Open Arche151 opened 3 months ago

Arche151 commented 3 months ago

Operating system

Ubuntu 22.04

Description

The issues occur with both Firefox and Brave.

Docker compose

name: "winapps"

volumes: data:

services: windows: image: dockurr/windows container_name: windows environment: VERSION: "tiny11" RAM_SIZE: "16G" CPU_CORES: "8" privileged: true ports:

Docker log

❯ Starting Windows for Docker v3.12... ❯ For support visit https://github.com/dockur/windows ❯ CPU: AMD Ryzen 5 7640U w Radeon 760M Graphics | RAM: 79/93 GB | DISK: 204 GB (ext4) | HOST: 6.5.0-1023-oem...

❯ Warning: unexpected clocksource: hpet ❯ Booting Windows using QEMU v8.2.4...

BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,A443F9A3-2662-458E-89BF-D7165B9A180B,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,A443F9A3-2662-458E-89BF-D7165B9A180B,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi ❯ Windows started succesfully, visit http://localhost:8006/ to view the screen... serpent@Serpent-Framework:~/Documents/Coding_Projects/Winapps$

Screenshots (optional)

Screencast from 15.06.2024 09:57:26.webm

kroese commented 3 months ago

Its better to use RDP, the web-viewer is only as a fallback during installation until you can use RDP.

Arche151 commented 3 months ago

Its better to use RDP, the web-viewer is only as a fallback during installation until you can use RDP.

Ah ok, thanks for the explanation and quick reply! I am currently trying to connect to the VM via RDP, but having a hard time.

I'm on Ubuntu 22.04 and can't figure out how to install FreeRDP (3.0.0 or higher) and connect to the Windows VM.

I tried the Flatpak as well as the Nightly Build for Ubuntu. Can you suggest me a way to get FreeRDP working?

kroese commented 3 months ago

Maybe you can use Remmina it is very popular and uses FreeRDP in the background.

Arche151 commented 3 months ago

Maybe you can use Remmina it is very popular and uses FreeRDP in the background.

Unfortunately, I do need FreeRDP, since I want to use winapps and it requires FreeRDP.

I tried Remmina anyway, but I get an error, when trying to connect to the RDP server

image

These are the logs:

remmina-Message: 13:09:29.562: Remmina does not log all output statements. Turn on more verbose output by using "G_MESSAGES_DEBUG=remmina" as an environment variable.
More info available on the Remmina wiki at:
https://gitlab.com/Remmina/Remmina/-/wikis/Usage/Remmina-debugging
xprop:  unable to open display ''
xprop:  unable to open display ''

(org.remmina.Remmina:2): Gtk-WARNING **: 13:09:29.722: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem
[13:09:33:745] [2:19] [ERROR][com.freerdp.core] - tpdu length 72 > tpkt header length 0
[13:09:33:745] [2:19] [ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[13:09:33:745] [2:19] [ERROR][com.freerdp.core] - rdp_client_connect:freerdp_set_last_error_ex ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[13:09:33:745] [2:19] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure
sys:1: Warning: g_path_get_basename: assertion 'file_name != NULL' failed
[13:10:13:126] [2:55] [ERROR][com.freerdp.core] - tpdu length 72 > tpkt header length 0
[13:10:13:126] [2:55] [ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[13:10:13:126] [2:55] [ERROR][com.freerdp.core] - rdp_client_connect:freerdp_set_last_error_ex ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[13:10:13:126] [2:55] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure

I always get this error, no matter what I set the Security Negotiaton Setting to.

kroese commented 3 months ago

Because you are connecting to the web port (8006) and not to the RDP port (3389).

Arche151 commented 3 months ago

Well, now I feel stupid haha.

Thanks for the info. Using port 3389 worked and the VM is snappy!

Though unfortunately, the resolution is really low, even when specifically set to 4k :/

Do you know if there is a setting, that I need to enable or change or something?

kroese commented 3 months ago

I have never used Remmina or FreeRDP myself, so I do not know how to configure them for larger resolutions.

Arche151 commented 3 months ago

I have never used Remmina or FreeRDP myself, so I do not know how to configure them for larger resolutions.

Okay, I see. Thanks for explaining!