Difference between revisions of "Kernel Update"

From FOG Project
Jump to: navigation, search
m (Manual update to latest kernel)
(Kernel Update feature)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Kernel Update feature =
 
= Kernel Update feature =
  
When running FOG 1.3.0 (In development as of Feb 2016), you may change what kernels are available to you via the Kernel Update feature. You may want to do this for a special or unique machine, or all machines, depending upon your needs. The feature is located here:
+
When running FOG 1.3.0 (In development as of Feb 2016), you may change what kernels are available to you via the Kernel Update feature.  
 +
 
 +
You may want to do this for a special or unique machine, or all machines, depending upon your needs. The feature is located here:
  
 
Web interface -> FOG Configuration -> Kernel Update
 
Web interface -> FOG Configuration -> Kernel Update
Line 15: Line 17:
  
  
If you've named your new kernel <font color="red">bzImage</font> or <font color="red">bzImage32</font> then all 64 or all 32 bit clients will automatically begin using this new kernel. If you've named your kernel something unique (which is suggested), you may assign the kernel to a particular host. You may do this by setting the "Host Kernel Arguments" of a host to the file name you have chosen, as pictured below.
+
If you've named your new kernel <font color="red">bzImage</font> or <font color="red">bzImage32</font> then all 64 or all 32 bit clients will automatically begin using this new kernel.  
 +
 
 +
If you've named your kernel something unique (which is suggested), you may assign the kernel to a particular host.  
 +
 
 +
You may do this by setting the "Host Kernel" of a host to the file name you have chosen, as pictured below.
 +
 
 +
 
  
 
[[File:FOG 1.3.0 Unique Kernel name graphic.png]]
 
[[File:FOG 1.3.0 Unique Kernel name graphic.png]]
Line 25: Line 33:
 
Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server
 
Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server
  
If you experience the following error or a similar error, this is a FTP related issue and could be credentials or firewall or SELinux related. Usually, it is credentials or path related.
+
If you experience the following error or a similar error, this is a FTP related issue and could be credentials, permissions, ownership, firewall, path, or SELinux related. Usually, it is credentials or path related.
  
 
[[File:Kernel Update Failure.png]]
 
[[File:Kernel Update Failure.png]]
 +
  
 
You can set the FTP username and password and destination path used for kernel updates here:
 
You can set the FTP username and password and destination path used for kernel updates here:
 +
  
 
[[File:FOG 1.3.0 Kernel Update FTP Settings.png]]
 
[[File:FOG 1.3.0 Kernel Update FTP Settings.png]]
  
The above steps only skim the surface of the FTP issue, for a more complete guide, please see: [[Troubleshoot FTP]]
+
 
 +
The above steps only skim the surface of the FTP issue, '''for a more complete guide''', please see: [[Troubleshoot FTP]]
  
 
= Manual update to latest kernel =
 
= Manual update to latest kernel =
  
For CentOS 7, Fedora 21+, and RHEL 7, you may manually update the kernel and/or the inits to the latest  by following the below steps.
+
For CentOS 7+, Fedora 19+, RHEL 7+, Debian8+, and Ubuntu14+ you may manually update the kernel and/or the inits to the latest  by following the below steps.
  
 
You may copy/paste the entire script to backup all kernels/inits and download all new ones.
 
You may copy/paste the entire script to backup all kernels/inits and download all new ones.
  
 
<pre>
 
<pre>
#make a directory to put old kernels & inits into.
+
#Delete previous backed up kernels & inits.
 +
rm -rf /var/www/html/fog/service/ipxe/old
 +
 
 +
​#Make a directory to put old kernels & inits into.
 
mkdir /var/www/html/fog/service/ipxe/old
 
mkdir /var/www/html/fog/service/ipxe/old
  
#Move old kernels, get new ones.
+
#Move old inits, get new ones.
 
mv /var/www/html/fog/service/ipxe/init.xz /var/www/html/fog/service/ipxe/old
 
mv /var/www/html/fog/service/ipxe/init.xz /var/www/html/fog/service/ipxe/old
 
wget https://fogproject.org/inits/init.xz -O /var/www/html/fog/service/ipxe/init.xz
 
wget https://fogproject.org/inits/init.xz -O /var/www/html/fog/service/ipxe/init.xz
Line 51: Line 65:
 
wget https://fogproject.org/inits/init_32.xz -O /var/www/html/fog/service/ipxe/init_32.xz
 
wget https://fogproject.org/inits/init_32.xz -O /var/www/html/fog/service/ipxe/init_32.xz
  
#Move old inits, get new ones.
+
#Move old kernels, get new ones.
 
mv /var/www/html/fog/service/ipxe/bzImage /var/www/html/fog/service/ipxe/old
 
mv /var/www/html/fog/service/ipxe/bzImage /var/www/html/fog/service/ipxe/old
 
wget https://fogproject.org/kernels/bzImage -O /var/www/html/fog/service/ipxe/bzImage
 
wget https://fogproject.org/kernels/bzImage -O /var/www/html/fog/service/ipxe/bzImage
Line 57: Line 71:
 
wget https://fogproject.org/kernels/bzImage32 -O /var/www/html/fog/service/ipxe/bzImage32
 
wget https://fogproject.org/kernels/bzImage32 -O /var/www/html/fog/service/ipxe/bzImage32
  
#Reset permissions.
+
#Reset Ownership:
 +
#Fedora, CentOS, RHEL:
 
chown -R fog:apache /var/www/html/fog/service/ipxe
 
chown -R fog:apache /var/www/html/fog/service/ipxe
 +
#Ubuntu, Debian:
 +
chown -R fog:www-data /var/www/html/fog/service/ipxe
 +
 +
#Set permissions:
 
chmod -R 775 /var/www/html/fog/service/ipxe
 
chmod -R 775 /var/www/html/fog/service/ipxe
  
Line 65: Line 84:
 
</pre>
 
</pre>
  
Steps for older Ubuntu and older Debian would be simiar, but the destination would be /var/www instead of /var/www/html. For owner:group permissions, on Ubuntu and Debian they would be fog:www-data instead of fog:apache
+
Steps for older Ubuntu and older Debian would be simiar, but the destination would be /var/www instead of /var/www/html.

Latest revision as of 16:50, 7 February 2018

Kernel Update feature

When running FOG 1.3.0 (In development as of Feb 2016), you may change what kernels are available to you via the Kernel Update feature.

You may want to do this for a special or unique machine, or all machines, depending upon your needs. The feature is located here:

Web interface -> FOG Configuration -> Kernel Update

For 32 bit systems, choose a kernel that is x86 only, for 64 bit systems, choose one that is x86_x64 bit.

FOG 1.3.0 Kernel Update Feature.png

You may name your kernel uniquely to not overwrite the default kernel if you choose.

FOG 1.3.0 kernel update name.png


If you've named your new kernel bzImage or bzImage32 then all 64 or all 32 bit clients will automatically begin using this new kernel.

If you've named your kernel something unique (which is suggested), you may assign the kernel to a particular host.

You may do this by setting the "Host Kernel" of a host to the file name you have chosen, as pictured below.


FOG 1.3.0 Unique Kernel name graphic.png

Kernel Update Failure

The new kernel is put in place using FTP, and the credentials used for this are in the TFTP Server area, located here:

Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server

If you experience the following error or a similar error, this is a FTP related issue and could be credentials, permissions, ownership, firewall, path, or SELinux related. Usually, it is credentials or path related.

Kernel Update Failure.png


You can set the FTP username and password and destination path used for kernel updates here:


FOG 1.3.0 Kernel Update FTP Settings.png


The above steps only skim the surface of the FTP issue, for a more complete guide, please see: Troubleshoot FTP

Manual update to latest kernel

For CentOS 7+, Fedora 19+, RHEL 7+, Debian8+, and Ubuntu14+ you may manually update the kernel and/or the inits to the latest by following the below steps.

You may copy/paste the entire script to backup all kernels/inits and download all new ones.

#Delete previous backed up kernels & inits.
rm -rf /var/www/html/fog/service/ipxe/old

​#Make a directory to put old kernels & inits into.
mkdir /var/www/html/fog/service/ipxe/old

​#Move old inits, get new ones.
mv /var/www/html/fog/service/ipxe/init.xz /var/www/html/fog/service/ipxe/old
wget https://fogproject.org/inits/init.xz -O /var/www/html/fog/service/ipxe/init.xz
mv /var/www/html/fog/service/ipxe/init_32.xz /var/www/html/fog/service/ipxe/old
wget https://fogproject.org/inits/init_32.xz -O /var/www/html/fog/service/ipxe/init_32.xz

​#Move old kernels, get new ones.
mv /var/www/html/fog/service/ipxe/bzImage /var/www/html/fog/service/ipxe/old
wget https://fogproject.org/kernels/bzImage -O /var/www/html/fog/service/ipxe/bzImage
mv /var/www/html/fog/service/ipxe/bzImage32 /var/www/html/fog/service/ipxe/old
wget https://fogproject.org/kernels/bzImage32 -O /var/www/html/fog/service/ipxe/bzImage32

#Reset Ownership:
#Fedora, CentOS, RHEL:
chown -R fog:apache /var/www/html/fog/service/ipxe
#Ubuntu, Debian:
chown -R fog:www-data /var/www/html/fog/service/ipxe

#Set permissions:
chmod -R 775 /var/www/html/fog/service/ipxe

#Script complete.
echo DONE!

Steps for older Ubuntu and older Debian would be simiar, but the destination would be /var/www instead of /var/www/html.