OMV 3.0 dnsmasq Plugin

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • florianb wrote:

      Is there any other (GUI) DNS/DHCP server available in OMV3?
      Not that I know of.

      florianb wrote:

      Not having any kind of DNS/DHCP server in OMV 3 would be really a show-stopper for me and a reason to either remain on OMV2 or switch to another NAS OS.
      I don't understand why a DNS/DHCP server has to be on a NAS let alone have to have a plugin. Two of six commercial NASes I looked at have this ability.

      florianb wrote:

      Of course one could always configure it manually.
      There are dockers out there that have a web interface and we have a docker plugin. Another option...


      florianb wrote:

      But there's already a lot that has to be configured manually (i.e. no more Virtualbox-gui)
      Well since there is a virtualbox gui (plugin works as far as I know), what else has to be manually configured?
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      florianb wrote:

      Is there any other (GUI) DNS/DHCP server available in OMV3?
      Not that I know of.

      florianb wrote:

      Not having any kind of DNS/DHCP server in OMV 3 would be really a show-stopper for me and a reason to either remain on OMV2 or switch to another NAS OS.
      I don't understand why a DNS/DHCP server has to be on a NAS let alone have to have a plugin. Two of six commercial NASes I looked at have this ability.

      florianb wrote:

      Of course one could always configure it manually.
      There are dockers out there that have a web interface and we have a docker plugin. Another option...

      florianb wrote:

      But there's already a lot that has to be configured manually (i.e. no more Virtualbox-gui)
      Well since there is a virtualbox gui (plugin works as far as I know), what else has to be manually configured?

      I get your point, but it is what I was expecting. Argumenting with why something has to be available as a plugin or be installed on a NAS, you could question a lot of the plugins currently available in OMV2 as well (At least everything that has to do with multimedia). I didn't look at all OMV3 plugins that are available right now but I found a post where someone said Virtualbox would not be coming anymore (Thanks for the response that it is coming! :-)), and then this thread about dnsmasq. I do respect the fact that obviously a lot of users require having multimedia applications on their OMV2 NAS and (almost?) nobody uses DHCP on their NAS. It was just nice for me to have my basic services that don't require a lot of CPU and memory running on the same machine.

      In my eyes, the strength of OMV lies in its nice-looking user interface with easy configurable options. One can basically get a NAS up and running within minutes and with only little knowledge of what is actually happening under the hoods. From what I understand, and please correct me if I'm wrong, the docker images don't provides a nice looking user interface. So I could as well just install them on a bare headless debian server.

      It looks like its a lot of work to convert dnsmasq to OMV3, so it's perfectly fine if it's not yet available. I also understand that since there is only a small group of people asking for dnsmasq nobody wants or has time to convert dnsmasq to OMV3. But I don't understand what target audience OMV is when there is JDownloader, *NZB, Teamspeak available but dnsmasq should not be installed on a NAS.
    • I only bring up these arguments when it applies to plugins that are not ported. If someone chooses to port them, I don't care if they should or should not be on a typical NAS because the work is being done by someone who wants to do that work. But, if someone is expecting me (pretty much no one else is helping) to port them, I am going to tell people why I don't want to port it.

      florianb wrote:

      I found a post where someone said Virtualbox would not be coming anymore (Thanks for the response that it is coming!
      It isn't coming. It is already ready.


      florianb wrote:

      But I don't understand what target audience OMV is when there is JDownloader, *NZB, Teamspeak available but dnsmasq should not be installed on a NAS.
      Different plugin maintainers have different opinions on what a NAS should be used for. Obviously someone wants to work on jdownloader, nzb,etc. I don't want to work on dnsmasq.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      I only bring up these arguments when it applies to plugins that are not ported. If someone chooses to port them, I don't care if they should or should not be on a typical NAS because the work is being done by someone who wants to do that work. But, if someone is expecting me (pretty much no one else is helping) to port them, I am going to tell people why I don't want to port it.

      florianb wrote:

      I found a post where someone said Virtualbox would not be coming anymore (Thanks for the response that it is coming!
      It isn't coming. It is already ready.

      florianb wrote:

      But I don't understand what target audience OMV is when there is JDownloader, *NZB, Teamspeak available but dnsmasq should not be installed on a NAS.
      Different plugin maintainers have different opinions on what a NAS should be used for. Obviously someone wants to work on jdownloader, nzb,etc. I don't want to work on dnsmasq.

      OK, I understand. Thanks for your answer.
    • @ryecoaaron:
      I would like to test the plugin, but get an error message when configuring:

      Source Code

      1. Fehler #0: exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start dnsmasq 2>&1' with exit code '1': Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.' in /usr/share/php/openmediavault/system/process.inc:175 Stack trace: #0 /usr/share/php/openmediavault/system/systemctl.inc(83): OMV\System\Process->execute(Array, 1) #1 /usr/share/php/openmediavault/system/systemctl.inc(101): OMV\System\SystemCtl->exec('start', NULL, false) #2 /usr/share/openmediavault/engined/module/dnsmasq.inc(56): OMV\System\SystemCtl->enable(true) #3 /usr/share/openmediavault/engined/rpc/config.inc(189): OMVModuleDnsmasq->startService() #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array) #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array) #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatus5C...', '/tmp/bgoutput4Q...') #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #9 /usr/share/openmediavault/engined/rpc/config.inc(208): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array) #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array) #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array) #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1) #14 {main}

      What do I have to do?

      Thanks and kind regards.
    • Source Code

      1. root@terra:~# systemctl status dnsmasq
      2. ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
      3. Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
      4. Drop-In: /run/systemd/generator/dnsmasq.service.d
      5. └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
      6. Active: failed (Result: exit-code) since Di 2017-04-18 12:58:47 CEST; 13min ago
      7. Apr 18 12:58:47 terra dnsmasq[7343]: dnsmasq: Syntaxprüfung OK.
      8. Apr 18 12:58:47 terra dnsmasq[7346]: dnsmasq: unzulässiger DHCP-Bereich in Zeile 33 von /etc/dnsmasq.d/omv.conf
      9. Apr 18 12:58:47 terra systemd[1]: dnsmasq.service: control process exited, code=exited status=1
      10. Apr 18 12:58:47 terra systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
      11. Apr 18 12:58:47 terra systemd[1]: Unit dnsmasq.service entered failed state.
      12. root@terra:~#
      Display All

      Source Code

      1. root@terra:~# journalctl -xn
      2. -- Logs begin at Di 2017-04-18 11:34:15 CEST, end at Di 2017-04-18 13:13:09 CEST. --
      3. Apr 18 13:13:09 terra autoshutdown.sh[975]: Apr 18 13:13:09: : local6 autoshutdown[975]: DEBUG: ' _check_system_active(): _check_hddio not called -> CNT: 1 '
      4. Apr 18 13:13:09 terra logger[9332]: autoshutdown[975]: DEBUG: ' _check_system_active(): _check_hddio not called -> CNT: 1 '
      5. Apr 18 13:13:09 terra autoshutdown.sh[975]: Apr 18 13:13:09: : local6 autoshutdown[975]: DEBUG: ' _check_system_active(): _check_processes not called -> CNT: 1 '
      6. Apr 18 13:13:09 terra logger[9335]: autoshutdown[975]: DEBUG: ' _check_system_active(): _check_processes not called -> CNT: 1 '
      7. Apr 18 13:13:09 terra autoshutdown.sh[975]: Apr 18 13:13:09: : local6 autoshutdown[975]: DEBUG: ' _check_system_active(): _check_loadaverage not called -> CNT: 1 '
      8. Apr 18 13:13:09 terra logger[9338]: autoshutdown[975]: DEBUG: ' _check_system_active(): _check_loadaverage not called -> CNT: 1 '
      9. Apr 18 13:13:09 terra autoshutdown.sh[975]: Apr 18 13:13:09: : local6 autoshutdown[975]: DEBUG: ' _check_system_active(): _check_plugin not called -> CNT: 1 '
      10. Apr 18 13:13:09 terra logger[9341]: autoshutdown[975]: DEBUG: ' _check_system_active(): _check_plugin not called -> CNT: 1 '
      11. Apr 18 13:13:09 terra autoshutdown.sh[975]: Apr 18 13:13:09: : local6 autoshutdown[975]: INFO: ' sleep for 180s.'
      12. Apr 18 13:13:09 terra logger[9344]: autoshutdown[975]: INFO: ' sleep for 180s.'
      13. root@terra:~#
      Display All
      Images
      • DNSmasq.PNG

        105.23 kB, 1,674×939, viewed 73 times
    • It says you have an invalid dhcp scope. For pxe to work with dnsmasq setup as the proxy dhcp server, you need to enable dhcp and specify a lease network with first and last IP addresses. That is what I do and I don't have port = 0 in extra options.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • omavoss wrote:

      without dnsmasq plugin my omv connect the internet, with the plugin connect omv to internet impossible.
      What must I do?
      On my system, I don't have the port = 0 option and my dns server is set to localhost (127.0.0.1) in the network setup.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • @ryecoaaron:

      I changed the dnsmasq configuration, no connect to internet.

      I enable the dnsmasq plugin:

      Source Code

      1. root@terra:~# ping google.com
      2. ping: unknown host google.com
      3. root@terra:~#

      I disable the plugin:

      Source Code

      1. root@terra:~# ping google.com
      2. PING google.com (216.58.214.110) 56(84) bytes of data.
      3. 64 bytes from fra16s05-in-f110.1e100.net (216.58.214.110): icmp_seq=1 ttl=56 time=39.8 ms
      4. 64 bytes from fra16s05-in-f110.1e100.net (216.58.214.110): icmp_seq=2 ttl=56 time=39.3 ms
      5. 64 bytes from fra16s05-in-f110.1e100.net (216.58.214.110): icmp_seq=3 ttl=56 time=39.2 ms
      6. 64 bytes from fra16s05-in-f110.1e100.net (216.58.214.110): icmp_seq=4 ttl=56 time=39.3 ms
      7. 64 bytes from fra16s05-in-f110.1e100.net (216.58.214.110): icmp_seq=5 ttl=56 time=39.3 ms
      8. ^C
      9. --- google.com ping statistics ---
      10. 5 packets transmitted, 5 received, 0% packet loss, time 4003ms
      11. rtt min/avg/max/mdev = 39.222/39.428/39.823/0.271 ms
      12. root@terra:~#
      Display All

      Please help my OMV, thank you.
      Images
      • DNSmasq.PNG

        66.31 kB, 1,471×861, viewed 72 times
    • You changed the wrong dns server field. I was referring to the network adapter dns server for the machine not the field in the dnsmasq plugin.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Hello all.

      i gently push this up.

      I set up my RPI2 with this settings. The connection is also good and it works. But the DHCP-Serivce is not active - i became an error (see attachment).

      And when i startet a Boot-Image from PXE (bsp. "Clonzilla 2.3.2-22 x86_32i586 live") then became an massage: "nfsmount: need a path" and this image failt to boot.

      can anyone help me?
      Images
      • omv_pxe1.PNG

        83.41 kB, 1,009×948, viewed 38 times
    • You don't have a lease network selected. I'm guessing you are going to say there wasn't anything in the drop down which means you are using dhcp for the host's address. You have to use a static ip for the host.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!