Difference between revisions of "Change FOG Server IP Address"

From FOG Project
Jump to: navigation, search
(FOG Settings)
(Change FOG server static IP address)
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Change FOG server static IP address =
 
= Change FOG server static IP address =
 +
 +
Related article: [[Migrate FOG]]
  
 
== FOG 1.3.0 ==
 
== FOG 1.3.0 ==
  
=== For static addresses ===
+
=== Procedural Steps ===
  
RHEL / Fedora 19+ / CentOS 7
+
* Follow appropriate steps for your Linux distribution to change the OS's IP address.
 +
* Update the <font color="red">ipaddress=</font> field (and other fields if necessary) inside the <font color="red">/opt/fog/.fogsettings</font> file.
 +
* Rerun the installer
 +
* Update the IP address for the storage node on the FOG system where you changed the IP address <font color="red">Web Interface -> Storage Management</font>
 +
* Update the IP address on a any master storage node that may reference this FOG server <font color="red">Web Interface -> Storage Management</font>
 +
* (For master server) Update the FOG_WEB_HOST value <font color="red">Web Interface -> FOG Configuration -> FOG Settings -> Web Server -> FOG_WEB_HOST</font>
 +
* (For master server) Update the FOG_TFTP_HOST value <font color="red">Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server -> FOG_TFTP_HOST</font>
  
 
+
=== FOG Settings File ===
 
 
=== FOG Settings ===
 
  
 
Update the /opt/fog/.fogsettings file:
 
Update the /opt/fog/.fogsettings file:
Line 17: Line 23:
 
Instructions on using Vi: [[Vi]]
 
Instructions on using Vi: [[Vi]]
  
There are several settings in here that may need updated depending on if you're running DHCP on the fog server or not. But the one setitng that must be updated is the ipaddress=x.x.x.x setting. Update this with the correct IP. Save your changes and quit.
+
There are several settings in here that may need updated depending on if you're running DHCP on the fog server or not. But the one setitng that must be updated is the ipaddress=x.x.x.x setting. Update this with the correct IP. Save your changes and quit, and then re-run the fog installer.
 
 
 
 
Re-run the installer.
 
Update your storage node's IP settings.
 
  
Update the web address here: <font color="red">FOG Configuration->FOG Settings->Web Server->FOG_WEB_HOST</font>
+
Additional information about the <font color="red">/opt/fog/.fogsettings</font> file can be found here: [[.fogsettings]]
  
 
== Older instructions ==
 
== Older instructions ==
Line 34: Line 36:
  
 
===Change FOG server settings===
 
===Change FOG server settings===
*Cancel any pending upload/deploy tasks ''Tasks > Active Tasks'' (Previous IP settings are embedded in task info)
+
*Cancel any pending capture/deploy tasks ''Tasks > Active Tasks'' (Previous IP settings are embedded in task info)
 
*Log in to ''FOG WebUI > about > FOG Settings''
 
*Log in to ''FOG WebUI > about > FOG Settings''
 
**General Setting: '''FOG_WOL_HOST'''
 
**General Setting: '''FOG_WOL_HOST'''

Revision as of 13:32, 25 January 2017

Change FOG server static IP address

Related article: Migrate FOG

FOG 1.3.0

Procedural Steps

  • Follow appropriate steps for your Linux distribution to change the OS's IP address.
  • Update the ipaddress= field (and other fields if necessary) inside the /opt/fog/.fogsettings file.
  • Rerun the installer
  • Update the IP address for the storage node on the FOG system where you changed the IP address Web Interface -> Storage Management
  • Update the IP address on a any master storage node that may reference this FOG server Web Interface -> Storage Management
  • (For master server) Update the FOG_WEB_HOST value Web Interface -> FOG Configuration -> FOG Settings -> Web Server -> FOG_WEB_HOST
  • (For master server) Update the FOG_TFTP_HOST value Web Interface -> FOG Configuration -> FOG Settings -> TFTP Server -> FOG_TFTP_HOST

FOG Settings File

Update the /opt/fog/.fogsettings file:

vi /opt/fog/.fogsettings

Instructions on using Vi: Vi

There are several settings in here that may need updated depending on if you're running DHCP on the fog server or not. But the one setitng that must be updated is the ipaddress=x.x.x.x setting. Update this with the correct IP. Save your changes and quit, and then re-run the fog installer.

Additional information about the /opt/fog/.fogsettings file can be found here: .fogsettings

Older instructions

FOG server setup

  • Fedora 10
  • SVN of version 0.27
  • IP address:192.168.1.200 (using network manager)
  • Change computer IP address from 192.168.1.200 to 192.168.1.50

Change FOG server settings

  • Cancel any pending capture/deploy tasks Tasks > Active Tasks (Previous IP settings are embedded in task info)
  • Log in to FOG WebUI > about > FOG Settings
    • General Setting: FOG_WOL_HOST
    • TFTP Server: FOG_TFTP_HOST, FOG_PXE_IMAGE_DNSADDRESS
    • WEB Server: FOG_WEB_HOST
  • FOG WebUI > about > PXE Boot Menu > Save PXE Menu
  • FOG WebUI > Storage Management > All Storage Nodes
    • DefaultMember: IP Address
  • DHCP server configuration file (/etc/dhcpd.conf) restart service after changes are made.
    • Next-server 192.168.1.50
  • PXE Menu changes ( /tftpboot/pxelinux.cfg/default)
    • Replace any previous IP addresses with new IP address
    • This also applies if your DNS server has changed. You would replace all previous DNS IP addresses with new DNS server IP address.
    • Example (no change to DNS):
      • Old line in /tftpboot/pxelinux.cfg/default:
        • append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=quickimage keymap= web=192.168.1.200/fog/ loglevel=4 consoleblank=0
      • New line in /tftpboot/pxelinux.cfg/default:
        • append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=192.168.1.1 mode=quickimage keymap= web=192.168.1.50/fog/ loglevel=4 consoleblank=0