Difference between revisions of "Upgrade to 1.x.x"

From FOG Project
Jump to: navigation, search
(Clean out the old)
(Clean out the old)
Line 41: Line 41:
 
#* Select the TFTP Server heading on this page.
 
#* Select the TFTP Server heading on this page.
 
#* Change values accoringly:
 
#* Change values accoringly:
FOG_TFTP_HOST <FOGSERVERIP>
+
#* <pre>FOG_TFTP_HOST <FOGSERVERIP>
FOG_TFTP_FTP_USERNAME fog
+
#* <pre>FOG_TFTP_FTP_USERNAME fog
FOG_TFTP_FTP_PASSWORD <fog user password>
+
#* <pre>FOG_TFTP_FTP_PASSWORD <fog user password>
FOG_TFTP_PXE_CONFIG_DIR <make it blank>
+
#* <pre>FOG_TFTP_PXE_CONFIG_DIR <make it blank>
FOG_TFTP_PXE_KERNEL_DIR /var/www/<FOGFOLDERLOCATION>/service/ipxe/
+
#* <pre>FOG_TFTP_PXE_KERNEL_DIR /var/www/<FOGFOLDERLOCATION>/service/ipxe/
FOG_TFTP_PXE_KERNEL bzImage
+
#* <pre>FOG_TFTP_PXE_KERNEL bzImage
FOG_KERNEL_RAMDISK_SIZE 127000
+
#* <pre>FOG_KERNEL_RAMDISK_SIZE 127000
FOG_PXE_BOOT_IMAGE init.xz
+
#* <pre>FOG_PXE_BOOT_IMAGE init.xz
FOG_PXE_IMAGE_DNSADDRESS <DNSSERVERIP>
+
#* <pre>FOG_PXE_IMAGE_DNSADDRESS <DNSSERVERIP>
FOG_TFTP_PXE_KERNEL_32 bzImage32
+
#* <pre>FOG_TFTP_PXE_KERNEL_32 bzImage32
FOG_PXE_BOOT_IMAGE_32 init_32.xz
+
#* <pre>FOG_PXE_BOOT_IMAGE_32 init_32.xz
  
 
= Congratulations =
 
= Congratulations =
 
You should now have an UPGRADED FOG server that will be able to perform all the tasks we've all come to know and love.
 
You should now have an UPGRADED FOG server that will be able to perform all the tasks we've all come to know and love.

Revision as of 12:08, 16 April 2014

Upgrade Procedure

NOTE: 0.33 is a, nearly, complete rewrite from previous versions of FOG. There are many changes and upgrading from past revisions is not recommended. It is still possible, but it is HIGHLY recommended to do a fresh install.

There is no guarantee that this method is going to work 100% of the time in all cases. Please see the above note as to why if you're worried.

All commands are assumed to be run as root. If you don't have access to root, prepend the installation with sudo (ex.

sudo svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_0.33
sudo ./installfog.sh

Download

  1. Get the source or tarball.
    • == To get the Source from SVN ==
    • svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_0.33
    • == To get tarball file. ==
    • NOT READY YET

Prepare for install

  1. Change to the downloaded source installation folder.
    • cd /opt/fog_0.33/bin
  2. Begin as if you're installing.
    • ./installfog.sh
  3. Confirm you want to upgrade using the .fogsettings UNLESS YOU HAVE TO MAKE CHANGES

Clean out the old

AS THERE ARE SO MANY CHANGES YOU WILL NEED TO MAKE ONE MINOR DATABASE CHANGE TO MAKE THINGS WORK

  1. Login to your mysql system
    • MySQL with a password set:
    • mysql -u root -p'<YOURPASSWORDHERE>' fog
    • MySQL without a password:
    • mysql -u root fog
  2. Run the following query once you see the mysql> prompt:
    • THIS REMOVES ALL TASKS FROM THE TASKS TABLE ESSENTIALLY MAKING THE TASKS AS IF THEY HAVE NEVER BEEN PERFORMED. IMAGING LOG IS UNTOUCHED SO IF YOU NEED RECORDS OF THE ACTUAL TASKS MAKE A BACKUP FIRST
    • truncate table tasks;
  3. Sign into the FOG GUI
    • Go to the link you normally go to and you should notice the upgrade/install database screen.
    • Click the submit button and it should move on to say, Click here to login, once complete.
    • Sign in with your normal user and password.
  4. Make necessary adjustments.
    • As the hostOS column has been moved to the images table rather than the hosts table, you need to specify the Operating system of the images currently on your system.
    • To do so, login to the FOG GUI and navigate to the Image Management Page. Click on each of your images and set the OSID accordingly.
  5. You will need adjust tftp values.
    • Login to the FOG GUI and navigate to FOG Configuration Page.
    • Click the FOG Settings link on the left hand side of the screen.
    • Select the TFTP Server heading on this page.
    • Change values accoringly:
    • FOG_TFTP_HOST <FOGSERVERIP>
#* <pre>FOG_TFTP_FTP_USERNAME fog #* <pre>FOG_TFTP_FTP_PASSWORD <fog user password> #* <pre>FOG_TFTP_PXE_CONFIG_DIR <make it blank> #* <pre>FOG_TFTP_PXE_KERNEL_DIR /var/www/<FOGFOLDERLOCATION>/service/ipxe/ #* <pre>FOG_TFTP_PXE_KERNEL bzImage #* <pre>FOG_KERNEL_RAMDISK_SIZE 127000 #* <pre>FOG_PXE_BOOT_IMAGE init.xz #* <pre>FOG_PXE_IMAGE_DNSADDRESS <DNSSERVERIP> #* <pre>FOG_TFTP_PXE_KERNEL_32 bzImage32 #* <pre>FOG_PXE_BOOT_IMAGE_32 init_32.xz

Congratulations

You should now have an UPGRADED FOG server that will be able to perform all the tasks we've all come to know and love.