Skip to content

ts-pod-cidrs wgengine.NewUserspaceEngine(tun "tailscale0") error: tstun.New("tailscale0"): operation not permitted  #14256

@mt190502

Description

@mt190502

What is the issue?

I'm using tailscale 1.76 in kubernetes environment. When I create subnet router configuration. I get this error in statefulset pod:

tailscale 2024/12/01 11:51:00 wgengine.NewUserspaceEngine(tun "tailscale0") ...                                                                                                                                                                                             │
│ tailscale 2024/12/01 11:51:00 Linux kernel version: 6.11.10-300.fc41.x86_64                                                                                                                                                                                                 │
│ tailscale 2024/12/01 11:51:00 is CONFIG_TUN enabled in your kernel? `modprobe tun` failed with: modprobe: can't change directory to '/lib/modules': No such file or directory                                                                                               │
│ tailscale 2024/12/01 11:51:00 wgengine.NewUserspaceEngine(tun "tailscale0") error: tstun.New("tailscale0"): operation not permitted                                                                                                                                         │
│ tailscale 2024/12/01 11:51:00 flushing log.                                                                                                                                                                                                                                 │
│ tailscale 2024/12/01 11:51:00 logger closing down                                                                                                                                                                                                                           │
│ tailscale boot: 2024/12/01 11:51:00 failed to watch tailscaled for updates: 503 Service Unavailable                                                                                                                                                                         │
│ tailscale 2024/12/01 11:51:00 getLocalBackend error: createEngine: tstun.New("tailscale0"): operation not permitted  

Steps to reproduce

Install tailscale operator with this guide: https://tailscale.com/kb/1236/kubernetes-operator

Then create this connector:

❯ cat subnet-router.yml
apiVersion: tailscale.com/v1alpha1
kind: Connector
metadata:
  name: ts-pod-cidrs
  namespace: tailscale-k8s
spec:
  hostname: kube-internal
  subnetRouter:
    advertiseRoutes:
      - "10.96.0.0/12"
  tags:
    - "tag:k8s-pods"

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

Fedora 41 Cloud Edition (6.11.10-300.fc41.x86_64)

Tailscale version

1.76.6 (in kubernetes pod)

Other software

No response

Bug report

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions