Question about installation of the kernal driver drbd-9.2.12

Hello everyone

My question is simple im going through the source code of drbd-9.2.12.

I see that the source contines docker files for various Linux distros like Ubuntu and RHEL. My question is when i done building the container what path do i mount in order to load the drives.

My use case is im trying to build an openstack cloud for a project and want to use linstor as the backend for cinder. Im tying to make it easy to deploy with just custom docker containers

hello again

GOOD NEWS. I found a way to do it.

First the docker file needed some work by addin buid esentals and

  1. gcc-12
  2. build-essential
  3. added argument for drbd to fetch

now the Dockerfile for Ubuntu jammy looks like so

FROM ubuntu:jammy

ENV DRBD_VERSION=9.2.12

RUN apt-get update && \
        apt-get install -y \
                curl \
                diffutils \
                elfutils \
                gcc \
                gnupg \
                kmod \
                make \
                patch \
                perl \
                python3-setuptools \
                gcc-12 \
                build-essential \
        && \
        apt-get clean && \
        cd /tmp && \
        curl -fsSL https://github.com/LINBIT/python-lbdist/archive/master.tar.gz | tar vxz && \
        ( cd python-lbdist-master && python3 setup.py install ) && \
        rm -rf python-lbdist-master

#COPY /drbd.tar.gz /

RUN curl -fsSL https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -o /drbd.tar.gz

COPY /pkgs /pkgs

COPY /entry.sh /

ENTRYPOINT ["/entry.sh"]

and the command to then load the kernel modules is this

sudo docker run -it --rm --privileged   -v /lib/modules:/lib/modules   -v /usr/src:/usr/src   <name of container build from docker file> --debug