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

fix: Mount /usr/src in pod template #77

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

joestringer
Copy link
Contributor

@joestringer joestringer commented Aug 9, 2019

Ensure that /usr/src is mounted, since several common distributions link
/lib/modules/$(uname -r)/build to /usr/src/kernels/$(uname -r) or
/usr/src/linux-headers-$(uname -r).

This was required for me to successfully locate kernel headers on Amazon Linux 2.

Fixes: #76

Ensure that /usr/src is mounted, since several common distributions link
/lib/modules/$(uname -r)/build to /usr/src/kernels/$(uname -r) or
/usr/src/linux-headers-$(uname -r).

Fixes: iovisor#76

Signed-off-by: Joe Stringer <[email protected]>
@fntlnz
Copy link
Member

fntlnz commented Aug 15, 2019

Thanks for this @joestringer !
I didn't know about that

@fntlnz fntlnz changed the title tracejob: Mount /usr/src in pod template fix: Mount /usr/src in pod template Aug 15, 2019
@fntlnz fntlnz merged commit 82e3597 into iovisor:master Aug 15, 2019
@joestringer joestringer deleted the mount-usr-src branch August 15, 2019 21:43
@stafot
Copy link

stafot commented Jun 7, 2020

@joestringer Because I am facing the same with Amazon Linux 2. Apart from your change is something that we need to do on the node? I am using the binary of second pre-release which should contain your fix. But still getting error as mentioned here.
The trace i am trying to run looks like this.

kubectl trace run --serviceaccount=kubectltrace ip-10-x-x-x.ec2.internal -f udpconnect.bt

@joestringer
Copy link
Contributor Author

@stafot yes, the kernel headers must be installed on the node. Some others have reported more specific details to get it working on different distros in the issue #76 .

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.

Missing header error while trying to run a trace
3 participants