Skip to content
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

Add Ubuntu kernel for aws instances. #1552

Closed
wants to merge 22 commits into from
Closed

Conversation

mfdii
Copy link
Contributor

@mfdii mfdii commented Dec 4, 2019

This change is needed to compile kernel modules for the AWS specific kernel Ubuntu provides. Tested the script and URLs return as expected. Below is just a snippet.

https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.15.0-1035_4.15.0-1035.37_all.deb
http://security.ubuntu.com/ubuntu/pool/main/l/linux-aws/linux-aws-headers-5.0.0-1011_5.0.0-1011.12_all.deb
https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1081_4.4.0-1081.91_all.deb
http://security.ubuntu.com/ubuntu/pool/main/l/linux-aws/linux-aws-headers-5.0.0-1014_5.0.0-1014.16_all.deb
https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1020_4.4.0-1020.29_all.deb
http://security.ubuntu.com/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1088_4.4.0-1088.99_all.deb
https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1054_4.4.0-1054.63_all.deb
http://security.ubuntu.com/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.15.0-1009_4.15.0-1009.9_all.deb
https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1016_4.4.0-1016.25_all.deb
https://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.18.0-1021_4.18.0-1021.25_all.deb
http://security.ubuntu.com/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.4.0-1041_4.4.0-1041.50_all.deb```



Signed-off-by: Michael Ducy <[email protected]>

@leodido leodido self-requested a review December 4, 2019 17:40
bryanseay and others added 11 commits December 8, 2019 18:57
…ewly built probe (#1558)

* install script now loads latest built probe at tend of script

* fixed modprobe command to remove -r flag

* reverting -r flag in modprobe
* SMAGENT-2165: Disable pre-built probes for 5.4.0

The probe builder needs some work to build modules for Linux 5.4.0. This
change temporarily disables builds for that version.
After 7209e28, we end up with a repo
in `build/googletest-src` that `git clean -d -f -x` does not remove
automatically, causing errors in `mkdir build`.

Since we don't use the test framework to build the driver, disable it.
Create an interface in the container manager to re-request docker container info that includes the size of the container layer. This is relevant when running overlay2. The size request isn't done during the initial request because determining the size can easily take seconds.
* cmake: Look for gtest headers in 'gtest' path suffix

The gtest headers are installed into /usr/include/gtest on Gentoo.
Account for that in the default search path.

sysdig-CLA-1.0-signed-off-by: Michał Górny <[email protected]>

* cmake: Fail if system gtest is not found

sysdig-CLA-1.0-signed-off-by: Michał Górny <[email protected]>

* cmake: Link -lgtest for tests as well

Find and link -lgtest when using system gtest.  It is insufficient
to link -lgtest_main when the tests are directly referencing symbols
from -lgtest as well.

sysdig-CLA-1.0-signed-off-by: Michał Górny <[email protected]>
* add the container cache as a member in container_engine_base
* CRIO support for rw.bytes.used
@breinero
Copy link

breinero commented Jan 6, 2020

Hi Folks, any ETA on getting this PR merged?

fntlnz and others added 5 commits January 10, 2020 20:45
Signed-off-by: Lorenzo Fontana <[email protected]>
The old probe builder used whatever gcc happened to be installed
on the build host, which led to incompatibilities with very old
or very new kernels.

The new builder moves the actual build process to a Docker container
that is chosen based on the actual kernel to build. It also features
a more flexible command line interface (run it without parameters
to see a help message).

A compatibility wrapper for tools using the old script is provided.
Otherwise when building everything, all the kernels get built
with the first builder distro that runs (CentOS if Artifactory creds
for RHEL are present, Ubuntu otherwise)
@krisnova
Copy link
Contributor

krisnova commented Jan 15, 2020

Bump - any update here?

@frankreno
Copy link

Any updates on this fix?

@vsinghal13
Copy link

Any updates?

@nathan-b
Copy link
Contributor

Hi all, sorry for the long delay. We've recently checked in a series of improvements to our probe build process.

A question to everyone asking for updates: has your particular problem gotten any better?

@gnosek
Copy link
Contributor

gnosek commented Apr 3, 2020

We now build Ubuntu AWS probes (since #1576 got merged, with changes greatly inspired by this PR, i.e. taken wholesale), closing this one.

@gnosek gnosek closed this Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.