You are more than likely using undionly.kpxe, but if windows is handling your dhcp it would be option 67. You can also rename the old file and symlink the new one.
cd /tftpboot
mv undionly.kpxe undionly.kpxe.REAL
ln -s undionly.kkpxe undionly.kpxe
You are more than likely using undionly.kpxe, but if windows is handling your dhcp it would be option 67. You can also rename the old file and symlink the new one.
cd /tftpboot
mv undionly.kpxe undionly.kpxe.REAL
ln -s undionly.kkpxe undionly.kpxe
What version of Fog and what pxe file are you booting?
Booting off of undionly.kkpxe may resolve your issue.
Did you by chance transfer the file from a windows machine? If so you may need to convert line endings.
dos2unix /images/postdownloadscripts/driverinstall.sh
What version of FOG are you using? It should be in the cloud in the top left.
Are your machines part of a domain? Try adding the domain to the end.
My domain is test.local in order to ping Laptop-2 I have to run:
root@Fog:~# ping Laptop-2.test.local
PING Laptop-2.test.local (10.1.111.254) 56(84) bytes of data.
64 bytes from 10.1.111.254: icmp_req=1 ttl=127 time=138 ms
64 bytes from 10.1.111.254: icmp_req=2 ttl=127 time=180 ms
64 bytes from 10.1.111.254: icmp_req=3 ttl=127 time=1.54 ms
I have built the ipxe files with debug options turned on. This may give more insight into what is going on.
Yep that cleared the errors and now a snapin task is created, but the snapin column is empty.
Been having a strange issue recently. Anytime I create a quick image task the snaping don’t automatically get queued up, but if I create a task through the web page everything works just fine.
Here are what looks to be the culprit lines in the error.log
[Wed Jul 08 08:33:48 2015] [error] [client 10.1.104.50] PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/fog/lib/fog/BootMenu.class.php on line 50
[Wed Jul 08 08:33:48 2015] [error] [client 10.1.104.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 481
[Wed Jul 08 08:33:48 2015] [error] [client 10.1.104.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 726
[Wed Jul 08 08:33:48 2015] [error] [client 10.1.104.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 728```
Is the document root in /etc/apache2/sites-available/001-fog still set to /var/www ?
The image must be decompressed first as well.
This is ran from within the image folder.
cat d1p2.img | pigz -d -c | partclone.restore -O /dev/sda2 -N -f -i -C
@ArchFan
Under: /images/postdownloadscripts/
Name: driverinstall.sh
Just make sure you call the script from fog.postdownload
${postdownloadpath}/driverinstall.sh
PHP Warning: require_once(../commons/base.inc.php): failed to open stream: No such file or directory in /var/www/fog/service/servicemodule-active.php on line 2
Do you have base.inc.php under /var/www/fog/commons? What are the permissions?
ls -lah /var/www/fog/commons/
Also, check /var/www/fog/lib/fog/Config.class.php has the correct username/password for mysql
cat /var/www/fog/lib/fog/Config.class.php
And check the socket php and mysql are using, they should be the same.
mysql -u root -p
SHOW GLOBAL VARIABLES where Variable_name="socket";
EXIT;
php -i | grep -F .default_socket
What do you get when you go to: http://10.24.28.17/fog/service/ipxe/boot.php
Few questions:
What OS and version of fog is this on?
Do you have any errors in your apache log?
Do you have the location plugin turned on? https://forums.fogproject.org/topic/3363/computers-keeping-gett-ipxe-could-not-boot-error
It seems like it would be easier to just restore the image to a client, but I had to find a way.
All of this is done on Debian 7 and like Wayne I would not advise you doing this on your production server.
Breakdown:
Install ntfs-3g, partclone, and pigz
Decompress image and restore to a file
Mount image
apt-get install ntfs-3g partclone pigz
cd /images/SecurityE420s/
cat d1p2.img | pigz -d -c | partclone.restore -C -s - -O d1p3.img
mount -t ntfs-3g d1p3.img /mnt
ls -lah /mnt
total 6.9G
drwxrwxrwx 1 root root 4.0K Aug 27 2014 .
drwxr-xr-x 28 root root 4.0K Jun 18 17:15 ..
lrwxrwxrwx 2 root root 60 Jul 14 2009 Documents and Settings -> /mnt/Users
-rwxrwxrwx 1 root root 9.5K Aug 28 2014 fog.log
-rwxrwxrwx 1 root root 3.0G Aug 28 2014 hiberfil.sys
drwxrwxrwx 1 root root 0 Aug 27 2014 Intel
drwxrwxrwx 1 root root 0 Jun 11 2014 MSOCache
-rwxrwxrwx 1 root root 4.0G Aug 28 2014 pagefile.sys
drwxrwxrwx 1 root root 0 Jul 13 2009 PerfLogs
drwxrwxrwx 1 root root 4.0K Aug 28 2014 ProgramData
drwxrwxrwx 1 root root 8.0K Aug 27 2014 Program Files
drwxrwxrwx 1 root root 8.0K Aug 27 2014 Program Files (x86)
-rwxrwxrwx 1 root root 3.1K Aug 28 2014 QcOSD.txt
drwxrwxrwx 1 root root 0 Aug 26 2014 $Recycle.Bin
drwxrwxrwx 1 root root 4.0K Jun 11 2014 System Volume Information
drwxrwxrwx 1 root root 4.0K Nov 20 2010 Users
drwxrwxrwx 1 root root 40K Aug 28 2014 Windows
Not familiar with Nortel’s configuration, but there is this post:
http://blog.michaelfmcnamara.com/2009/02/wake-on-lan-and-directed-broadcast/
You can install from svn directly, no need to install 1.2.0 first.
I had the same issues with one particular model that is now working fine, so this may be solved by upgrading to trunk.
You can also try upgrading your undionly.kpxe file to the trunk version.
cd /tftpboot/
mv undionly.kpxe undionly.kpxe.bak
wget https://svn.code.sf.net/p/freeghost/code/trunk/packages/tftp/undionly.kpxe