Fog Server with DHCP
-
Hi
I am trying to install a Fog server that runs it’s own DHCP (Setup with FOG) on a network without Internet intended to only use it to do re-imaging. I am struggle install the Fog Server and would appreciate any help.
Has anyone done this before?
OS: Ubuntu 16.04
The other issue I have that is making my life very difficult is that it looks like the Fog Server want Internet to install and currently I am connected with Wifi to the internet, But I want the DHCP to be linked to the Ethernet port. The issue is that every time I enable the Ethernet port it stops all internet from the Wifi card (Don’t know why).
I am open to install any other OS to do this.
End of Install Log:* * Configuring services * Setting up fogproject user..................................Skipped * Locking fogproject as a system account......................OK * Setting up fogproject 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...............................mysql.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install is-enabled mysql OK * Setting up MySQL user and database..........................OK * Backing up user reports.....................................Done * Stopping web service........................................Failed! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! The installer was not able to run all the way to the end as !! !! something has caused it to fail. The following few lines are !! !! from the error log file which might help us figure out what's !! !! wrong. Please add this information when reporting an error. !! !! As well you might want to take a look at the full error log !! !! in /root/fogproject/bin/error_logs/fog_error_1.5.9.log !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Log File:
ii apache2 2.4.18-2ubuntu3 amd64 Apache HTTP Server ii bc 1.06.95-9build1 amd64 GNU bc arbitrary precision calculator language ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages ii cpp 4:5.3.1-1ubuntu1 amd64 GNU C preprocessor (cpp) ii curl 7.47.0-1ubuntu2 amd64 command line tool for transferring data with URL syntax ii g++ 4:5.3.1-1ubuntu1 amd64 GNU C++ compiler ii gawk 1:4.1.3+dfsg-0.1 amd64 GNU awk, a pattern scanning and processing language ii gcc 4:5.3.1-1ubuntu1 amd64 GNU C compiler ii genisoimage 9:1.1.11-3ubuntu1 amd64 Creates ISO-9660 CD-ROM filesystem images ii gettext 0.19.7-2ubuntu3.1 amd64 GNU Internationalization utilities ii git 1:2.7.4-0ubuntu1 amd64 fast, scalable, distributed revision control system ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF ii isc-dhcp-server 4.3.3-5ubuntu12 amd64 ISC DHCP server for automatic IP address assignment ii isolinux 3:6.03+dfsg-11ubuntu1 all collection of bootloaders (ISO 9960 bootloader) ii lftp 4.6.3a-1build2 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs ii libc6:amd64 2.23-0ubuntu11.2 amd64 GNU C Library: Shared libraries ii libcurl3:amd64 7.47.0-1ubuntu2.15 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii liblzma-dev:amd64 5.1.1alpha+20120614-2ubuntu2 amd64 XZ-format compression library - development files ii m4 1.4.17-5 amd64 macro processing language ii mariadb-client 10.0.24-7 all MariaDB database client (metapackage depending on the latest version) ii mariadb-server 10.0.24-7 all MariaDB database server (metapackage depending on the latest version) ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit ii nfs-kernel-server 1:1.2.8-9ubuntu12 amd64 support for NFS kernel server ii openssh-server 1:7.2p2-4 amd64 secure shell (SSH) server, for secure access from remote machines ii php-gettext 1.0.11-2build1 all read gettext MO files directly, without requiring anything other than PHP ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal ii tar 1.28-2.1ubuntu0.1 amd64 GNU version of the tar archiving utility ii tftpd-hpa 5.2+20150808-1ubuntu1 amd64 HPA's tftp server ii tftp-hpa 5.2+20150808-1ubuntu1 amd64 HPA's tftp client ii unzip 6.0-20ubuntu1 amd64 De-archiver for .zip files ii vsftpd 3.0.3-3ubuntu2 amd64 lightweight, efficient FTP server written for security ii wget 1.17.1-1ubuntu1.5 amd64 retrieves files from the web ii xinetd 1:2.3.15-6 amd64 replacement for inetd with many enhancements ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4.3 amd64 compression library - runtime Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Failed to stop php7.1-fpm.service: Unit php7.1-fpm.service not loaded.
-
Does your company have a specific policy against the fog server having internet access just for setup? I understand you want a dedicated (isolated) imaging network. That is a standard configuration.
One option it to temporarily install a second nic in the FOG server and connect it to your business network. Before you install FOG make sure the second interface can get to the internet (by setting the default route) and the first interface is for your dedicated imaging network ( no default route) . Know the linux names of each of these interfaces.
Now install FOG. The installer will ask you to confirm the name of your imaging network interface and setup the system correctly. It will use the second nic to download the needed packages and binary files needed to install FOG.
Once FOG is installed you can remove the second interface or use that interface to manage the fog server from the business network. All imaging will happen over the first interface.
-
@george1421 Please see screenshot below,
At the moment I have a Ethernet card and a Wifi card. I want to use the Ethernet card for the DHCP and the Wifi card for Internet. My Wifi network is 192.168.1.x and my Ethernet card I have a Static address entered as 192.168.2.1 The issue is that FOG install does not register that the Ethernet port has a IP Address (See screenshot). But if you look at my Ethernet IP configuration (See screenshot again) I have a Static IP entered.
This is where it gets strange, If I plug a cable into the Ethernet port and plug into a switch, then the Fog Install registers my IP address on the Ethernet but then I lose Internet connection even though I am still connected to the Internet.
-
@george1421 OK, I think I get what your saying now. I still get that error message, any idea on how to solve that?
+------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 1.5.9 Installer/Updater What version of Linux would you like to run the installation for? 1) Redhat Based Linux (Redhat, CentOS, Mageia) 2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu) 3) Arch Linux Choice: [2] 2 Starting Debian based Installation *** Detected a potential need to reinstall apache and php files. *** This will remove the /etc/php* and /etc/apache2* directories *** and remove/purge the apache and php files from this system. *** If you're okay with this please type Y, anything else will *** continue the installation, but may mean you will need to *** remove the files later and make proper changes as *** necessary. (Y/N): y * Removing apache and php files...............................Done * Stopping web services.......................................Done * Removing the apache and php packages........................Done FOG Server installation modes: * Normal Server: (Choice N) This is the typical installation type and will install all FOG components for you on this machine. Pick this option if you are unsure what to pick. * Storage Node: (Choice S) This install mode will only install the software required to make this server act as a node in a storage group More information: http://www.fogproject.org/wiki/index.php?title=InstallationModes What type of installation would you like to do? [N/s (Normal/Storage)] N We found the following interfaces on your system: * wlp6s0 - 192.168.1.102/24 * eno1 - Would you like to change the default network interface from wlp6s0? If you are not sure, select No. [y/N] y What network interface would you like to use? eno1 * The interface eno1 does not seem to have a valid IP configured to it. We found the following interfaces on your system: * wlp6s0 - 192.168.1.102/24 * eno1 - Would you like to change the default network interface from wlp6s0? If you are not sure, select No. [y/N] y What network interface would you like to use? eno1 * The interface eno1 does not seem to have a valid IP configured to it. We found the following interfaces on your system: * wlp6s0 - 192.168.1.102/24 * eno1 - Would you like to change the default network interface from wlp6s0? If you are not sure, select No. [y/N] y What network interface would you like to use? rno1 * The network interface named rno1 does not exist. We found the following interfaces on your system: * wlp6s0 - 192.168.1.102/24 * eno1 - Would you like to change the default network interface from wlp6s0? If you are not sure, select No. [y/N] y What network interface would you like to use? eno1 * The interface eno1 does not seem to have a valid IP configured to it. We found the following interfaces on your system: * wlp6s0 - 192.168.1.102/24 * eno1 - Would you like to change the default network interface from wlp6s0? If you are not sure, select No. [y/N] n Would you like to setup a router address for the DHCP server? [Y/n] y What is the IP address to be used for the router on the DHCP server? [192.168.1.1]192.168.2.1 Would you like DHCP to handle DNS? [Y/n] y What DNS address should DHCP allow? [127.0.1.1] 192.168.2.1 Would you like to use the FOG server for DHCP service? [y/N] y This version of FOG has internationalization support, would you like to install the additional language packs? [y/N] n Using encrypted connections is state of the art on the web and we encourage you to enable this for your FOG server. But using HTTPS has some implications within FOG, PXE and fog-client and you want to read https://wiki.fogproject.org/HTTPS before you decide! Would you like to enable secure HTTPS on your FOG server? [y/N] n Which hostname would you like to use? Currently is: fogserver Note: This hostname will be in the certificate we generate for your FOG webserver. The hostname will only be used for this but won't be set as a local hostname on your server! Would you like to change it? If you are not sure, select No. [y/N] n ###################################################################### # 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 # ###################################################################### # 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: Ubuntu * Interface: wlp6s0 * Server IP Address: 192.168.1.102 * Server Subnet Mask: 255.255.255.0 * Server Hostname: fogserver * Installation Type: Normal Server * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: Yes * DHCP router Address: 192.168.2.1 * Are you sure you wish to continue (Y/N) y * Installation Started * Testing internet connection.................................Done * Adjusting repository (can take a long time for cleanup).....OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php7.1 libc6 libcurl3 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g * Installing package: apache2.................................OK * 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: genisoimage.............................(Already Installed) * Skipping package: git.....................................(Already Installed) * Skipping package: gzip....................................(Already Installed) * Skipping package: htmldoc.................................(Already Installed) * Skipping package: isc-dhcp-server.........................(Already Installed) * Skipping package: isolinux................................(Already Installed) * Skipping package: lftp....................................(Already Installed) * Skipping package: libapache2-mod-php7.1.....................(Does not exist) * Skipping package: libc6...................................(Already Installed) * Skipping package: libcurl3................................(Already Installed) * Skipping package: liblzma-dev.............................(Already Installed) * Skipping package: m4......................................(Already Installed) * Skipping package: mariadb-client..........................(Already Installed) * Skipping package: mariadb-server..........................(Already Installed) * Skipping package: net-tools...............................(Already Installed) * Skipping package: nfs-kernel-server.......................(Already Installed) * Skipping package: openssh-server..........................(Already Installed) * Skipping package: php7.1....................................(Does not exist) * Skipping package: php7.1-bcmath.............................(Does not exist) * Skipping package: php7.1-cli................................(Does not exist) * Skipping package: php7.1-curl...............................(Does not exist) * Skipping package: php7.1-fpm................................(Does not exist) * Skipping package: php7.1-gd.................................(Does not exist) * Skipping package: php7.1-json...............................(Does not exist) * Skipping package: php7.1-ldap...............................(Does not exist) * Skipping package: php7.1-mbstring...........................(Does not exist) * Skipping package: php7.1-mysql..............................(Does not exist) * Skipping package: php7.1-mysqlnd............................(Does not exist) * Installing package: php-gettext.............................OK * Installing package: sysv-rc-conf............................OK * 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: genisoimage...............................OK * Checking package: git.......................................OK * Checking package: gzip......................................OK * Checking package: htmldoc...................................OK * Checking package: isc-dhcp-server...........................OK * Checking package: isolinux..................................OK * Checking package: lftp......................................OK * Checking package: libc6.....................................OK * Checking package: libcurl3..................................OK * Checking package: liblzma-dev...............................OK * Checking package: m4........................................OK * Checking package: mariadb-client............................OK * Checking package: mariadb-server............................OK * Checking package: net-tools.................................OK * Checking package: nfs-kernel-server.........................OK * Checking package: openssh-server............................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 fogproject user..................................Skipped * Locking fogproject as a system account......................OK * Setting up fogproject 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...............................mysql.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install is-enabled mysql OK * Setting up MySQL user and database..........................OK * Backing up user reports.....................................Done * Stopping web service........................................Failed! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! The installer was not able to run all the way to the end as !! !! something has caused it to fail. The following few lines are !! !! from the error log file which might help us figure out what's !! !! wrong. Please add this information when reporting an error. !! !! As well you might want to take a look at the full error log !! !! in /root/fogproject/bin/error_logs/fog_error_1.5.9.log !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ii wget 1.17.1-1ubuntu1.5 amd64 retrieves files from the web ii xinetd 1:2.3.15-6 amd64 replacement for inetd with many enhancements ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4.3 amd64 compression library - runtime Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Failed to stop php7.1-fpm.service: Unit php7.1-fpm.service not loaded.
-
@ryno-theron Welcome to the forums and FOG.
OS: Ubuntu 16.04
Let’s start right from the very beginning. Ubuntu 16.04 is EOL (no updates available anymore) and I am wondering why one would still want to use it. Obviously this is causing part of the install problem. Just use a more recent version of Ubuntu and you won’t have “Stopping web service…Failed!” problem anymore!
Now about the network issue. Please run the following command and post fill output here in the forums:
ip a s
-
@sebastian-roth said in Fog Server with DHCP:
Let’s start right from the very beginning. Ubuntu 16.04 is EOL
Thank you for catching that. I saw 16.04 and was going to mention that too.
@Ryno-Theron The ip address issue may be related to the agve of 16.04, but it IS an issue with your workstation and not the fog installer. One thing I would also do is make the private imaging network subnet away from your business network subnet. These are home IP address ranges and the overlap might cause you issues later. For imaging network I would select something like 192.168.150.x/24 or in the 172.16-31 range.
Now you mentioned when you plug in the ethernet cable you lose wifi access. On some computers (assuming this is a laptop), in the bios it can be configured to not allow network bridging. So when you plug in an ethernet cable it (the bios) disables the wifi adapter. When the ethernet cable is removed then wifi is turned back on. I know this settings are in the bios on the Dells.
-
@george1421 @Sebastian-Roth What OS do you recommend I use. Happy to try any. I had Ubuntu 20.04 installed in the week but it did not want to install php-gettext and after days I gave up and found instruction on 16.04 and that is why I installed it.
-
@ryno-theron said in Fog Server with DHCP:
Ubuntu 20.04
If you want ubuntu that is the best version for now. If 20.04 isn’t loading correctly then we can go back to the developers to understand why.
-
@george1421 Thank you so much for the help. I managed to get Fog installed and managed to boot a laptop into PXE. My next issue is that after doing a quick or full reg and inventory, that I can see my device in the web management but once the device restart to do capture a image, it does not start but I notice that in red is written "Host is NOT registered.
Why is it that if the web management can see the registration but device is not registered after a restart?
-
@ryno-theron said in Fog Server with DHCP:
Why is it that if the web management can see the registration but device is not registered after a restart?
Please open a new topic on this issue. It helps a lot to keep things sorted and not just post one question after the other in the same thread.
A quick first hint in this: search the forums for “passthrough MAC” and I am sure you can find an answer to your question.