Skip to content

[v18] Add Linux VNet systemd, dbus, polkit files to the teleport-connect package#64737

Open
tangyatsu wants to merge 1 commit intobranch/v18from
tangyatsu/vnet-linux-systemd-dbus-polkit-files-v18
Open

[v18] Add Linux VNet systemd, dbus, polkit files to the teleport-connect package#64737
tangyatsu wants to merge 1 commit intobranch/v18from
tangyatsu/vnet-linux-systemd-dbus-polkit-files-v18

Conversation

@tangyatsu
Copy link
Copy Markdown
Contributor

@tangyatsu tangyatsu commented Mar 17, 2026

Backports #64362

changelog: Add VNet support for Teleport Connect on Linux

Manual Test Plan

Test Environment

any Linux distro with systemd, D-Bus and polkit

Test Cases

  • Build and install teleport-connect package
  • Verify VNet files are installed in expected paths
  • Verify VNet can be started from Teleport Connect UI.
  • Remove teleport-connect, verify VNet files are removed.

@tangyatsu tangyatsu marked this pull request as ready for review March 17, 2026 21:56
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1b0c6d1df

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

[Service]
Type=dbus
BusName=org.teleport.vnet1
ExecStart=/usr/local/bin/tsh vnet-daemon
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not start Linux VNet with unsupported tsh subcommand

This unit starts tsh vnet-daemon, but on Linux that subcommand is not registered: tool/tsh/common/vnet_nodaemon.go is built for !darwin and returns vnetCommandNotSupported, so the daemon entrypoint is unavailable on this platform. As a result, D-Bus/systemd activation of teleport-vnet.service will fail immediately, making the packaged Linux VNet service non-functional.

Useful? React with 👍 / 👎.

org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || true
}

if has_systemd; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Install VNet files regardless of current systemd runtime

The new post-install logic copies all VNet dbus/polkit/systemd files only when has_systemd is true, which depends on /run/systemd/system existing at install time. In chroot/image-build installs (where PID1 is not systemd), this condition is false even for systemd-based target OSes, so the package silently skips installing required VNet integration files and leaves the feature unavailable until reinstall.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built Connect using code from tangyatsu/vnet-linux-v18 and tangyatsu/vnet-linux-systemd-dbus-polkit-files-v18. I did some light testing and it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants