OMV inside of a container

  • Hi,


    As you can see it's my first post here so please excuse my question was answer previously, searched but didn't find anything.


    So my home project is creating a NAS storage on my RPi4 with the following setup:

    • 1 RPi4 4G
    • Ubuntu as an OS
    • Docker installed
    • On top of a container i want to install OMV
    • Other containers supporting different projects

    I searched all over the web and i couldn't find a solution for this.
    Is it doable?
    Am i wasting my time?
    If it's doable, can you point me to a guide?


    I would also like to mention that my linux skills are low to average, i understand how lightweight virtualization works and i work as a Network Engineer.


    Thank you in advance.

  • Is it doable?

    Nope. OMV doesn't work in a container. I fail to understand why you Ubuntu as the OS (and I am a big Ubuntu fan) if you intend to use it for a NAS?

    i understand how lightweight virtualization works

    Docker isn't virtualization. It uses the host's kernel and you can see all docker processes from the host.

    omv 5.3.9 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • waiting to get any test results from the community.

    Using LXC in proxmox, OMV installs nicely and the web interface is working BUT...


    The sharerootfs plugin reports this error when installing: WARNING: No root filesystem has been found.



    The Physical Disks tab reports this error but not sure where it gets /dev/sda from


    Device '/dev/sda' does not exist.


    omv 5.3.9 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • To make it short: findmnt --first-only --output-all --nofsroot --json "/"

    omv 5.3.9 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • On my side I'm trying to install OMV inside an LXC container on my Turris Omnia router with 2 SATA HDD that I want to dedicate to OMV.

    I started with a Debian Buster container.

    I have managed to expose the two block devices inside the container.


    I'm stuck during installation of OMV because of what seems a stupid issue:


    Code
    Updating service units ...
    Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked.
    /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory
    dpkg: error processing package openmediavault (--configure):
    installed openmediavault package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    openmediavault
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@nas:~#


    I tracked it down to this line :

    https://github.com/openmediava…nmediavault.postinst#L124


    which fails because systemd-netword is masked in the container :

    Code
    root@nas:~# systemctl status systemd-networkd
    ● systemd-networkd.service
    Loaded: masked (Reason: Unit systemd-networkd.service is masked.)
    Active: inactive (dead)


    which comes from the default Debian LXC images : https://github.com/lxc/lxc-ci/…/images/debian.yaml#L1023


    Does OMV really need this service ? Do you know any way I can bypass this ?

    Maybe at least trick OMV by replacing it by a no-op unit ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!