This should be fixed as of latest svn.

Posts made by cml
-
RE: Another update another lost access storage.
-
RE: Host PC stuck in full wipe mode upon startup
Could you try this in mysql?
SELECT taskID,taskName FROM tasks WHERE taskStateID=1;
-
RE: Host PC stuck in full wipe mode upon startup
What version of fog are you running?
You could try checking in the MySQL table tasks.
mysql -u root -p USE fog; SELECT * FROM tasks ORDER BY id DESC LIMIT 5;
That may point you in the right direction, but I will do some testing one I get back to a computer to make sure.
-
RE: Wake on LAN over different VLANS
Your switch is not forwarding the packets across subnets. Do you know what manufacture/model your L3 device is?
-
RE: Add Image page not loading
@cmcleod
Check under storage management and make sure you have at least one node as master. -
RE: Wake on LAN over different VLANS
The top one is on the same subnet as your fog server correct?
Try running wireshark on the bottom machine (i assume it is on the same subnet as your target), but send the wol from your fog server.
-
RE: Add Image page not loading
Is there anything in the apache error log?
Debian/Ubuntu: /var/log/apache2/error.log
Red Hat/Centos/Fedora: /var/log/httpd/error_log -
RE: Wake on LAN over different VLANS
In wireshark first select your connection and then click start
Once started type wol into the filter box and click on apply.
This is what it looks like when I send a wol:
-
RE: Wake on LAN over different VLANS
One thing you can try is sending the packet from the command line with wakeonlan
wakeonlan 28:D2:44:0C:D9:9B Sending magic packet to 255.255.255.255:9 with 28:D2:44:0C:D9:9B
Do you have wireshark? If so set the filter to wol and see if you get a packet, if not your switches may be blocking it.
Here were the relevent Cisco commands I had to set on our 4500:
***fogserver vlan*** interface Vlan2 ip helper-address 10.2.255.255 ! ***high network vlan*** interface Vlan1 ip helper-address 10.1.0.119 ip directed-broadcast 101 ! ip forward-protocol udp echo ip forward-protocol udp discard access-list 101 permit udp host 10.1.0.119 any eq echo access-list 101 permit udp host 10.1.0.119 any eq discard
-
RE: FOG not PXE boot anymore
Here is the ipxe files built with debugging, it also exits to shell instead of rebooting.
tftpboot.tar.gz -
RE: Fog on existing network, clients wont boot.
Found this thread on the iPXE forums.
No idea if this will help but all files were built with debugging enabled and latest commit as of today. It will also drop you into the shell on dhcp failure.
-
RE: image upload error
Better yet forget all of that mysql nonsense. You can add all of your hosts to a group and change Group Kernel to nothing, or whatever you may want there.
-
RE: image upload error
You could do it through mysql.
This should only nullify the cells that contain fog/kernel/bzImage, but you can remove everything after the WHERE and have it set all hosts.
UPDATE hosts SET hostKernel = NULL WHERE hostKernel="fog/kernel/bzImage";
-
Mobile FOG Laptop
I had the need to be able to take a laptop around to different clients and use it over their DHCP network only modifying 66, 67, and creating a static lease thus this script was born.
Note: I have only tested this on SVN 3488 running on Fedora 22.
Simple script
#!/bin/bash config="/var/www/html/fog/lib/fog/Config.class.php"; newip=`ifconfig enp0s25 |grep 'inet ' | awk '{print $2}'`; oldip=`cat $config | grep TFTP_HOST | cut -d"\"" -f2`; echo $oldip echo $newip if [ "$newip" = "" ] then echo "ip is blank" exit 1 fi sed -i -- "s/$oldip/$newip/g" $config sed -i -- "s/$oldip/$newip/g" /etc/httpd/conf.d/fog.conf #not sure if this line is needed. sed -i -- "s/$oldip/$newip/g" /tftpboot/default.ipxe mysql -u root << EOF use fog; update globalSettings set settingValue='$newip' where settingValue='$oldip'; EOF systemctl restart FOG*
Change the config= line to point to the fog config, enp0s25 to your lan interface, and /etc/httpd/conf.d/fog.conf to your fog apache config file.
Save as fog-ip.sh, or whatever you want to name it, and make it executable with
chmod a+x fog-ip.sh
-
RE: Compression change
No idea if this is the best way, but it seems to be working. I’ll let y’all know when it finishes compressing.
for f in *.img; do mv "$f" "${f%.img}-bak.img"; done for f in *bak.img; do pigz -d -c $f | pigz -9 > "${f%-bak.img}.img"; done
-
RE: unable to locate image store
It looks like portmap switched to RPC for Ubuntu.
RPC status:
sudo service rpcbind statusRestart RPC:
sudo service rpcbind restartEnable RPC on boot:
update-rc.d rpcbind defaults -
RE: Troubleshoot Upload / Download
I just had to do this last night, but if anything is off/could be done better let me know.
This is more of a Windows 7/Partclone update of https://wiki.fogproject.org/wiki/index.php/Troubleshooting_an_image_push_to_a_client
==================================================================
This process will wipe out whatever is currently present on the client computer.
This tutorial was created using SVN 3501 pushing Windows 7 and assumes that your primary disk is /dev/sda.In the management portal, start a debug task for the client computer in question. Allow the client to boot and at the bash prompt.
(Everything below is done within the bash prompt on the client’s console.)
From your client, mount the remote /images folder on your FOG server onto a local /images folder using nfs:
mkdir /images (type this on the client’s keyboard, as explained above)
mount -o nolock x.x.x.x:/images /images (where x.x.x.x is the server ip)
you may try also mount -t nfs -o nolock x.x.x.x:/images /imagesCopy the master boot record to the first 512 bytes of the local disk.
cd /images/$ImageFolder ($ImageFolder is the folder of the image you want to push)
dd if=d1.mbr of=/dev/sda bs=512 count=1Update the partition info:
partprobeUse partclone to copy image from FOG server to local partition:
cat d1p1.img | pigz -d -c | partclone.restore -O /dev/sda1 -N -f -i
cat d1p2.img | pigz -d -c | partclone.restore -O /dev/sda2 -N -f -iUse ntfsresize to expand partition:
ntfsresize /dev/sda1 -f -b -P
ntfsresize /dev/sda2 -f -b -P -
Target partition size is smaller than source
Sorry, another one of those.
Server OS-Fedora 22
FOG Rev - 3488
Client OS - Windows 7Issue appeared while trying to download from the same pc the image was captured from.
Created a debug download task:
mkdir /images mount -o nolock 192.168.0.113:/images /images cd /images/TLCOPT3020 dd if=d1.mbr of=/dev/sda bs=512 count=1 Partitions: /dev/sda1 : start 63, size= 80324, type=de /dev/sda2 : start 81920, size= 1319507, type=7, bootable /dev/sda3 : start 1617920, size= 55685820, type=7 cat d1p1.img | pigz -d -c | partclone.restore -o /dev/sda1 -N -f 1 cat d1p2.img | pigz -d -c | partclone.restore -o /dev/sda2 -N -f 1 cat d1p3.img | pigz -d -c | partclone.restore -o /dev/sda3 -N -f 1
This tries to boot windows, but crashes and reboots so fast I can’t figure out what is happening.
Changed changed bootdisk to /dev/sda3 and the same thing happens.
I am lost at this point and it is looking like I will have to build from scratch.
Any ideas or suggestions?
-
RE: Let's make scripts!
Hmm, I thought I did. I will re-upload when I get back to my laptop.
—EDIT—
Latest is attached.
troubleshoot.zip -
RE: Let's make scripts!
[troubleshoot.zip](uploading 100%)
I added a function to add the revision number.