aerokube / windows-images

Step by step instructions for building Docker images with Windows
Apache License 2.0
221 stars 44 forks source link

Problems with VNC #22

Open bbartok76 opened 5 years ago

bbartok76 commented 5 years ago

I have built a docker container using your instructions. I've built the QEMU from source (version 4.1.0) both on the host (to make the windows image and snapshot) and in the docker image.

When I'm running the docker container I see the following on the console:

$ docker run -it --rm --privileged -p 5900:5900 -p 4444:4444 selenoid/win_ie:11
Waiting xvfb...

 --- x11vnc loop: 1 ---

 --- x11vnc loop: waiting for: 43

PORT=5900
VNC server running on 127.0.0.1:5901

It seems to me that the QEMU also launches a VNC server on the 5901 port. When I run the qemu with the -vnc :0 option I got the following error message:

qemu-system-x86_64: -vnc :0: Failed to find an available port: Address already in use

The result: though I can connect to container with VNC on the 5900 port but I only can see a black screen.

aandryashin commented 5 years ago

You have to configure qemu to use sdl library for graphical output and not vnc, please check command line options.

bbartok76 commented 5 years ago

Thank you very much. I had to rebuild the qemu from source and finally it partially solved :) the problem: image