Open NicolasRouquette opened 11 months ago
Hello 👋
Thank you for opening such a detailed information!
Let's try to narrow down the issue, @NicolasRouquette can you try if this simple configuration 👇 works for you? This way we can verify if the issue is with desktop-lite
Feature of whether other elements of your dev config are interfering/conflicting. It will help us investigate the issue in an easy manner, thanks!
{
"image": "mcr.microsoft.com/devcontainers/base:focal", // works with WSL or use `ubuntu:20.4`
"features": {
"ghcr.io/devcontainers/features/desktop-lite": {
"password": "vscode",
"webPort": "6080"
}
},
"forwardPorts": [
6080
],
"portsAttributes": {
"6080": {
"label": "Web VNC"
}
}
}
Thanks for the suggestion; it makes sense to focus on the desktop-lite
feature with nothing else. I managed to replicate the problem in a simple example here: https://github.com/NicolasRouquette/vscode-devc-ubuntu-desktop
@samruddhikhandale Have you been able to reproduce the problem with my example? https://github.com/NicolasRouquette/vscode-devc-ubuntu-desktop
I had been using this feature successfully when my system was running Windows 10; though I had to use the
wsl-vpnkit
to deal with full-tunnel VPN problems.Now, my system has been updated to Windows 11; I no longer need
wsl-vpnkit
; however, the desktop-lite feature no longer works.Here's my environment:
Unfortunately, I cannot share the Docker image we use, it is based on Ubuntu 20.04 LTS.
I use the
devcontainer
CLI to build an image with all the features I need:where
devcontainer.json
is:The first indication of trouble happens when I start the devcontainer:
In the above, the errors:
sudo: unable to resolve host MT-313357: No address associated with hostname
are due to a missing entry in/etc/hosts
, which is this:To fix this issue, I run this script:
After that, I check that noVNC is running:
and that XtigerVNC is running too:
and that the VNC server is running too:
In VSCode, I see that the ports are associated to running processes:
So, everything looks good; except that I still cannot connect.
http://localhost:6080/vnc.html?password=vscode&autoconnect=true&resize=remote
gives me an error: Failed to connect.
With RealVNC Viewer, I try to connect at localhost:5901, and I get 'Timed out waiting for a response from the computer'
I don't see any errors in the container logs mentioned above.
Interestingly, in the container, I can execute a command like this:
DISPLAY=:0 xterm &
and the xterm window shows up in Windows thanks to WSLg.Can someone help me understand what is going on and how do I make this work again?