Difference between revisions of "Upgrade to 1.x.x"
m (Tom-elliott.7271 moved page Upgrade to 0.33 to Upgrade to 1.0.0: Version name is now 1.0.0) |
|||
Line 1: | Line 1: | ||
= Upgrade Procedure = | = Upgrade Procedure = | ||
− | '''NOTE: 0. | + | '''NOTE: 1.0.0 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. | 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. | All commands are assumed to be run as root. If you don't have access to root, prepend the installation with sudo (ex. | ||
− | <pre>sudo svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/ | + | <pre>sudo svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_1.0.0</pre> |
<pre>sudo ./installfog.sh</pre> | <pre>sudo ./installfog.sh</pre> | ||
= Download = | = Download = | ||
# Get the source or tarball. | # Get the source or tarball. | ||
#* == To get the Source from SVN == | #* == To get the Source from SVN == | ||
− | #* <pre>svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/ | + | #* <pre>svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_1.0.0</pre> |
#* == To get tarball file. == | #* == To get tarball file. == | ||
#* ''' NOT READY YET ''' | #* ''' NOT READY YET ''' | ||
= Prepare for install = | = Prepare for install = | ||
# Change to the downloaded source installation folder. | # Change to the downloaded source installation folder. | ||
− | #* <pre>cd /opt/ | + | #* <pre>cd /opt/fog_1.0.0/bin</pre> |
# Begin as if you're installing. | # Begin as if you're installing. | ||
#* <pre>./installfog.sh</pre> | #* <pre>./installfog.sh</pre> |
Revision as of 12:41, 3 May 2014
Upgrade Procedure
NOTE: 1.0.0 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_1.0.0
sudo ./installfog.sh
Download
- Get the source or tarball.
- == To get the Source from SVN ==
-
svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_1.0.0
- == To get tarball file. ==
- NOT READY YET
Prepare for install
- Change to the downloaded source installation folder.
-
cd /opt/fog_1.0.0/bin
-
- Begin as if you're installing.
-
./installfog.sh
-
- 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
- Login to your mysql system
- MySQL with a password set:
-
mysql -u root -p'<YOURPASSWORDHERE>' fog
- MySQL without a password:
-
mysql -u root fog
- 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;
- 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.
- 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.
- 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>
-
FOG_TFTP_FTP_USERNAME fog
-
FOG_TFTP_FTP_PASSWORD <fog user password>
-
FOG_TFTP_PXE_CONFIG_DIR <make it blank>
-
FOG_TFTP_PXE_KERNEL_DIR /var/www/<FOGFOLDERLOCATION>/service/ipxe/
-
FOG_TFTP_PXE_KERNEL bzImage
-
FOG_KERNEL_RAMDISK_SIZE 127000
-
FOG_PXE_BOOT_IMAGE init.xz
-
FOG_PXE_IMAGE_DNSADDRESS <DNSSERVERIP>
-
FOG_TFTP_PXE_KERNEL_32 bzImage32
-
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.