Hello. I have setup a Windows 11 VM on a Ubuntu 24.04 host. The Windows guest starts up successfully. I am also able to connect via VNC to it (using qemu's inbuilt VNC) and use the Windows VM. My qemu command looks like this:
My problem is when I try to run selenium tests on this VM. The request to the WebDriver server times out when I connect it using selenium 4 Python library.
So I tried calling a static URL using curl, even this times out and is stuck at a stage shown below:
#From Linux Host to Windows Guest
$ curl -v 127.0.0.1:4444/wd/hub/static/resource/hub.html
* Trying 127.0.0.1:4444...
* Connected to 127.0.0.1 (127.0.0.1) port 4444
> GET /wd/hub/static/resource/hub.html HTTP/1.1
> Host: 127.0.0.1:4444
> User-Agent: curl/8.5.0
> Accept: */*
>
What I have observed so far:
I face this issue even in the Dockerized version, but I am trying to troubleshoot by running it directly on the host.
This endpoint works when I call it within the Windows VM
curl.exe 10.0.2.15:4444/wd/hub/static/resources/hub.html
I have a doubt if there is something going wrong in qemu's networking config. Any help would be highly appreciated! :-)
Hello. I have setup a Windows 11 VM on a Ubuntu 24.04 host. The Windows guest starts up successfully. I am also able to connect via VNC to it (using qemu's inbuilt VNC) and use the Windows VM. My qemu command looks like this:
My problem is when I try to run selenium tests on this VM. The request to the WebDriver server times out when I connect it using selenium 4 Python library.
So I tried calling a static URL using curl, even this times out and is stuck at a stage shown below:
What I have observed so far:
curl.exe 10.0.2.15:4444/wd/hub/static/resources/hub.html
I have a doubt if there is something going wrong in qemu's networking config. Any help would be highly appreciated! :-)