# Question about installation of the kernal driver drbd-9.2.12

**URL:** <https://forums.linbit.com/t/question-about-installation-of-the-kernal-driver-drbd-9-2-12/664>\
**Category:** General\
**Tags:** drbd\
**Created:** [March 10, 2025, 6:01am UTC](https://forums.linbit.com/t/question-about-installation-of-the-kernal-driver-drbd-9-2-12/664 "2025-03-10T06:01:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrodieCyber](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/brodiecyber/32/128_2.png) [@BrodieCyber](https://forums.linbit.com/u/BrodieCyber)\
**Post date:** [March 10, 2025, 6:01am UTC](https://forums.linbit.com/t/question-about-installation-of-the-kernal-driver-drbd-9-2-12/664/1 "2025-03-10T06:01:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BrodieCyber](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/brodiecyber/32/128_2.png) [@BrodieCyber](https://forums.linbit.com/u/BrodieCyber)\
**Post date:** [March 10, 2025, 8:33am UTC](https://forums.linbit.com/t/question-about-installation-of-the-kernal-driver-drbd-9-2-12/664/2 "2025-03-10T08:33:34Z")

</div>

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

```auto
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

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

```
