Cannot create device tun0 in OpenWRT23 LXC

  • Hey all,


    I have a little issue with LXC image OpenWRT23. When I try to activate OpenVPN in OpenWRT LXC image from OMV7, I see in the VPN logs that I cannot create device tun0 which is needed to get it up and running.

    I compared the setting to a OpenWRT VM. There is a tun0 created in /dev/net/.

    Anyone has OpenWRT running in LXC on OMV and could help?

    All the suggestions to have it fixed is for Proxmox only where you have to add 2 lines to the LXC container config, but I cannot find it in OMV.


    Thanks.

    • Offizieller Beitrag

    All the suggestions to have it fixed is for Proxmox only where you have to add 2 lines to the LXC container config, but I cannot find it in OMV.

    What are those two lines?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    lxc.cgroup2.devices.allow: c 10:200 rwm

    This should help with this line - https://serverfault.com/questi…for-libvirt-lxc-container. You will just need to edit the lxc container's XML.


    lxc.mount.entry: /dev/net dev/net none bind,create=dir

    This is just a bind mount that you can add to the container's /etc/fstab

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • MCno1

    Hat das Label gelöst hinzugefügt.
    • Offizieller Beitrag

    Good to hear.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!