HowTo install FOG-Project CloneServer on NethServer


(Manonthemoon Ak) #21

Will you help me now? :slight_smile:
I do not know if I should do it as in the first post. Should I modify something?
I would not like to put NethServer afresh. It took me 4 hours: |
I am asking for directions.


(fpausp) #22

Well, I think your DHCP-Server and FOG-Server are on the same Machine ?
You have to think abt it during the Install-Dialog… and of course you have to use your IP-Addresses.

If it is so then I think you have to say yes here:
Would you like to use the FOG server for DHCP service? [y/N] Y

Please document your steps, I would like to compare it with this HowTo…

[root@fog01 ~]# cd ~

[root@fog01 ~]# yum -y install git

[root@fog01 ~]# git clone https://github.com/FOGProject/fogproject.git
Cloning into 'fogproject'...
remote: Counting objects: 131433, done.
remote: Compressing objects: 100% (540/540), done.
remote: Total 131433 (delta 552), reused 516 (delta 254), pack-reused 130563
Receiving objects: 100% (131433/131433), 704.90 MiB | 3.93 MiB/s, done.
Resolving deltas: 100% (92633/92633), done.

[root@fog01 ~]# cd fogproject/bin

[root@fog01 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.4 Installer/Updater

Not able to find an interface with an active internet connection. Trying alternative methods for determining the interface.
  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: [1] 



  Starting Redhat based Installation


  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

  What is the IP address to be used by this FOG Server? [192.168.xx.248]

  Would you like to change the default network interface from eth0?
  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.xx.254]192.168.xx.245

  Would you like DHCP to handle DNS? [Y/n] Y
  What DNS address should DHCP allow? [127.0.0.1] 

  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

   ######################################################################
   #     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: Redhat
 * Detected Linux Distribution: CentOS Linux
 * Server IP Address: 192.168.xx.248
 * Server Subnet Mask: 255.255.255.0
 * Interface: eth0
 * 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. 192.168.xx.248)
 * Option 067/filename is the bootfile: (e.g. undionly.kpxe)


 * 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:

	bc curl gcc gcc-c++ gzip httpd lftp m4 make mod_ssl mysql mysql-server net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-process tar tftp-server unzip vsftpd wget xinetd 


 * Skipping package:   bc......................................(Already Installed)
 * Skipping package:   curl....................................(Already Installed)
 * Installing package: gcc.....................................OK
 * Installing package: gcc-c++.................................OK
 * Skipping package:   gzip....................................(Already Installed)
 * Skipping package:   httpd...................................(Already Installed)
 * Installing package: lftp....................................OK
 * Skipping package:   m4......................................(Already Installed)
 * Skipping package:   make....................................(Already Installed)
 * Skipping package:   mod_ssl.................................(Already Installed)
 * Installing package: mariadb.................................OK
 * Installing package: mariadb-server..........................OK
 * Skipping package:   net-tools...............................(Already Installed)
 * Installing package: nfs-utils...............................OK
 * Skipping package:   php.....................................(Already Installed)
 * Installing package: php-bcmath..............................OK
 * Skipping package:   php-cli.................................(Already Installed)
 * Skipping package:   php-common..............................(Already Installed)
 * Installing package: php-fpm.................................OK
 * Installing package: php-gd..................................OK
 * Installing package: php-ldap................................OK
 * Installing package: php-mbstring............................OK
 * Installing package: php-mcrypt..............................OK
 * Installing package: php-mysqlnd.............................OK
 * Installing package: php-process.............................OK
 * Skipping package:   tar.....................................(Already Installed)
 * Installing package: tftp-server.............................OK
 * Installing package: unzip...................................OK
 * Installing package: vsftpd..................................OK
 * Skipping package:   wget....................................(Already Installed)
 * Installing package: xinetd..................................OK
 * Updating packages as needed.................................OK

 * Confirming package installation

 * Checking package: bc........................................OK
 * Checking package: curl......................................OK
 * Checking package: gcc.......................................OK
 * Checking package: gcc-c++...................................OK
 * Checking package: gzip......................................OK
 * Checking package: httpd.....................................OK
 * Checking package: lftp......................................OK
 * Checking package: m4........................................OK
 * Checking package: make......................................OK
 * Checking package: mariadb...................................OK
 * Checking package: mariadb-server............................OK
 * Checking package: mod_ssl...................................OK
 * Checking package: net-tools.................................OK
 * Checking package: nfs-utils.................................OK
 * Checking package: php.......................................OK
 * Checking package: php-bcmath................................OK
 * Checking package: php-cli...................................OK
 * Checking package: php-common................................OK
 * Checking package: php-fpm...................................OK
 * Checking package: php-gd....................................OK
 * Checking package: php-ldap..................................OK
 * Checking package: php-mbstring..............................OK
 * Checking package: php-mcrypt................................OK
 * Checking package: php-mysqlnd...............................OK
 * Checking package: php-process...............................OK
 * Checking package: tar.......................................OK
 * Checking package: tftp-server...............................OK
 * Checking package: unzip.....................................OK
 * Checking package: vsftpd....................................OK
 * Checking package: wget......................................OK
 * Checking package: xinetd....................................OK

 * Configuring services

 * Setting up fog user.........................................OK
 * 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
 * Is the MySQL password blank? (Y/n) 
 * 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
 * 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
 * Downloading binaries needed.................................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:

   http://192.168.xx.248/fog/management

 * Press [Enter] key when database is updated/installed.

 * 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 permissions on FOGMulticastManager.service script...OK
 * Enabling FOGMulticastManager.service Service................OK
 * Setting permissions on FOGImageReplicator.service script....OK
 * Enabling FOGImageReplicator.service Service.................OK
 * Setting permissions on FOGSnapinReplicator.service script...OK
 * Enabling FOGSnapinReplicator.service Service................OK
 * Setting permissions on FOGScheduler.service script..........OK
 * Enabling FOGScheduler.service Service.......................OK
 * Setting permissions on FOGPingHosts.service script..........OK
 * Enabling FOGPingHosts.service Service.......................OK
 * Setting permissions on FOGSnapinHash.service script.........OK
 * Enabling FOGSnapinHash.service Service......................OK
 * Setting permissions on FOGImageSize.service script..........OK
 * Enabling FOGImageSize.service Service.......................OK
 * Setting up FOG Services.....................................OK
 * Starting FOGMulticastManager.service Service................OK
 * Starting FOGImageReplicator.service Service.................OK
 * Starting FOGSnapinReplicator.service Service................OK
 * Starting FOGScheduler.service Service.......................OK
 * Starting FOGPingHosts.service Service.......................OK
 * Starting FOGSnapinHash.service Service......................OK
 * Starting FOGImageSize.service Service.......................OK
 * Setting up exports file.....................................OK
 * Setting up and starting RPCBind.............................OK
 * 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://192.168.xx.248/fog/management

   Default User Information
   Username: fog
   Password: password

## Additional steps to for NFS, Infos from here: [NFS Server](http://theterminallife.com/adding-a-nfs-server-to-nethserver)

# make dirs
mkdir -p /etc/e-smith/db/configuration/defaults/nfs
mkdir -p /etc/e-smith/db/configuration/defaults/nfslock
mkdir -p /etc/e-smith/db/configuration/defaults/rpcbind
mkdir -p /etc/e-smith/db/configuration/defaults/rpcgssd
mkdir -p /etc/e-smith/db/configuration/defaults/rpcidmapd
mkdir -p /etc/e-smith/db/configuration/defaults/rpcsvcgssd


# edit /etc/sysconfig/nfs
LOCKD_TCPPORT=32803 
LOCKD_UDPPORT=32769 
MOUNTD_PORT=892 
RQUOTAD_PORT=875 
STATD_PORT=662 
STATD_OUTGOING_PORT=2020


# set config
config set nfs service status enabled
config setprop nfs TCPPorts 111,662,875,892,2020,2049,32803
config setprop nfs UDPPorts 111,662,875,892,2020,2049,32769
config setprop nfs access private
echo "enabled" > /etc/e-smith/db/configuration/defaults/nfs/status
echo "111,662,875,892,2020,2049,32803" > /etc/e-smith/db/configuration/defaults/nfs/TCPPorts
echo "111,662,875,892,2020,2049,32769" > /etc/e-smith/db/configuration/defaults/nfs/UDPPorts
echo "private" > /etc/e-smith/db/configuration/defaults/nfs/access


## For the rest of the services...

# nfslock
config set nfslock service status enabled
echo "enabled" > /etc/e-smith/db/configuration/defaults/nfslock/status

# rpcbind
config set rpcbind service status enabled
echo "enabled" > /etc/e-smith/db/configuration/defaults/rpcbind/status

# rpcgssd
config set rpcgssd service status enabled
echo "enabled" > /etc/e-smith/db/configuration/defaults/rpcgssd/status

# rpcidmapd
config set rpcidmapd service status enabled
echo "enabled" > /etc/e-smith/db/configuration/defaults/rpcidmapd/status

# rpcsvcgssd
config set rpcsvcgssd service status enabled
echo "enabled" > /etc/e-smith/db/configuration/defaults/rpcsvcgssd/status


## Now, signal the firewall to save and update.
signal-event nethserver-firewall-base-save
signal-event nethserver-firewall-base-update

(Manonthemoon Ak) #23
[root@ns bin]# yum -y install git
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
 * base: centos2.hti.pl
 * epel: mirror.infonline.de
 * extras: centos2.hti.pl
 * nethforge: mirror.alpix.eu
 * nethserver-base: mirror.alpix.eu
 * nethserver-updates: mirror.alpix.eu
 * remi-safe: remi.mirror.karneval.cz
 * updates: centos2.hti.pl
Package git-1.8.3.1-14.el7_5.x86_64 already installed and latest version
Nothing to do
[root@ns bin]# git clone https://github.com/FOGProject/fogproject.git
Cloning into 'fogproject'...
remote: Counting objects: 143570, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 143570 (delta 103), reused 147 (delta 67), pack-reused 143375
Receiving objects: 100% (143570/143570), 757.81 MiB | 2.27 MiB/s, done.
Resolving deltas: 100% (101254/101254), done.
[root@ns bin]# cd fogproject/bin
[root@ns 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.5.4 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: [1] 1



  Starting Redhat based Installation


  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

  What is the IP address to be used by this FOG Server? [7x.xx.x.86]192.168.0.248

  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N] n

  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N] N

  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N] N

  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N]

  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N] y
  What network interface would you like to use? enp1s0f1

  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? [7x.xx.x.85]192.168.0.245

  Would you like DHCP to handle DNS? [Y/n] y
  What DNS address should DHCP allow? [127.0.0.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

   ######################################################################
   #     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: Redhat
 * Detected Linux Distribution: CentOS Linux
 * Server IP Address: 192.168.0.248
 * Server Subnet Mask: 255.255.255.0
 * Interface: enp1s0f1
 * Installation Type: Normal Server
 * Internationalization: 0
 * Image Storage Location: /images
 * Using FOG DHCP: Yes
 * DHCP router Address: 192.168.0.245


 * 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:

	bc curl dhcp gcc gcc-c++ genisoimage gzip httpd lftp m4 make mod_ssl mtools mysql mysql-server net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-process syslinux tar tftp-server unzip vsftpd wget xinetd xz-devel


 * Skipping package:   bc......................................(Already Installed)
 * Skipping package:   curl....................................(Already Installed)
 * Skipping package:   dhcp....................................(Already Installed)
 * Skipping package:   gcc.....................................(Already Installed)
 * Skipping package:   gcc-c++.................................(Already Installed)
 * Skipping package:   genisoimage.............................(Already Installed)
 * Skipping package:   gzip....................................(Already Installed)
 * Skipping package:   httpd...................................(Already Installed)
 * Skipping package:   lftp....................................(Already Installed)
 * Skipping package:   m4......................................(Already Installed)
 * Skipping package:   make....................................(Already Installed)
 * Skipping package:   mod_ssl.................................(Already Installed)
 * Skipping package:   mtools..................................(Already Installed)
 * Skipping package:   mariadb.................................(Already Installed)
 * Skipping package:   mariadb-server..........................(Already Installed)
 * Skipping package:   net-tools...............................(Already Installed)
 * Skipping package:   nfs-utils...............................(Already Installed)
 * Skipping package:   php.....................................(Already Installed)
 * Skipping package:   php-bcmath..............................(Already Installed)
 * Skipping package:   php-cli.................................(Already Installed)
 * Skipping package:   php-common..............................(Already Installed)
 * Skipping package:   php-fpm.................................(Already Installed)
 * Skipping package:   php-gd..................................(Already Installed)
 * Skipping package:   php-ldap................................(Already Installed)
 * Skipping package:   php-mbstring............................(Already Installed)
 * Skipping package:   php-mcrypt..............................(Already Installed)
 * Skipping package:   php-mysqlnd.............................(Already Installed)
 * Skipping package:   php-process.............................(Already Installed)
 * Skipping package:   syslinux................................(Already Installed)
 * Skipping package:   tar.....................................(Already Installed)
 * Skipping package:   tftp-server.............................(Already Installed)
 * Skipping package:   unzip...................................(Already Installed)
 * Skipping package:   vsftpd..................................(Already Installed)
 * Skipping package:   wget....................................(Already Installed)
 * Skipping package:   xinetd..................................(Already Installed)
 * Skipping package:   xz-devel................................(Already Installed)
 * Updating packages as needed.................................OK

 * Confirming package installation

 * Checking package: bc........................................OK
 * Checking package: curl......................................OK
 * Checking package: dhcp......................................OK
 * Checking package: gcc.......................................OK
 * Checking package: gcc-c++...................................OK
 * Checking package: genisoimage...............................OK
 * Checking package: gzip......................................OK
 * Checking package: httpd.....................................OK
 * Checking package: lftp......................................OK
 * Checking package: m4........................................OK
 * Checking package: make......................................OK
 * Checking package: mariadb...................................OK
 * Checking package: mariadb-server............................OK
 * Checking package: mod_ssl...................................OK
 * Checking package: mtools....................................OK
 * Checking package: net-tools.................................OK
 * Checking package: nfs-utils.................................OK
 * Checking package: php.......................................OK
 * Checking package: php-bcmath................................OK
 * Checking package: php-cli...................................OK
 * Checking package: php-common................................OK
 * Checking package: php-fpm...................................OK
 * Checking package: php-gd....................................OK
 * Checking package: php-ldap..................................OK
 * Checking package: php-mbstring..............................OK
 * Checking package: php-mcrypt................................OK
 * Checking package: php-mysqlnd...............................OK
 * Checking package: php-process...............................OK
 * Checking package: syslinux..................................OK
 * Checking package: tar.......................................OK
 * Checking package: tftp-server...............................OK
 * Checking package: unzip.....................................OK
 * Checking package: vsftpd....................................OK
 * Checking package: wget......................................OK
 * Checking package: xinetd....................................OK
 * Checking package: xz-devel..................................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
 * Is the MySQL password blank? (Y/n) y
 * 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
 * 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
 * Downloading binaries needed.................................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 Apache virtual host (no SSL).....................OK
 * Starting and checking status of web services................OK
 * Changing permissions on apache log files....................OK
 * Backing up database.........................................Failed!

I do not think I can handle this: /
Something went scattered
Besides, I would like my DHCP server to run all the time as DHCP.


(fpausp) #24

OK, please give me the output of: ifconfig

Possibly you choosed the wrong Interface/IP-Address…

I think you are on the wrong interface ?

Say yes and change it to the green Interface…

I would also suggest you to change the DHCP Range to 192.168.0.1 - 192.168.0.200
All Server(s) should have a static IP above 192.168.0.200 …


(Manonthemoon Ak) #25

I have two network cards. One -> enp1s0f0 (red) The Internet service provider is connected to it. Has IP 7x.xx.x.86
The second card enp1s0f1 (green) has the address 192.168.0.1. It works as a DHCP server for about 100 computers.
What did I do wrong?

In general, after configuring FOG Project there will be no problem with DHCP?

I can give you a screenshot on Monday.


(fpausp) #26

OK, we will continue on Monday…


(Manonthemoon Ak) #27

Hey,
my ifconfig

enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 7x.xx.x.86  netmask 255.255.255.252  broadcast 7x.xx.x.87
        inet6 xe80::215:17xx:xeax:92x0  prefixlen 64  scopeid 0x20<link>
        ether 00:15:17:bx:92:x0  txqueuelen 1000  (Ethernet)
        RX packets 159391  bytes 213758680 (203.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84877  bytes 10485513 (9.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xb1920000-b193ffff

enp1s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 xe80::215:17xx:xeax:92x1  prefixlen 64  scopeid 0x20<link>
        ether 00:15:17:ax:92:x1  txqueuelen 1000  (Ethernet)
        RX packets 14450  bytes 3221692 (3.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21562  bytes 20051242 (19.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xb1900000-b191ffff

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2082  bytes 156499 (152.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2082  bytes 156499 (152.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

(fpausp) #28

OK, you have to use the Interface enp1s0f1 and IP-Address 192.168.0.1 instead of 192.168.0.248.

You can run the installer again with: cd ~ && cd fogproject/bin && ./installfog.sh


(Manonthemoon Ak) #29

I have to do too?

mkdir /images

fdisk /dev/sdb

mke2fs -j /dev/sdb1

(fpausp) #30

NO !!! This is for another usecase if you like to use two server…

Do you have the /image folder ? If not do: mkdir /images

Now just run the installer again and change the IP.


(Manonthemoon Ak) #31

Thank you for your patience.
I can even log in, but I still have a problem.

* Setting up and starting DHCP Server.........................Failed!

All my configuration:

[root@ns ~]# yum -y install git
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
 * base: centos2.hti.pl
 * epel: ftp.icm.edu.pl
 * extras: centos2.hti.pl
 * nethforge: mirror.nordest.systems
 * nethserver-base: mirror.nordest.systems
 * nethserver-updates: mirror.nordest.systems
 * updates: centos2.hti.pl
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-14.el7_5 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-14.el7_5 for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3.1-14.el7_5.x86_64
--> Running transaction check
---> Package libgnome-keyring.x86_64 0:3.12.0-1.el7 will be installed
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-14.el7_5 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch         Version                Repository     Size
================================================================================
Installing:
 git                    x86_64       1.8.3.1-14.el7_5       updates       4.4 M
Installing for dependencies:
 libgnome-keyring       x86_64       3.12.0-1.el7           base          109 k
 perl-Error             noarch       1:0.17020-2.el7        base           32 k
 perl-Git               noarch       1.8.3.1-14.el7_5       updates        54 k
 perl-TermReadKey       x86_64       2.30-20.el7            base           31 k

Transaction Summary
================================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 4.6 M
Installed size: 23 M
Downloading packages:
(1/5): libgnome-keyring-3.12.0-1.el7.x86_64.rpm            | 109 kB   00:00
(2/5): perl-TermReadKey-2.30-20.el7.x86_64.rpm             |  31 kB   00:00
(3/5): perl-Error-0.17020-2.el7.noarch.rpm                 |  32 kB   00:00
(4/5): perl-Git-1.8.3.1-14.el7_5.noarch.rpm                |  54 kB   00:00
(5/5): git-1.8.3.1-14.el7_5.x86_64.rpm                     | 4.4 MB   00:00
--------------------------------------------------------------------------------
Total                                              7.1 MB/s | 4.6 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:perl-Error-0.17020-2.el7.noarch                            1/5
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                          2/5
  Installing : libgnome-keyring-3.12.0-1.el7.x86_64                         3/5
  Installing : git-1.8.3.1-14.el7_5.x86_64                                  4/5
  Installing : perl-Git-1.8.3.1-14.el7_5.noarch                             5/5
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                            1/5
  Verifying  : git-1.8.3.1-14.el7_5.x86_64                                  2/5
  Verifying  : libgnome-keyring-3.12.0-1.el7.x86_64                         3/5
  Verifying  : perl-Git-1.8.3.1-14.el7_5.noarch                             4/5
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                          5/5

Installed:
  git.x86_64 0:1.8.3.1-14.el7_5

Dependency Installed:
  libgnome-keyring.x86_64 0:3.12.0-1.el7  perl-Error.noarch 1:0.17020-2.el7
  perl-Git.noarch 0:1.8.3.1-14.el7_5      perl-TermReadKey.x86_64 0:2.30-20.el7

Complete!
[root@ns ~]# git clone https://github.com/FOGProject/fogproject.git
Cloning into 'fogproject'...
remote: Counting objects: 143570, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 143570 (delta 103), reused 147 (delta 67), pack-reused 143375
Receiving objects: 100% (143570/143570), 757.81 MiB | 3.76 MiB/s, done.
Resolving deltas: 100% (101254/101254), done.
[root@ns ~]# cd fogproject/bin
[root@ns 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.5.4 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: [1] 1



  Starting Redhat based Installation


  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

  What is the IP address to be used by this FOG Server? [7x.xx.x.86]192.168.0.1
  Would you like to change the default network interface from ?
  If you are not sure, select No. [y/N] y
  What network interface would you like to use? enp1s0f1

  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? [7x.xx.x.85]192.168.0.1

  Would you like DHCP to handle DNS? [Y/n] y
  What DNS address should DHCP allow? [127.0.0.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

   ######################################################################
   #     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: Redhat
 * Detected Linux Distribution: CentOS Linux
 * Server IP Address: 192.168.00.1
 * Server Subnet Mask: 255.255.255.0
 * Interface: enp1s0f1
 * Installation Type: Normal Server
 * Internationalization: 0
 * Image Storage Location: /images
 * Using FOG DHCP: Yes
 * DHCP router Address: 192.168.0.1


 * 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:

	bc curl dhcp gcc gcc-c++ genisoimage gzip httpd lftp m4 make mod_ssl mtools mysql mysql-server net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-process syslinux tar tftp-server unzip vsftpd wget xinetd xz-devel


 * Skipping package:   bc......................................(Already Installed)
 * Skipping package:   curl....................................(Already Installed)
 * Installing package: dhcp....................................OK
 * Installing package: gcc.....................................OK
 * Installing package: gcc-c++.................................OK
 * Installing package: genisoimage.............................OK
 * Skipping package:   gzip....................................(Already Installed)
 * Skipping package:   httpd...................................(Already Installed)
 * Installing package: lftp....................................OK
 * Skipping package:   m4......................................(Already Installed)
 * Skipping package:   make....................................(Already Installed)
 * Skipping package:   mod_ssl.................................(Already Installed)
 * Installing package: mtools..................................OK
 * Installing package: mariadb.................................OK
 * Installing package: mariadb-server..........................OK
 * Skipping package:   net-tools...............................(Already Installed)
 * Installing package: nfs-utils...............................OK
 * Skipping package:   php.....................................(Already Installed)
 * Installing package: php-bcmath..............................OK
 * Skipping package:   php-cli.................................(Already Installed)
 * Skipping package:   php-common..............................(Already Installed)
 * Installing package: php-fpm.................................OK
 * Installing package: php-gd..................................OK
 * Installing package: php-ldap................................OK
 * Installing package: php-mbstring............................OK
 * Installing package: php-mcrypt..............................OK
 * Installing package: php-mysqlnd.............................OK
 * Installing package: php-process.............................OK
 * Installing package: syslinux................................OK
 * Skipping package:   tar.....................................(Already Installed)
 * Installing package: tftp-server.............................OK
 * Installing package: unzip...................................OK
 * Installing package: vsftpd..................................OK
 * Skipping package:   wget....................................(Already Installed)
 * Installing package: xinetd..................................OK
 * Installing package: xz-devel................................OK
 * Updating packages as needed.................................OK

 * Confirming package installation

 * Checking package: bc........................................OK
 * Checking package: curl......................................OK
 * Checking package: dhcp......................................OK
 * Checking package: gcc.......................................OK
 * Checking package: gcc-c++...................................OK
 * Checking package: genisoimage...............................OK
 * Checking package: gzip......................................OK
 * Checking package: httpd.....................................OK
 * Checking package: lftp......................................OK
 * Checking package: m4........................................OK
 * Checking package: make......................................OK
 * Checking package: mariadb...................................OK
 * Checking package: mariadb-server............................OK
 * Checking package: mod_ssl...................................OK
 * Checking package: mtools....................................OK
 * Checking package: net-tools.................................OK
 * Checking package: nfs-utils.................................OK
 * Checking package: php.......................................OK
 * Checking package: php-bcmath................................OK
 * Checking package: php-cli...................................OK
 * Checking package: php-common................................OK
 * Checking package: php-fpm...................................OK
 * Checking package: php-gd....................................OK
 * Checking package: php-ldap..................................OK
 * Checking package: php-mbstring..............................OK
 * Checking package: php-mcrypt................................OK
 * Checking package: php-mysqlnd...............................OK
 * Checking package: php-process...............................OK
 * Checking package: syslinux..................................OK
 * Checking package: tar.......................................OK
 * Checking package: tftp-server...............................OK
 * Checking package: unzip.....................................OK
 * Checking package: vsftpd....................................OK
 * Checking package: wget......................................OK
 * Checking package: xinetd....................................OK
 * Checking package: xz-devel..................................OK

 * Configuring services

 * Setting up fog user.........................................OK
 * 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
 * Is the MySQL password blank? (Y/n) y
 * 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
 * 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
 * Downloading binaries needed.................................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 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://192.168.00.1/fog/management

 * Press [Enter] key when database is updated/installed.

 * Setting up storage..........................................OK
 * Setting up and starting DHCP Server.........................Failed!
You have new mail in /var/spool/mail/root

(fpausp) #32

I guess you have to say No here, because you still have a DHCP Service running…


(Manonthemoon Ak) #33

Should I reinstall? Leave it as it is?
FOG starts, but there are no hosts.
I added one host, but nothing happens.


(fpausp) #34

How did you do that? - Please read this: Capturing_your_first_Image


(Manonthemoon Ak) #35

OK, thank you very much. I reinstalled the server again :wink: It seems ok.
Can you help me with this?

  • 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. 192.168.0.1)

  • Option 067/filename is the bootfile: (e.g. undionly.kpxe)


(fpausp) #36

You need this only if you use two server, one for DHCP and the other one for FOG…

Can you boot a client via PXE?


(Manonthemoon Ak) #37

Not.
He does not search for hosts.

During the installation I did:

Would you like to use the FOG server for DHCP service? [y/N] N

An error occurred, as in the previous post.
Otherwise, there was a DHCP error in Fog.


(Manonthemoon Ak) #38

Do you have any idea what is wrong?
Maybe with this DHCP?

  • Here are the settings FOG will use:
  • Base Linux: Redhat
  • Detected Linux Distribution: CentOS Linux
  • Server IP Address: 192.168.0.1
  • Server Subnet Mask: 255.255.255.0
  • Interface: br0
  • Installation Type: Normal Server
  • Internationalization: 1
  • 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.

(fpausp) #39

I am sorry, I cannot test with your setup atm… In my HowTo I used a Nethserver with DHCP and a 2nd Server for FOG…

Do you have the TFTP entry in you DHCP settings to point to the DHCP/FOG-Server?
Configuration > DHCP > DHCP server > TFTP servers

What happen on the Clientside if you boot the machine with PXE, how far can you go?


(Manonthemoon Ak) #40

I understand.

TFTP servers - 192.168.0.1

Error: PXE-E53: No boot filename received
Pxe-Mof exiting bootmanage pxe rom

I wonder if I should put FOG on a separate server DHCP.
Only better if it was on one server :confused: