Code Monkey home page Code Monkey logo

docker_dhcp_nfs_tftp_server's People

Contributors

florenttomasin avatar omar-sharif-nautilus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker_dhcp_nfs_tftp_server's Issues

dhcp fails to run when running this docker on the ubuntu 16.04

I made small change in env.conf to set minimal parameters for nfs and tftp directory path and interface on which dhcp needs to run. That change is as follows

diff --git a/env.conf b/env.conf
index 2f7b426..4b36241 100644
--- a/env.conf
+++ b/env.conf
@@ -10,7 +10,8 @@ DOCKER_TAG=buster-slim
 ################################
 # NFS shared directory
 # Default: [${PWD}/nfs]
-NFS_DIR=${PWD}/nfs
+#NFS_DIR=${PWD}/nfs
+NFS_DIR=/nfsboot
 
 ################################
 # Network Port Mapping
@@ -33,4 +34,4 @@ PORT_69_UDP=69
 ################################
 # TFTP shared directory
 # Default: [${PWD}/tftp]
-TFTP_DIR=${PWD}/tftp
+TFTP_DIR=/tftpboot
diff --git a/etc/default/isc-dhcp-server b/etc/default/isc-dhcp-server
index 14e83ab..095b946 100644
--- a/etc/default/isc-dhcp-server
+++ b/etc/default/isc-dhcp-server
@@ -14,5 +14,5 @@ DHCPDv4_PID=/var/run/dhcpd.pid
 
 # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
 #      Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACESv4=""
+INTERFACESv4="eth1"
 #INTERFACESv6=""

After that when I run docker container I see that dhcp fails as follows,

./run.sh: Using Docker Host network mode.
Starting services...
DHCP init...
Launching IPv4 server only.
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was: 
/usr/sbin/dhcpd: error while loading shared libraries: libirs-export.so.161: cannot stat shared object: Permission denied
TFTP init...
[....] Starting HPA's tftpd: in.tftpdNFS init...
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Exporting directories for NFS kernel daemon....
[ ok ] Starting NFS kernel daemon: nfsd mountd.
exporting *:/nfs
Started...
^CSIGTERM caught, terminating process(es)...
NFS Terminate...
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
TFTP Terminate...
[ ok ] Stopping HPA's tftpd: in.tftpd.
DHCP Terminate...

May be I am missing something or may be there is an error ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.