Fog installation and cofiguration on ubuntu 18.04 / 19.04 No DHCP Option
-
i continued since i couldnt access the gui
and all the required services seem okroot@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/mysql restart [ ok ] Restarting mysql (via systemctl): mysql.service. root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/dnsmasq restart [ ok ] Restarting dnsmasq (via systemctl): dnsmasq.service. root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/net* restart [ ok ] Restarting network-manager (via systemctl): network-manager.service. root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# service php7.2-fpm status ● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-11-26 11:57:17 GMT; 1min 1s ago Docs: man:php-fpm7.2(8) Main PID: 12208 (php-fpm7.2) Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec" Tasks: 6 (limit: 3781) CGroup: /system.slice/php7.2-fpm.service ├─12208 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf) ├─12210 php-fpm: pool www ├─12211 php-fpm: pool www ├─12212 php-fpm: pool www ├─12213 php-fpm: pool www └─12214 php-fpm: pool www Nov 26 11:57:17 FogServerKubuntu systemd[1]: Starting The PHP 7.2 FastCGI Process Manager... Nov 26 11:57:17 FogServerKubuntu systemd[1]: Started The PHP 7.2 FastCGI Process Manager. root@FogServerKubuntu:/opt/fogproject-1.5.6/bin#
-
on the side i decided to do a clean build on ubuntu 19.04, no modification nothing, just plane ubuntu 19.04
and this is the result:To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. chaosnature@fogserverubuntu:~$ sudo su - [sudo] password for <username>: root@fogserverubuntu:~# cd /opt root@fogserverubuntu:/opt# ls root@fogserverubuntu:/opt# apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version (1:2.20.1-2ubuntu1). git set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded. root@fogserverubuntu:/opt# git clone https://github.com/fogproject/fogproject.git fog_stable/ Cloning into 'fog_stable'... remote: Enumerating objects: 223, done. remote: Counting objects: 100% (223/223), done. remote: Compressing objects: 100% (144/144), done. remote: Total 148443 (delta 145), reused 130 (delta 74), pack-reused 148220 Receiving objects: 100% (148443/148443), 769.74 MiB | 5.64 MiB/s, done. Resolving deltas: 100% (105105/105105), done. Checking out files: 100% (849/849), done. root@fogserverubuntu:/opt# cd fog_stable/bin root@fogserverubuntu:/opt/fog_stable/bin# sudo ./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.5.7 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.......................................Failed * Removing the apache and php packages........................Done * Resetting our variables to specify php version..............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: * ens3 - xxx.xxx.x.xx/24 Would you like to change the default network interface from ens3? If you are not sure, select No. [y/N] n Would you like to setup a router address for the DHCP server? [Y/n] n Would you like DHCP to handle DNS? [Y/n] n Would you like to use the FOG server for DHCP service? [y/N] n This version of FOG has internationalization support, would you like to install the additional language packs? [y/N] n *** New option 'hostname' since FOG 1.5.6 *** Would you like to change the default hostname >fogserverubuntu<? The fully qualified hostname is used for the webserver certificate. 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: ens3 * Server IP Address: xxx.xxx.x.xx * Server Subnet Mask: xxx.xxx.x.xx * Server Hostname: fogserverubuntu * Installation Type: Normal Server * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. xxx.xxx.x.xx) * Option 067/filename is the bootfile: (e.g. undionly.kpxe) * Are you sure you wish to continue (Y/N) y * Installation Started * Testing internet connection.................................Done * Adding repository if needed.................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.2 libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php-gettext php7.2 php7.2-bcmath php7.2-cli php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-mysqlnd sysv-rc-conf tar tftp-hpa tftpd-hpa unzip vsftpd wget xinetd zlib1g * Installing package: apache2.................................OK * Skipping package: bc......................................(Already Installed) * Installing package: build-essential.........................OK * 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) * Installing package: genisoimage.............................OK * Skipping package: gzip....................................(Already Installed) * Installing package: htmldoc.................................OK * Installing package: isolinux................................OK * Installing package: lftp....................................OK * Skipping package: libapache2-mod-php7.2.....................(Does not exist) * Skipping package: libc6...................................(Already Installed) * Skipping package: libcurl4................................(Already Installed) * Installing package: liblzma-dev.............................OK * Installing package: m4......................................OK * Installing package: mariadb-client..........................OK * Installing package: mariadb-server..........................OK * Installing package: net-tools...............................OK * Installing package: nfs-kernel-server.......................OK * Skipping package: openssh-server..........................(Already Installed) * Installing package: php-gettext.............................OK * Skipping package: php7.2....................................(Does not exist) * Skipping package: php7.2-bcmath.............................(Does not exist) * Skipping package: php7.2-cli................................(Does not exist) * Skipping package: php7.2-curl...............................(Does not exist) * Skipping package: php7.2-fpm................................(Does not exist) * Skipping package: php7.2-gd.................................(Does not exist) * Skipping package: php7.2-json...............................(Does not exist) * Skipping package: php7.2-ldap...............................(Does not exist) * Skipping package: php7.2-mbstring...........................(Does not exist) * Skipping package: php7.2-mysql..............................(Does not exist) * Skipping package: php7.2-mysqlnd............................(Does not exist) * Skipping package: sysv-rc-conf..............................(Does not exist) * Skipping package: tar.....................................(Already Installed) * Installing package: tftp-hpa................................OK * Installing package: tftpd-hpa...............................OK * Installing package: unzip...................................OK * Installing package: vsftpd..................................OK * Skipping package: wget....................................(Already Installed) * Installing package: xinetd..................................OK * 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: gzip......................................OK * Checking package: htmldoc...................................OK * Checking package: isolinux..................................OK * Checking package: lftp......................................OK * Checking package: libc6.....................................OK * Checking package: libcurl4..................................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: tar.......................................OK * Checking package: tftp-hpa..................................OK * Checking package: tftpd-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..................................OK * 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 * Is the MySQL password blank? (Y/n) y * Setting up and starting MySQL...............................Done * Backing up user reports.....................................Done * Stopping web service........................................Failed! root@fogserverubuntu:/opt/fog_stable/bin#
And yet on spice work i have others confirming the got it working from git on version 19.04
i think you should check and test options y, n, n, n, n, n, y
bcos the options is the only thing i see different from other’s deployment.
-
Updates to 19.04 installation and Re-installaion.
After the 1st installation failure ( with options - Y, and N x7, then Y) i did:
1.# Delete fogproject Account
userdel fogproject2.# Start the insall
./installfog.sh3.# Then, No options of DNS and DHCP Exclusions by
Selecting Y, and N x7, then YInstallations begins…
* Configuring services * Setting up fogproject user..................................OK * 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 * Is the MySQL password blank? (Y/n)
Don’t Press yes yet… (Open another Terminal and run do the below steps):
cd /tmp && wget http://mirrors.kernel.org/ubuntu/pool/multiverse/liba/libapache-mod-fastcgi/libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb sudo dpkg -i libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb; sudo apt install -f
- Add Repo:
sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php
- update Repo:
sudo apt update
- manually installed the below:
sudo apt install php7.2 php7.2-fpm php7.2-common
… (etc)
* Skipping package: php7.2....................................(Does not exist) * Skipping package: php7.2-bcmath.............................(Does not exist) * Skipping package: php7.2-cli................................(Does not exist) * Skipping package: php7.2-curl...............................(Does not exist) * Skipping package: php7.2-fpm................................(Does not exist) * Skipping package: php7.2-gd.................................(Does not exist) * Skipping package: php7.2-json...............................(Does not exist) * Skipping package: php7.2-ldap...............................(Does not exist) * Skipping package: php7.2-mbstring...........................(Does not exist) * Skipping package: php7.2-mysql..............................(Does not exist) * Skipping package: php7.2-mysqlnd............................(Does not exist)
- Back to the installation terminal, Then select yes
* Is the MySQL password blank? (Y/n) y
Next section continue until update mysql schema
* Creating auth pub key and cert..............................OK * Resetting SSL Permissions...................................OK * Setting up Apache virtual host (no SSL).....................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: http://xxx.xxx.x.xx/fog/management
- Update Schema and press eneter to continue
* Press [Enter] key when database is updated/installed.
All OKs install complete
* Setting up storage..........................................OK * Setting up and starting DHCP Server.........................Skipped * Setting up and starting TFTP and PXE Servers................OK * Setting up and starting VSFTP Server........................OK * Setting up FOG Snapins......................................OK * Setting up UDPCast..........................................OK * Configuring UDPCast.........................................OK * Building UDPCast............................................OK * Installing UDPCast..........................................OK * Installing FOG System Scripts...............................OK * Configuring FOG System Services * Setting up and starting NFS Server..........................OK * Linking FOG Logs to Linux Logs..............................OK * Linking FOG Service config /etc.............................OK * Ensuring node username and passwords match..................Done * Setup complete You can now login to the FOG Management Portal using the information listed below. The login information is only if this is the first install. This can be done by opening a web browser and going to: http://xxx.xxx.x.xx/fog/management Default User Information Username: fog Password: password
- Login Successful
Notes: So imagine the pre-req for installing Fog on ubuntu 19 with the selected options would be perform steps 3 to 6
which means if step 3 to 6 is performed before install, it should be successful.i will try this on ubuntu 18 next (installing the pre-req before initiating install)
it looks like the repo is the issue here…is there no way to include the php 7.2 components to the Fog installation files?
Now FOG Config
-----------------------------------------DNSMASQ Configuration would be:…
Follow the steps outlined in the link below:
https://wiki.fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_serverSetup and Configuration steps 1 to 6
nano /etc/exports and enter step 5 details (i comment out the existing details)
sudo apt-get install dnsmasq
Skip step 7
Do “DNSMASQ settings for iPXE” sections (change ip details to reflect your environment)
nano /etc/dnsmasq.d/ltsp.conf (Enter DNSMASQ settings for iPXE details)
Make a symlink for the undionly.kpxe file so dnsmasq can find it.
cd /tftpboot
sudo ln -s undionly.kpxe undionly.0
ORcd /tftpboot
cp undionly.kpxe undionly.0 (i used this option)then finally
back to step 8sudo /etc/init.d/dnsmasq restart
after dnsmasq config Vm can pxe
____ …End Results
Able to loging with fog/password , fog is 1.5.7
-----------------------------------------DNSMASQ Troubleshooting…
if you receive ( failed to create listening socket for port 53:) Run:
usejournalctl -xe
to find out why then…lsof -Pn +M | grep ':53 (LISTEN)'
(you should see whats hugging port 53 , usally resolver)
/etc/init.d/tftp* stop
(to free up port 53)
-
so now the question is does it image, as this is where i stopped with ubuntu 18.04 too
will update.
-
@chasosnature You seem to jump from one topic to another. Ubuntu 16.04, then 18.04 and now 19.04. They are all very different and sure don’t behave the same way.
Intall problem with FOG 1.5.7 on 19.04 is known and fixed in the development version - this should do the trick:
git clone https://github.com/FOGProject/fogproject cd fogproject git checkout dev-branch cd bin ./installfog.sh
By the way, which version of Ubuntu do you use? If I remember correctly we have seen Ubuntu Desktop to cause some problems. We always use Ubuntu Server!
About 1.5.6 install - you said:
…
- Resetting SSL Permissions…OK
- Setting up Apache virtual host (no SSL)…/lib/common/functions.sh: line 1722: /etc/apache2/sites-available/001-fog.conf: No such file or directory
…/lib/common/functions.sh: line 1723: /etc/apache2/sites-available/001-fog.conf: No such file or directory
…
This error can only be caused if the directory
/etc/apache2/sites-available/
doesn’t exist on your system. Looking further up I seeapache2.................................(Already Installed)
. Possibly some kind of modified apache package you have installed?!?dpkg -l | grep apache
?? -
I thought of posting this with new topic, but decided let’s have it all in one topic (they are related), can still be moved with you like.
- Started with installing 1.4.4 on ubuntu 18.04 LTS version
issues - some clients errors , though after much manipulations got fog to install , could pxe and login to Gui: imaging not fully tested - Got adviced to cann it and upgrade to fog 1.5…7 , did so on ubuntu 18.04 LTS version
Issues - could not upgraded from 1.4.4 to 1.5.7 (still pending…) - Decided to install 1.5.7 on ubuntu 19.04 (reason to see if the option Y, N, N, N, N ,N,N N, Y is the issue as i have reports that 1.5.7 on 19.04 works fine)
issues - PHP 7.2 and its components refused to play ball…so did that below work around.
No ubuntu server in any of my setup…
“Ubuntu 16.04, then 18.04 and now 19.04.”
Forget ubuntu 16, this was just used to describe a scenerio that justifies an upgrade from systems that moved from 16 to 18.04 OS, to move/upgrade Fog 1.4.4 to 1.5.7 unto 18.04“Intall problem with FOG 1.5.7 on 19.04 is known and fixed in the development version - this should do the trick:”
Can you point me to a post that descibes this known issue with 1.5.7 on 19.04?Bcos i am not sure why others would advice that i try an installation of 1.5.7 on 19.04 without warning me of this glitch.
I was simpley directed to this link in spice : https://github.com/FOGProject/fogproject
which i followed and got my self tangled in this php7.2 issuesAnd by the way with the options mentioned above on a fresh 18.04 1.5.7 also had issues
As we speak someone is about to test 1.4.4 on 18.04 from spcice.
- Started with installing 1.4.4 on ubuntu 18.04 LTS version
-
@Sebastian-Roth said in Fog installation and cofiguration on ubuntu 18.04:
apache2…(Already Installed). Possibly some kind of modified apache package you have installed?
This is bcos the installation described in my tutorial is a re-install. (reinstallation of 19.04)
-
@chasosnature said in Fog installation and cofiguration on ubuntu 18.04:
so now the question is does it image, as this is where i stopped with ubuntu 18.04 too
will update.it appears to function…not dont a full image test yet
but as said its very different from its predecesoros 1.4.4 …a lot of work and improvement has been done.
i notice the imaging option was move from the pxe client to the server menu.
nice work!!
-
@chasosnature said in Fog installation and cofiguration on ubuntu 18.04:
Can you point me to a post that descibes this known issue with 1.5.7 on 19.04?
I am not exactly sure this has been discussed in the forums but the fix you can find here: https://github.com/FOGProject/fogproject/commit/ab61ce0f6bff184ed00609b29efacdda4fd56347
Bcos i am not sure why others would advice that i try an installation of 1.5.7 on 19.04 without warning me of this glitch.
Not true. I just read through the whole lot of messages again and no one ever advised you to install plain 1.5.7 on 19.04! When @Quazz and I told you about using 1.5.7 (instead of 1.4.4) Ubuntu 19.04 has not been mentioned by you at all up to that point.
- Started with installing 1.4.4 on ubuntu 18.04 LTS version
issues - some clients errors , though after much manipulations got fog to install , could pxe and login to Gui: imaging not fully tested - Got adviced to cann it and upgrade to fog 1.5…7 , did so on ubuntu 18.04 LTS version
Issues - could not upgraded from 1.4.4 to 1.5.7 (still pending…)
As you mention in bullet 1. you’ve done much of custom changes to that first install. So I don’t wonder it’s failing to upgrade to 1.5.7. I guess with even more manuall intervention you could make that work again but what’s the point?
No ubuntu server in any of my setup…
All Desktop? Possible cause of trouble as well.
- Started with installing 1.4.4 on ubuntu 18.04 LTS version
-
@Sebastian-Roth said in Fog installation and cofiguration on ubuntu 18.04:
I just read through the whole lot of messages again and no one ever advised you to install plain 1.5.7 on 19.04
The advice was not giveing in here but in spice : https://community.spiceworks.com/topic/2244389-fog-ubuntu-18-04?page=1#entry-8664504
:::::::::::::::::::
I have fog 1.5.7.55 running perfectly under ubuntu 19.10 by using the git repository: git clone https://github.com/FOGProject/fogproject.gitgit pull for every next update. don’t forget the ./installfog.sh script inside the bin folder… this should install all required modules.
::::::::::::::::::You’ve done much of custom changes to that first install."
No, the 19.04 was a fresh install, nothing touch , nothing added.
the build that received mod was the original 18.04 i started this post with.
i am clearing this so as not to confuse others who arrive on this post for resolution.
All Desktop? Possible cause of trouble as well."
Apologies , mistkae : No ubuntu Desktop in any of my setup…
By the way, i got my firsdt image from 19.04 version 1.5.7,… many thanks for your product and hard work
-
@chasosnature said in Fog installation and cofiguration on ubuntu 18.04:
The advice was not giveing in here but in spice : https://community.spiceworks.com/topic/2244389-fog-ubuntu-18-04?page=1#entry-8664504
- Cross posting stuff in different forums is not nice - just a piece of advice: the more noise you make the less people are willing to help you
- From what I see in that topic there is only one guy saying this about 19.04: “I have fog 1.5.7.55 running perfectly under ubuntu 19.10 by using the git repository” - 1.5.7 is not 1.5.7.55 - what he refers to is absolutely right, the
dev-branch
which works on 19.04!
-
@Sebastian-Roth said in Fog installation and cofiguration on ubuntu 18.04:
Cross posting stuff in different forums is not nice - just a piece of advice: the more noise you make the less people are willing to help you
ok, wasnt aware this was an issue…point taken.
-
@Sebastian-Roth said in Fog installation and cofiguration on ubuntu 18.04:
You are welcome to open new topics for each question you have. It’s way easier for others having similar or same problems to find the right answer in a short topic instead of half a dozen questions being packed in one thread.
thanks,
I agree, i will start a seperate thread to update on any progress on this topic.