My Photo
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$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 ./

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");

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.
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 to etc.

sudo apt-get install isc-dhcp-server

sudo nano /etc/default/isc-dhcp-server

sudo nano /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask;
option broadcast-address;
option routers;
option domain-name-servers,;
option domain-name "mydomain.example";
subnet netmask {
filename "undionly.kkpxe";

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

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


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 ( /2d0c613b)
Could not boot: No such file or directory ( /2d0c613b)
Could not boot: No such file or directory ( /2d0c613b)

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
The downloaded kernel is saved at /tmp/ copy it to /var/www/fog/service/ipxe/

Then try to image one of the machines.