FOG v0.32 install script doesn't install DHCP



  • First the install script didn’t install DHCP…

    http://www.SyperiorSoft.com #

    Developers:

    Chuck Syperski

    Jian Zhang

    GNU GPL Version 3

    ###########################################

    Version: 0.32 Installer/Updater

    What version of Linux would you like to run the installtion for?

          1) Redhat Based Linux (Fedora, CentOS)
          2) Ubuntu Based Linux (Kubuntu, Edubuntu)
    

    Choice: http://www.fogproject.org/wiki/index.php?title=InstallationModes

    What type of installation would you like to do? [N] n

    What is the IP address to be used by this FOG Server? [192.168.1.6]

    Would you like to setup a router address for the DHCP server? [Y/n] y
    What is the IP address to be used for the router on the DHCP server? [192.168.1.1]

    Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] y
    What is the IP address to be used for DNS on the DHCP server and client boot image? [192.168.1.1]

    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 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 to setup your server, 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 on Fedora, or with sudo on Ubuntu.

    Here are the settings FOG will use:
    Distro: Redhat
    Installation Type: Normal Server
    Server IP Address: 192.168.1.6
    DHCP router Address: 192.168.1.1
    DHCP DNS Address: 192.168.1.1
    Interface: eth0
    Using FOG DHCP: 1
    Internationalization: 0

    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.

    • Skipping package: httpd (Already Installed)
    • Skipping package: php (Already Installed)
    • Skipping package: php-gd (Already Installed)
    • Skipping package: php-cli (Already Installed)
    • Skipping package: php-gettext (Already Installed)
    • Skipping package: mysql (Already Installed)
    • Skipping package: mysql-server (Already Installed)
    • Skipping package: php-mysql (Already Installed)
    • Installing package: dhcp
    • Skipping package: tftp-server (Already Installed)
    • Skipping package: nfs-utils (Already Installed)
    • Skipping package: vsftpd (Already Installed)
    • Skipping package: net-tools (Already Installed)
    • Skipping package: wget (Already Installed)
    • Skipping package: xinetd (Already Installed)
    • Skipping package: tar (Already Installed)
    • Skipping package: gzip (Already Installed)
    • Skipping package: make (Already Installed)
    • Skipping package: m4 (Already Installed)
    • Skipping package: gcc (Already Installed)
    • Skipping package: gcc-c++ (Already Installed)
    • Skipping package: htmldoc (Already Installed)
    • Skipping package: perl (Already Installed)
    • Skipping package: perl-Crypt-PasswdMD5 (Already Installed)
    • Skipping package: lftp (Already Installed)
    • Skipping package: clamav-update (Already Installed)

    Confirming package installation.

    • Checking package: httpd…OK
    • Checking package: php…OK
    • Checking package: php-gd…OK
    • Checking package: php-cli…OK
    • Checking package: php-gettext…OK
    • Checking package: mysql…OK
    • Checking package: mysql-server…OK
    • Checking package: php-mysql…OK
    • Checking package: dhcp…Failed!

    Then I tried to install dhcp via yum command -

    [root@localhost ~]# yum install dhcp
    Loaded plugins: presto, refresh-packagekit
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package dhcp.i686 12:4.1.2-4.ESV.R2.fc13 set to be updated
    –> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size

    Installing:
    dhcp i686 12:4.1.2-4.ESV.R2.fc13 updates 894 k

    Transaction Summary

    Install 1 Package(s)
    Upgrade 0 Package(s)

    Total size: 894 k
    Installed size: 2.1 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test

    Transaction Check Error:
    file /usr/share/man/man5/dhcp-eval.5.gz from install of dhcp-12:4.1.2-4.ESV.R2.fc13.i686 conflicts with file from package dhclient-12:4.1.1-15.fc13.i686
    file /usr/share/man/man5/dhcp-options.5.gz from install of dhcp-12:4.1.2-4.ESV.R2.fc13.i686 conflicts with file from package dhclient-12:4.1.1-15.fc13.i686

    Error Summary

    So now what?

    And as a side note - I can’t access the FOG web gui management page, I changed the “MYSQL_PASSWORD” to a blank password at ‘/var/www/fog/commons/config.php’, and there’s no such path as
    ’/opt/fog/service/etc/config.php’ to change the other “MYSQL_PASSWORD”.

    (As a 2nd side note, I already have a working FOG server, so I know it can be done, although I bought a newer computer to load Fedora (13 - old machine was 8) with FOG.)

    Please help, thank you very much.
    Jim


  • Developer

    personally, i would recommend using a folder such as /var/www/html/ISO because this folder will not be touched in fog upgrades, but the /var/www/html/fog/service/ipxe/ folder will be moved


  • Senior Developer

    /tftpboot is still there, but if you’re doing custom ISO’s you will likely want it on the /var/www/html/fog/service/ipxe/ folder.



  • I upgraded to v. 1.1.2 and everything went fine (after I ran the ‘yum remove dhclient’), only question now, is where is the images folder where I can put my custom boot iso’s? I noticed tftpboot isn’t there anymore. I also need to edit the default menu.
    Thanks again,
    Jim



  • Well I think I was having some sort of issue with version 1.1.2, maybe it was the dhcp conflict, it’s been a long day. But removing the dhclient and installing dhcp, then installing the .32 script worked. I can now get to the FOG Mgmt gui.
    Thanks for your help!
    I’ll try v1.1.2 soon.
    Jim


  • Senior Developer

    Is there are reason you’re preferring to install 0.32 vs. 1.1.2?

    Fedora has some funny issues in regards to any version of FOG as repositories are not installed, and the more modern you get with fedora, the changes become way too overwhelming. That said, have you simple tried removing the conflicting package? Set your network up as Static IP and ensure it’s good with DNS as well to access the internet. To remove the conflicting client, you could try:

    yum remove dhclient; yum install dhpc
    

Log in to reply
 

404
Online

38731
Users

10556
Topics

99953
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.