Native Support for VS Code Remote (SSH) / Antigravity Connections #2402
Unanswered
yougotborked
asked this question in
Home Assistant OS & Supervisor
Replies: 2 comments
|
I second your petition! It'd be really usefull! |
0 replies
|
VS Code Server supports musl—at the very least, version 1.108.2 (Universal) does. So the problem is on Antigravity’s side; they didn’t handle it. UPDATE: UPDATE2: The Pty Host reports the following error; on Alpine, /bin/sh points to busybox. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature
I would like to request native support for connecting to the Home Assistant OS host using VS Code Remote (SSH). Currently, the connection fails because the host (Alpine Linux) lacks the necessary
glibccompatibility libraries required by the VS Code Server (Node.js binary) and because SSH TCP forwarding is disabled by default.Specifically, we need:
glibc-linked binaries. Thegcompatpackage is often insufficient (missing symbols likefcntl64). We found thatsgerrand/alpine-pkg-glibcworks but requires manual installation.libstdc++is linked againstmusl. External binaries need aglibc-compatiblelibstdc++.so.6.sshd_confighasAllowTcpForwarding no, which blocks the VS Code connection tunnel. This should be enabled or configurable.Use cases
Current workarounds
We successfully established a connection by manually modifying the host (which is not persistent or recommended for production):
sgerrand/alpine-pkg-glibc(v2.35).libstdc++.so.6andlibgcc_s.so.1from Debian Bullseye (GCC 10) packages and placed them in/usr/glibc-compat/lib. (Newer Debian versions were incompatible with the available alpine-glibc version)./lib64/ld-linux-x86-64.so.2pointing to the glibc loader./etc/ssh/sshd_configto setAllowTcpForwarding yesand restarted the SSH service.Anything else?
The specific incompatibility found was that the system's
libstdc++could not be loaded by the glibc-linked Node binary because it depended onmuslsymbols. Providing a separate, glibc-compatiblelibstdc++in a compatibility path (like/usr/glibc-compat/lib) is critical.Also, the "administratively prohibited" error for the SOCKS tunnel was purely due to
AllowTcpForwarding no.All reactions