Skip to main content
Community Scripts logo
Skip to Content
Tools & Add-onsAdd-ons

NetBird

Install the NetBird client into an existing Debian or Ubuntu LXC container from the Proxmox VE host.

add-netbird-lxc.sh gives an existing container access to /dev/net/tun and installs NetBird inside it. It does not connect the container to a NetBird network.

Run itOn the Proxmox VE host. require_pve_host exits with code 232 anywhere else
TargetAn existing LXC container picked from a list
Container OSDebian or Ubuntu. Anything else, Alpine included, exits with code 238
PortNone
Sourcetools/addon/add-netbird-lxc.sh

Run

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/add-netbird-lxc.sh)"

Prompts

PromptAnswer
This will add NetBird to an existing LXC Container ONLY. Proceed(y/n)?y continues, n exits. Anything else asks again
Select a container to add NetBird to: (list titled Containers on <node>)Pick one container from pct list

What it changes

On the host:

  • Starts the container if it is not running and waits until pct status reports running.

  • Appends two lines to /etc/pve/lxc/<CTID>.conf:

    lxc.cgroup2.devices.allow: c 10:200 rwm
    lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

Inside the container:

  • Installs curl if missing, plus ca-certificates and gpg.
  • Removes the old /usr/share/keyrings/netbird-archive-keyring.gpg and adds the https://pkgs.netbird.io/debian repository (suite stable, component main) with setup_deb822_repo.
  • Installs the netbird-ui package.
  • If the container has a docker.service unit, writes /etc/systemd/system/netbird.service.d/after-docker.conf so NetBird starts after Docker (After=docker.service, Wants=docker.service).

No credentials are created.

After the install

Reboot the container so the new device entries apply, then run inside it:

netbird up

Update

The script has no update path and installs no update_ helper. NetBird comes from an APT repository, so apt inside the container updates it.

Remove

The script has no uninstall path. Remove the package inside the container and delete the two lines from the container configuration by hand.

Limits

  • The two configuration lines are appended without checking whether they already exist. Running the script twice against the same container leaves duplicate entries in /etc/pve/lxc/<CTID>.conf.
  • The container list has no cancel branch: cancelling the dialog ends the script through its error handler.
  • Only LXC containers on the node you run it on are listed.