Fog installation and cofiguration on ubuntu 18.04 / 19.04 No DHCP Option
-
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.