Open benarent opened 3 years ago
My hunch is that AWS modifies the naming scheme in /proc/sys/kernel/osrelease
totally different than what we are expecting. That's why maybe it fails to compare
the versions correctly even if we explicitly require no kernel less than 4.18.0
.
Can you run this command inside the instance where teleport
runs? (and paste here the output?)
cat /proc/sys/kernel/osrelease
Or if you can't do this, I would happily spin an aws instance myself (If I can with the free account) and test it myself. Can you add more details like, what type of instance you used?
Ran into this same issue using amazon linux 2 AMI's. Mine returns, however the error specifies a minimum kernel of
cat /proc/sys/kernel/osrelease 5.4.204-113.362.amzn2.x86_64
riginal Error: *trace.BadParameterError incompatible kernel found, minimum supported kernel is 5.8.0
Stack Trace:
/go/src/github.com/gravitational/teleport/lib/bpf/common.go:151 github.com/gravitational/teleport/lib/bpf.IsHostCompatible
/go/src/github.com/gravitational/teleport/lib/bpf/bpf.go:129 github.com/gravitational/teleport/lib/bpf.New
/go/src/github.com/gravitational/teleport/lib/service/service.go:1928 github.com/gravitational/teleport/lib/service.(*TeleportProcess).initSSH.func1
/go/src/github.com/gravitational/teleport/lib/service/supervisor.go:521 github.com/gravitational/teleport/lib/service.(*LocalService).Serve
/go/src/github.com/gravitational/teleport/lib/service/supervisor.go:269 github.com/gravitational/teleport/lib/service.(*LocalSupervisor).serve.func1
/opt/go/src/runtime/asm_amd64.s:1581 runtime.goexit
User Message: incompatible kernel found, minimum supported kernel is 5.8.0] service:ssh.node service/supervisor.go:274
Description
What happened:
While Testing Cloud, I created a new instance and tried to setup BPF Session Recording. It didn't connect, it looks like it failed due to a kernel mis-match.