-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to build a module for Anthos on-prem kernel (5.4.0-1014-gkeop) #1193
Comments
Hi @ssurovich, provided you have access to kernel headers for the nodes in your cluster, the manual build steps can be used to build drivers. Alternatively, latest versions of collector now contain a built-in BTF enabled driver which may work on your cluster out-of-the-box. This can be enabled by setting the environment variable: |
Hi @Stringy - Thanks for the quick reply - Ill try setting that variable to see if it works. |
Ok, Im using a collector release of 4.0.2 and I have the arg set to core-bfp and still no luck. In the collector logs, it verifies that I did pass the collection-method (User configured collection-method=core_bpf) It looks like its still tryiing to pull a module for the kernel itself, "attempting to download collector-ebpf-5.4.0-1054-gkeop.o" It will be a challenge to create a module, all of my nodes in an air-gap environment and the nodes are appliances, making any additional software/modules a challenge to add. Ive created Falco modules in the past, I just needed to pass access to /usr/src to the deployment - the linux-headers are in that directory on all nodes. Can I create a module using the included headers? |
What exactly doesn't work, do you get any error message with |
Ah sorry, should have added more details. It errors out when attempting to download the kernel object from https://sensor.stackrox.svc:443/kernel-objects/2.4.0/collector-ebpf-5.4.0-1054-gkeops.o.gz Right after that line, a bunch of : Unexpected HTTP request failure (HTTP 500) After 90 failures with the 500 errors: No suitable kernel object downloaded for collector-ebpf-5.4.0-1054-gkeops.o.gz In the diagnostics portion, it says the sensor is connected, under kernel driver candidates: CO.RE eBPG probe (available) and collector-ebpf-5.4.0-1054-gkeops.o.gz (unavailable) Im not sure why it knows I have the core selected and that seems to be passing, but it still tries to get the kernel module that doesnt exist? |
This sounds strange indeed. Could you post the whole log output, ideally with the |
Many thanks, @Stringy , for the hint @ssurovich , collector release 4.0.2 isn't a thing. Try to use 3.15.0 branch. It worked for me: Collector logs with collection-method=core-bpf
versus Collector logs with collection-method=ebpf
|
Sounds like a plan - Willing to try whatever may allow scanning to complete :) Thanks for the heads up - Ill give 3.15.0 a try |
It a challenge to show any logs, all of my environments are air-gapped, no easy way to get any log information to post. Wish I could... |
Any updates from your side @ssurovich ? |
Hi @ssurovich |
The list of supported Kernels dont have anything that works with the appliances Google provides for Anthos on VMware - They always add the gkeop to the kernel, so it will never be found in the supported list.
Can I still use the manually build steps to make a compatible collector for my cluster?
The text was updated successfully, but these errors were encountered: