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

Build Kernel Modules for Code-Ready Containers #911

Closed
yanniszark opened this issue Dec 24, 2019 · 7 comments
Closed

Build Kernel Modules for Code-Ready Containers #911

yanniszark opened this issue Dec 24, 2019 · 7 comments
Labels
kind/question Start a discussion priority/major status/need more information Issue needs more information before it will be looked at status/stale Issue went stale; did not receive attention or no reply from the OP tags/help wanted Extra attention is needed

Comments

@yanniszark
Copy link

yanniszark commented Dec 24, 2019

General information

I want to use CodeReady Containers to check if a software is compatible with Openshift.
Said software needs to install a kernel module.
In order to install the kernel module, I need to build it with the host machine's (CRC VM) kernel headers.
However, kernel headers are missing in the CRC VM and there is no package manager to retrieve them inside the CRC VM.
AFAIK, the CRC VM uses RHEL, which doesn't provide kernel headers without a paid subscription.

Expected

To be able to build a kernel module for the CRC VM.

Actual

Didn't find any kernel headers or package manager to install them inside the VM.

Additional

I used version 1.2.0-4.2.8.
I would appreaciate any information on how to make this work.

@gbraad
Copy link
Contributor

gbraad commented Dec 24, 2019 via email

@ashcrow
Copy link

ashcrow commented Dec 25, 2019

@dustymabe has some really awesome work related to this.

@gbraad
Copy link
Contributor

gbraad commented Dec 25, 2019

I'll expect to hear from him after the holidays... I'll ping him: @dustymabe (reached out to him on slack too).

@gbraad
Copy link
Contributor

gbraad commented Jan 7, 2020

We discussed this and several things will be brought up; like headers and development need an entitlement, and not being available in the developer subscription?

Some of the tests and work can be found here: https://github.com/dustymabe/kmods-via-containers, coreos/fedora-coreos-tracker#249

@gbraad gbraad added kind/question Start a discussion priority/major status/need more information Issue needs more information before it will be looked at tags/help wanted Extra attention is needed labels Jan 7, 2020
@cfergeau
Copy link
Contributor

cfergeau commented Jan 7, 2020

Regarding the availability of the kernel headers, I created a RH developer subscription, and I can find the kernel headers which should match what is used by crc at https://access.redhat.com/downloads/content/kernel-headers/4.18.0-147.0.3.el8_1/x86_64/fd431d51/package

Then as Gerard's said, good integration of kernel module builds in openshift is work in progress at the moment.

@gbraad
Copy link
Contributor

gbraad commented Jan 7, 2020

Note: RHCOS does come with a ostree command to perform a layered installation, but this is not meant to create a 'wrokstation'-like OS to perform builds. This should best be tried from a UBI image or a container from which the result gets used.

@stale
Copy link

stale bot commented Mar 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Issue went stale; did not receive attention or no reply from the OP label Mar 7, 2020
@stale stale bot closed this as completed Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Start a discussion priority/major status/need more information Issue needs more information before it will be looked at status/stale Issue went stale; did not receive attention or no reply from the OP tags/help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants