Pages

Rabu, 13 Februari 2013

FOG v0.32 on ClearOS v5.2

Folks,

Not sure if anyone has posted this before but here's a quick HOWTO on getting FOG running on a ClearOS 5.2 install.
Not claiming this is 100% as I worked on it over a few days and may have forgotten something. I also suspect that some of the steps I do are actually not required but I have a running FOG server at the end of it so hopefully this will be helpful to other folks trying to do this. FOG v0.32 has a higher php requirement than the stock php on ClearOS so we have to upgrade that too here to get it all working.


Quick cheat sheet on getting FOG v0.32 running on a ClearOS 5.2 Install

Do a base OS install of ClearOS and put as much storage as you can at /images

Once you get the base install done register the box and then install the following additional software if it is not already installed and enable it.

As root run each of these commands on their own and say yes to the obvious questions.
Code:


yum update
yum install xinetd
yum install nfs
chkconfig portmap on
chkconfig nfs on
chkconfig xinetd on
service xinetd start
service portmap start
service nfs start



Note that FOG is going to install vsftpd so make sure internal FTP is turned off or better still not installed.
At some point I was able to get the builtin FTP working with FOG but that was on an older version. It would be my suggestion to run a dedicated ClearOS box for FOG and let it use the vsftpd it wants to. If you are trying to run FOG on a ClearOS box that already has FTP in use for something else then I would suggest disabling vsftpd and looking at making the "fog" user ftp login point at /images as this seems to be the key for making everything jive.

Add a local system account for fog:
Code:


useradd -r fog



Set the password for this user to "password"

Code:


passwd fog 



Download the 0.32 version of FOG.
Code:


http://sourceforge.net/projects/freeghost/files/



Before you run the installer you need to make a quick change or two.
Code:


nano fog_0.32/lib/redhat/config.sh



Remove from packages=
php-gettext
Change:
clamav-update to simply: clamav

Then run fog installer.
Code:


fog_0.32/bin/installfog.sh



All being well you can answer the question based upon your specific setup and it will complete without issue.

Fix TFTP write errors (read was OK)
Code:


chown -R fog.nobody /tftpboot
chmod -R 775 /tftpboot



If you use dnsmasq (clearos ) for DHCP then do the following:
Code:


nano /etc/dnsmasq.conf: 
    dhcp-boot=pxelinux.0,,<your.server.ip.address>
nano /etc/dnsmasq/dhcp.conf
     dhcp-option=eth1,66,"<your.server.ip.address>"



If you use some other DHCP on your network:
On a Linux DHCP server you must set:
next-server
On a Windows/Novell DHCP server you must set:
option 066 & 067
To IP of FOG Server

To fix issues with fog 0.32 and php (being unable to submit a task for FOG to process) - you need to upgrade into the 5.3.x tree.
I am using TimB's excellent repo for php upgrade (thanks as always Tim) and blantantly stealing the info from other posts here to upgrade php on this install.
Code:


        php -v
rpm --import ftp://timburgess.net/RPM-GPG-KEY-TimB.txt
wget ftp://timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
rpm -Kv timb-release-1-0.noarch.rpm
rpm -Uvh timb-release-1-0.noarch.rpm
yum --enablrepo=timb-testing upgrade php
service httpd restart
php -v



You are going to want to change the default password from "password" I am sure 
Login to the fog management interface 
[code[
http://<your server ip>/fog
[/code]

Click on the Users Icon (to heads icon second on left)
Edit the "fog" user and change the password*.
* Note that you are limited to what chars you can use so keep it fairly easy but secure. Avoid special chars.

Then click on the "Storage Management" icon > All Storage Nodes > DefaultMember
Then add the same password used above to Management Password:

Click on the Other Information icon (blue question mark)
Click FOG Settings
Scroll down to: TFTP Server 
Set the same password in FOG_TFTP_FTP_PASSWORD
It's a good idea to review the settings in here for any glaringly obvious issues.

Lastly change the fog system user password (this is new for fog 0.32 I believe)
Login to the ClearOS box via SSH on on the terminal as root and run:
Code:


passwd fog
<your new password>



This should now leave you with a working FOG install on ClearOS.
Go ahead and set a node to boot from network, do a quick register, create a blank image and associate with the host you just registered then create a quick task to upload an image on that node. When the node you registered reboots it should boot into Fog and start an image upload. 

I probably missed something so if you get stuck post a message here and I'll see if I can help out. Fog can be a pain to get going but is worth it's weight in gold in larger networks and as always, if you can run it on ClearOS it's going to be stable and fast 

Hope that helps some folks out.

Jim

8 komentar:

  1. Since the admin of this web page is working, no doubt very soon it will be renowned, due to
    its feature contents.

    my weblog - Buy VImax

    BalasHapus
  2. Hi there i am kavin, its my first occasion to commenting anyplace, when i read
    this piece of writing i thought i could also make comment due to this sensible piece of writing.


    my web site green coffee

    BalasHapus
  3. This site was... how do you say it? Relevant!! Finally I've found something which helped me. Cheers!

    my web-site :: Cambogia trim

    BalasHapus
  4. I have read so many content concerning the blogger
    lovers however this paragraph is truly a good post, keep it up.


    Check out my weblog Green coffee reviews

    BalasHapus
  5. An interesting discussion is definitely worth comment.
    I believe that you should publish more on this issue, it might
    not be a taboo subject but generally people don't discuss these topics. To the next! Best wishes!!

    Here is my web page 5HTP review ()

    BalasHapus
  6. Quality content is the important to invite the users to go to see
    the web site, that's what this site is providing.


    payday loans

    BalasHapus
  7. Pretty! This was a really wonderful article. Many thanks for supplying these details.


    Feel free to visit my weblog ... Automated pay days reviews

    BalasHapus
  8. Stunning quest there. What occurred after? Thanks!


    Review my blog ... Online HOme Careers

    BalasHapus