# Modprobe error when trying to enable i2c on rpi

**URL:** <https://forums.balena.io/t/modprobe-error-when-trying-to-enable-i2c-on-rpi/4669>\
**Category:** Product support\
**Created:** [December 11, 2018, 8:56am UTC](https://forums.balena.io/t/modprobe-error-when-trying-to-enable-i2c-on-rpi/4669 "2018-12-11T08:56:15Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [December 11, 2018, 9:56am UTC](https://forums.balena.io/t/modprobe-error-when-trying-to-enable-i2c-on-rpi/4669/6 "2018-12-11T09:56:15Z")

</div>

Thanks for sending the file. What you need to do is add the label to the service which informs the supervisor to mount the kernel module directory into the container. This label is `io.balena.features.kernel-modules` and the documentation is available here: [https://www.balena.io/docs/reference/supervisor/docker-compose/#labels](https://www.balena.io/docs/reference/supervisor/docker-compose/#labels).

You may also need to set the privileged flag for the container which is doing the `modprobe`, using `privileged: true` in the service definition.

---

_[View the full topic](https://forums.balena.io/t/modprobe-error-when-trying-to-enable-i2c-on-rpi/4669)._
