FOG 1.5.9 Install issue on Ubuntu 20.04
-
Follow this tutorial:
https://www.youtube.com/watch?v=sWorQSqrLOI&t=1025s -
Finally I download the files of tmp manually and the installation continue.
But, it is failing on
“Aug 02 16:18:45 fog-server systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, status=1/FAILURE”
“Aug 02 16:18:45 fog-server systemd[1]: isc-dhcp-server.service: Failed with result ‘exit-code’.” -
@qpassa Run
systemctl status isc-dhcp-server
and post the full output here. -
This post is deleted! -
@sebastian-roth said in FOG 1.5.9 Install issue on Ubuntu 20.04:
@qpassa Run
systemctl status isc-dhcp-server
and post the full output here.fogproject-1.5.9/bin# systemctl status isc-dhcp-server
● isc-dhcp-server.service - ISC DHCP IPv4 server Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2021-08-03 07:40:42 UTC; 4s ago Docs: man:dhcpd(8) Process: 41158 ExecStart=/bin/sh -ec CONFIG_FILE=/etc/dhcp/dhcpd.conf; if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp> Main PID: 41158 (code=exited, status=1/FAILURE) Aug 03 07:40:42 fog-server dhcpd[41158]: Aug 03 07:40:42 fog-server dhcpd[41158]: If you think you have received this message due to a bug rather Aug 03 07:40:42 fog-server dhcpd[41158]: than a configuration issue please read the section on submitting Aug 03 07:40:42 fog-server dhcpd[41158]: bugs on either our web page at www.isc.org or in the README file Aug 03 07:40:42 fog-server dhcpd[41158]: before submitting a bug. These pages explain the proper Aug 03 07:40:42 fog-server dhcpd[41158]: process and the information we find helpful for debugging. Aug 03 07:40:42 fog-server dhcpd[41158]: Aug 03 07:40:42 fog-server dhcpd[41158]: exiting. Aug 03 07:40:42 fog-server systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, status=1/FAILURE Aug 03 07:40:42 fog-server systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
-
fogproject-1.5.9/bin# cat /etc/dhcp/dhcpd.conf
# DHCP Server Configuration file\n#see /usr/share/doc/dhcp*/dhcpd.conf.sample # 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 172.120.1.0 netmask 255.255.255.0{ option subnet-mask 255.255.255.0; range dynamic-bootp 172.120.1.230 172.120.1.245; default-lease-time 21600; max-lease-time 43200; #option routers 0.0.0.0 #option routers 0.0.0.0 next-server 172.120.1.250; 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 "ipxe.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"; } } } }
-
@qpassa What output do you get from this command:
ip a s
Please post output here.
-
server:~$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 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: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 7a:31:3a:87:f3:0a brd ff:ff:ff:ff:ff:ff inet 172.120.1.250/24 brd 172.120.1.255 scope global ens18 valid_lft forever preferred_lft forever inet6 fe80::7831:3aff:fe87:f30a/64 scope link valid_lft forever preferred_lft forever 3: ens19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 72:c1:0a:58:c6:c1 brd ff:ff:ff:ff:ff:ff inet 172.31.99.224/24 brd 172.31.99.255 scope global ens19 valid_lft forever preferred_lft forever inet6 fe80::70c1:aff:fe58:c6c1/64 scope link valid_lft forever preferred_lft forever
-
@qpassa Ok, from what I see the DHCP config matches the IP setup and I can’t find any typo in there. Even tested the config posted on a test VM.
Maybe there is an interface linked in another config. Please run
grep INTERFACE /etc/default/isc-dhcp-server
and post output here.Other than that you might also run the following commands and post output here:
systemctl restart isc-dhcp-server journalctl -u isc-dhcp-server
On the last command you want to hit Shift-g to jump to the bottom of the log. Then copy and paste what you see. Then hit ‘Q’ to exit journalctl.
-
Solved!!!
The error was in /etc/default/isc-dhcp-server.
It was set to eth0 instead of ens18I have more problems. I will open new posts if necessary
Thank you for all!