Fog DHCP service not run since fog 1.3
-
@george1421
Here is dhcp.conf for fog install 1.4:# This file was created by FOG #Definition of PXE-specific options # Code 1: Multicast IP Address of bootfile # Code 2: UDP Port that client should monitor for MTFTP Responses # Code 3: UDP Port that MTFTP servers are using to listen for MTFTP requests # Code 4: Number of seconds a client must listen for activity before trying # to start a new MTFTP transfer # Code 5: Number of seconds a client must listen before trying to restart # a MTFTP transfer option space PXE; option PXE.mtftp-ip code 1 = ip-address; option PXE.mtftp-cport code 2 = unsigned integer 16; option PXE.mtftp-sport code 3 = unsigned integer 16; option PXE.mtftp-tmout code 4 = unsigned integer 8; option PXE.mtftp-delay code 5 = unsigned integer 8; option arch code 93 = unsigned integer 16; use-host-decl-names on; ddns-update-style interim; ignore client-updates; # Specify subnet of ether device you do NOT want service. # For systems with two or more ethernet devices. # subnet 136.165.0.0 netmask 255.255.0.0 {} subnet 10.0.0.0 netmask 255.0.0.0{ option subnet-mask 255.0.0.0; range dynamic-bootp 10.0.0.10 10.255.255.254; default-lease-time 21600; max-lease-time 43200; option routers 10.0.2.2; option domain-name-servers 10.0.50.5; next-server 10.0.2.15; class "Legacy" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000"; filename "undionly.kkpxe"; } class "UEFI-32-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002"; filename "i386-efi/ipxe.efi"; } class "UEFI-32-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006"; filename "i386-efi/ipxe.efi"; } class "UEFI-64-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007"; filename "ipxe.efi"; } class "UEFI-64-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00008"; filename "ipxe.efi"; } class "UEFI-64-3" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009"; filename "ipxe.efi"; } class "SURFACE-PRO-4" { match if substring(option vendor-class-identifier, 0, 32) = "PXEClient:Arch:00007:UNDI:003016"; filename "ipxe7156.efi"; } class "Apple-Intel-Netboot" { match if substring(option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386"; option dhcp-parameter-request-list 1,3,17,43,60; if (option dhcp-message-type = 8) { option vendor-class-identifier "AAPLBSDPC"; if (substring(option vendor-encapsulated-options, 0, 3) = 01:01:01) { # BSDP List option vendor-encapsulated-options 01:01:01:04:02:80:00:07:04:81:00:05:2a:09:0D:81:00:05:2a:08:69:50:58:45:2d:46:4f:47; filename "ipxe.efi"; } } } }
-
@patrice I fixed your post so it was readable in a code block
Nothing appears to be wrong initially. I will check line by line in a minute.
But one thing I find strange is that you have a HUGE dhcp range 10.x.x.x That’s 2 million addresses!! Is that what you wanted?
Is FOG the only dhcp server on your 10.x.x.x subnet?
-
@george1421
I haven’t the folder tftpdboot when i do the first install of 1.4 -
@george1421
I have took 10.x.x.x because have see tutorial with it, i don’t need 2 millions adresses, the fog is only on the dhcp server.
I try to install with 192.168.0.x rangeSorry,
I have to go to work, I leave you today
Thank you -
@patrice I’m still reading through your config file.
I see your dhcp range is
10.0.0.10 10.255.255.254
But it appears you have computers systems at 10.0.2.2, 10.0.50.5, 10.0.2.15
This makes me think you have an already existing network, but no existing dhcp server (like on router or windows server)??
You have a router at 10.0.2.2, do you have other subnets? I’m just trying to understand how your network is designed so we can get the right answer for you.
I think your fog server is 10.0.2.15??
-
@george1421 On your fog server can you post the output of this command
ip addr show
?? -
@george1421 Once we have the network configuration, any issues with the dhcpd.conf file or other things will stick out.
-
@george1421
Hello George,
I want to try to remain simple in my explanation:
I had taken the configuration in a tutorial:
The fog server has 10.0.2.15, subnet mask : 255.0.0.0 gateway 10.0.2.2 DNS address 10.0.50.2
the DHCP server 10.0.2.2I have nothing else on the network
I do not know if this is the best configuration
Hereip addr show
:lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 80:ee:73:96:8e:ec brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/8 brd 10.255.255.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::82ee:73ff:fe96:8eec/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 80:ee:73:96:8e:ed brd ff:ff:ff:ff:ff:ff inet 192.168.0.33/24 brd 192.168.0.255 scope global dynamic eth1 valid_lft 85033sec preferred_lft 85033sec inet6 fe80::82ee:73ff:fe96:8eed/64 scope link valid_lft forever preferred_lft forever
-
@patrice said in Fog DHCP service not run since fog 1.3:
mai 23 10:51:21 shuttlefog isc-dhcp-server[28947]: Database file: /var/lib/dhcp/dhcpd.leases
mai 23 10:51:21 shuttlefog isc-dhcp-server[28947]: PID file: /var/run/dhcpd.pid
mai 23 10:51:23 shuttlefog isc-dhcp-server[28947]: Segmentation faultI can reproduce this segfault error on my machine using your configuration. Give me a few more minutes and I am pretty sure we can figure out what’s wrong with it.
-
It seems like the range is “just too big”. Changing the following line made it work for me:
range dynamic-bootp 10.0.0.10 10.0.255.254;
With that you still have more than enough IP addresses to play with. But please keep in mind that you ought to read and think a little bit about your network setup to not run into issue after issue in the long run. The output of
ip addr show
gave us another network interfaceeth1
which is within a completely different subnet. Don’t get things mixed up here… -
@Sebastian-Roth
hello Sebastian thank you for you answer.
I’ve 2 network on this Computer, the first ( eth0) for fog server, and the second (eth1) for internet connection.
I changed the configuration line in dhcpd.conf withrange dynamic-bootp 10.0.0.10 10.0.255.254;
but the installation was aborted
when i launch ./installfog.sh (fog 1.4.0) i can’t change parameters since i install fog 1.2.0:root@shuttlefog:~/fogproject/bin# ./installfog.sh
Installing LSB_Release as needed-
Attempting to get release information…Done
systemd±-----------------------------------------+
| …#######:. …,#,… .::##::. |
|.:###### .:;####:…;#;… |
|…##… …##;,;##::::.##… |
| ,# …##…##:::## …:: |
| ## .::###,##. . ##.::#.:######::.|
|…##:::###::…#. … .#…#. #…#:::. |
|…:####:… …##…##::## … # |
| # . …##:,;##;:::#: … ##… |
| .# . .:;####;::::.##:::;#:… |
| # …:;###… |
| |
±-----------------------------------------+
| Free Computer Imaging Solution |
±-----------------------------------------+
| Credits: http://fogproject.org/Credits |
| http://fogproject.org/Credits |
| Released under GPL Version 3 |
±-----------------------------------------+Version: 1.4.0 Installer/Updater
-
Found FOG Settings from previous install at: /opt/fog/.fogsettings
-
Performing upgrade using these settings
Starting Debian based Installation
######################################################################
FOG now has everything it needs for this setup, but please
understand that this script will overwrite any setting you may
have setup for services like DHCP, apache, pxe, tftp, and NFS.
######################################################################
It is not recommended that you install this on a production system
as this script modifies many of your system settings.
######################################################################
This script should be run by the root user.
It will prepend the running with sudo if root is not set
######################################################################
** Notice ** FOG is difficult to setup securely
SELinux and IPTables are usually asked to be disabled
There have been strides in adding capabilities
The recommendations would now be more appropriate
to set SELinux to permissive and to disable firewall for now.
You can find some methods to enable SELinux and maintain firewall
settings and ports. If you feel comfortable doing so please do
######################################################################
Please see our wiki for more information at:
######################################################################
https://wiki.fogproject.org/wiki/index.php
######################################################################
-
Here are the settings FOG will use:
-
Base Linux: Debian
-
Detected Linux Distribution: Debian GNU/Linux
-
Server IP Address: 10.0.2.15
-
Server Subnet Mask:
-
Interface: eth0
-
Installation Type: Normal Server
-
Internationalization: 0
-
Image Storage Location: /images
-
Using FOG DHCP: Yes
-
DHCP router Address: 10.0.2.2
-
Are you sure you wish to continue (Y/N) y
-
Installation Started
-
Installing required packages, if this fails
| make sure you have an active internet connection. -
Adding needed repository…OK
-
Preparing Package Manager…OK
-
Packages to be installed:
apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc isc-dhcp-server lftp libapache2-mod-php5 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php5 php5-bcmath php5-cli php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysql php5-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
-
Skipping package: apache2…(Already Installed)
-
Skipping package: bc…(Already Installed)
-
Skipping package: build-essential…(Already Installed)
-
Skipping package: cpp…(Already Installed)
-
Skipping package: curl…(Already Installed)
-
Skipping package: g++…(Already Installed)
-
Skipping package: gawk…(Already Installed)
-
Skipping package: gcc…(Already Installed)
-
Skipping package: gzip…(Already Installed)
-
Skipping package: htmldoc…(Already Installed)
-
Skipping package: isc-dhcp-server…(Already Installed)
-
Skipping package: lftp…(Already Installed)
-
Skipping package: libapache2-mod-php5…(Already Installed)
-
Skipping package: libc6…(Already Installed)
-
Skipping package: libcurl3…(Already Installed)
-
Skipping package: m4…(Already Installed)
-
Skipping package: mysql-client…(Already Installed)
-
Skipping package: mysql-server…(Already Installed)
-
Skipping package: net-tools…(Already Installed)
-
Skipping package: nfs-kernel-server…(Already Installed)
-
Skipping package: openssh-server…(Already Installed)
-
Skipping package: php5…(Already Installed)
-
Skipping package: php5-bcmath…(Does not exist)
-
Skipping package: php5-cli…(Already Installed)
-
Skipping package: php5-curl…(Already Installed)
-
Skipping package: php5-fpm…(Already Installed)
-
Skipping package: php5-gd…(Already Installed)
-
Skipping package: php5-json…(Already Installed)
-
Skipping package: php5-mcrypt…(Already Installed)
-
Skipping package: php5-mysqlnd…(Already Installed)
-
Skipping package: php5-mysqlnd…(Already Installed)
-
Skipping package: php-gettext…(Already Installed)
-
Skipping package: sysv-rc-conf…(Already Installed)
-
Skipping package: tar…(Already Installed)
-
Skipping package: tftpd-hpa…(Already Installed)
-
Skipping package: tftp-hpa…(Already Installed)
-
Skipping package: unzip…(Already Installed)
-
Skipping package: vsftpd…(Already Installed)
-
Skipping package: wget…(Already Installed)
-
Skipping package: xinetd…(Already Installed)
-
Skipping package: zlib1g…(Already Installed)
-
Updating packages as needed…OK
-
Confirming package installation
-
Checking package: apache2…OK
-
Checking package: bc…OK
-
Checking package: build-essential…OK
-
Checking package: cpp…OK
-
Checking package: curl…OK
-
Checking package: g++…OK
-
Checking package: gawk…OK
-
Checking package: gcc…OK
-
Checking package: gzip…OK
-
Checking package: htmldoc…OK
-
Checking package: isc-dhcp-server…OK
-
Checking package: lftp…OK
-
Checking package: libapache2-mod-php5…OK
-
Checking package: libc6…OK
-
Checking package: libcurl3…OK
-
Checking package: m4…OK
-
Checking package: mysql-client…OK
-
Checking package: mysql-server…OK
-
Checking package: net-tools…OK
-
Checking package: nfs-kernel-server…OK
-
Checking package: openssh-server…OK
-
Checking package: php5…OK
-
Checking package: php5-cli…OK
-
Checking package: php5-curl…OK
-
Checking package: php5-fpm…OK
-
Checking package: php5-gd…OK
-
Checking package: php5-json…OK
-
Checking package: php5-mcrypt…OK
-
Checking package: php5-mysqlnd…OK
-
Checking package: php-gettext…OK
-
Checking package: sysv-rc-conf…OK
-
Checking package: tar…OK
-
Checking package: tftpd-hpa…OK
-
Checking package: tftp-hpa…OK
-
Checking package: unzip…OK
-
Checking package: vsftpd…OK
-
Checking package: wget…OK
-
Checking package: xinetd…OK
-
Checking package: zlib1g…OK
-
Configuring services
-
Setting up fog user…Already setup
-
Setting up fog password…OK
-
Stopping FOGMulticastManager.service Service…OK
-
Stopping FOGImageReplicator.service Service…OK
-
Stopping FOGSnapinReplicator.service Service…OK
-
Stopping FOGScheduler.service Service…OK
-
Stopping FOGPingHosts.service Service…OK
-
Stopping FOGSnapinHash.service Service…OK
-
Stopping FOGImageSize.service Service…OK
-
Setting up and starting MySQL…OK
-
Backing up user reports…Done
-
Stopping web service…OK
-
Removing vhost file…OK
-
Setting up Apache and PHP files…OK
-
Testing and removing symbolic links if found…OK
-
Backing up old data…OK
-
Copying new files to web folder…OK
-
Creating config file…OK
-
Unzipping the binaries…Done
-
Copying binaries where needed…Done
-
Enabling apache and fpm services on boot…OK
-
Creating SSL CA…OK
-
Creating SSL Private Key…OK
-
Creating SSL Certificate…OK
-
Creating auth pub key and cert…OK
-
Resetting SSL Permissions…OK
-
Setting up SSL FOG Server…OK
-
Starting and checking status of web services…OK
-
Changing permissions on apache log files…OK
-
Backing up database…OK
-
You still need to install/update your database schema.
-
This can be done by opening a web browser and going to:
-
Press [Enter] key when database is updated/installed.
-
Setting up storage…OK
-
Setting up and starting DHCP Server…Failed!
root@shuttlefog:~/fogproject/bin#
-
-
I worked with the OP via TV to help get things fixed.
Once I had an understanding of what he wanted we fixed the subnet mask from /8 to /24 on eth0 and then went and adjusted the dhcp.config file so that it matched eth0 of the fog server. Then the dhcp started OK. After that we upgraded fog 1.2.0 to fog 1.4.0. I checked the .fogsettings with the settings in the webgui and everything looked good when I disconnected.
I think this issue is now solved.
-
Well now I have to go and try this out myself…
The ISC-DHCP folks will be interested to know if this range size really is a problem.
-
@Wayne-Workman his original config file is below. Tomorrow I’ll post what I changed it to that allowed the dhcp server to start.
-
@george1421
I thank you, George for you help, for me it’s ok to solve this topic.
cordially