My Photo
Name:
Location: Cupertino, California, United States

I'm orignal from Taiwan.

Wednesday, April 05, 2017

Upgrade fog from version 1.2.0 to 1.3.5

Press Ctrl-Alt-T to open Terminal
Ubuntu$cd Desktop
Ubuntu~/Desktop$wget https://sourceforge.net/projects/freeghost/files/FOG/fog_1.3.5/fog_1.3.5.tar.gz
Ubuntu~/Desktop$cd fog_1.3.5
Ubuntu~/Desktop/fog_1.3.5$tar -zxvf fog_1.3.5.tar.gz
Ubuntu~/Desktop/fog_1.3.5$cd bin
Ubuntu~/Desktop/fog_1.3.5/bin$sudo ./installfog.sh

http://localhost_ip/fog/management/
Database is invalid

Ubuntu~/Desktop/fog_1.3.5/bin$cd /var/www/html/fog/lib/fog/
Ubuntu~/var/www/html/fog/lib/fog$sudo nano config.class.php

input database password for the define ('DATABASE_password', "passsword4DB_here");

http://localhost_ip/fog/management/
Click on "update" button on the fog portal.
******************
Upgrade is completed.
******************
Error#1: PXE-E51: No DHCP or proxyDHCP offers were received after upgrade fog server.
Solution#1:
The output of your /var/log/syslog, after you attempt to start the dchp server
Look like upgrade process removed modified the DHCP server .conf on Ubuntu!!!
Have to update the /etc/dhcp/dhcpd.conf with correct IP range from subnet 0.0.0.0 to 192.168.1.0 etc.
http://askubuntu.com/questions/140126/how-do-i-install-and-configure-a-dhcp-server

sudo apt-get install isc-dhcp-server

sudo nano /etc/default/isc-dhcp-server
INTERFACES="eth1"

sudo nano /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.example";
next-server 192.168.1.5;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
filename "undionly.kkpxe";
} 

sudo service isc-dhcp-server restart
sudo netstat -uap

To check "eth1" INTERFACE:
sudo nano /etc/network/interfaces

Solution: https://community.spiceworks.com/topic/310393-need-some-help-with-fog

Sounds like the dhcp server isn't running properly or the tftp server.

Restart TFTP
sudo stop tftpd-hpa
sudo start tftpd-hpa

Restart DHCP
sudo /etc/init.d/isc-dhcp-server stop
sudo /etc/init.d/isc-dhcp-server stop

"Fn"-P to pause boot up screen
Error#2: /bzImage412... No such file or directory (http://ipxe.org /2d0c613b)
Could not boot: No such file or directory (http://ipxe.org /2d0c613b)
Could not boot: No such file or directory (http://ipxe.org /2d0c613b)

Solution#2:
Download the bzImages and copy it to /var/www/fog/service/ipxe/

Error#3: FATAL: kernel too old
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
Solution#3: kernel update fixs the issue
URL: https://wiki.fogproject.org/wiki/index.php?title=Kernel_Update
The downloaded kernel is saved at /tmp/ copy it to /var/www/fog/service/ipxe/

Then try to image one of the machines.