• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. cml
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 120
    • Best 43
    • Controversial 0
    • Groups 2

    Posts made by cml

    • RE: Another update another lost access storage.

      This should be fixed as of latest svn.

      posted in FOG Problems
      cmlC
      cml
    • RE: Host PC stuck in full wipe mode upon startup

      Could you try this in mysql?

      SELECT taskID,taskName FROM tasks WHERE taskStateID=1;
      
      posted in FOG Problems
      cmlC
      cml
    • 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.

      posted in FOG Problems
      cmlC
      cml
    • 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?

      posted in FOG Problems
      cmlC
      cml
    • RE: Add Image page not loading

      @cmcleod
      Check under storage management and make sure you have at least one node as master.

      posted in Bug Reports
      cmlC
      cml
    • 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.

      posted in FOG Problems
      cmlC
      cml
    • 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

      posted in Bug Reports
      cmlC
      cml
    • RE: Wake on LAN over different VLANS

      @szecca1

      In wireshark first select your connection and then click start
      upload-e49875ba-fccb-4db4-bd77-9fbaf92d62fe

      Once started type wol into the filter box and click on apply.

      This is what it looks like when I send a wol:
      upload-9b5bc60e-7570-4aff-83dc-0481f839b087

      posted in FOG Problems
      cmlC
      cml
    • 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
      
      
      posted in FOG Problems
      cmlC
      cml
    • 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

      posted in FOG Problems
      cmlC
      cml
    • 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.

      tftpboot.tar.gz

      posted in FOG Problems
      cmlC
      cml
    • 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.

      posted in FOG Problems
      cmlC
      cml
    • 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";

      posted in FOG Problems
      cmlC
      cml
    • 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

      posted in Tutorials
      cmlC
      cml
    • 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
      
      posted in Feature Request
      cmlC
      cml
    • RE: unable to locate image store

      @Wayne-Workman

      It looks like portmap switched to RPC for Ubuntu.

      RPC status:
      sudo service rpcbind status

      Restart RPC:
      sudo service rpcbind restart

      Enable RPC on boot:
      update-rc.d rpcbind defaults

      posted in General
      cmlC
      cml
    • 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 /images

      Copy 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=1

      Update the partition info:
      partprobe

      Use 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 -i

      Use ntfsresize to expand partition:
      ntfsresize /dev/sda1 -f -b -P
      ntfsresize /dev/sda2 -f -b -P

      posted in FOG Problems
      cmlC
      cml
    • Target partition size is smaller than source

      Sorry, another one of those.

      Server OS-Fedora 22
      FOG Rev - 3488
      Client OS - Windows 7

      FOGtroubleshoot.log

      Issue 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?

      posted in FOG Problems
      cmlC
      cml
    • 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

      posted in FOG Problems
      cmlC
      cml
    • RE: Let's make scripts!

      [troubleshoot.zip](uploading 100%)

      I added a function to add the revision number.

      posted in FOG Problems
      cmlC
      cml
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 5 / 6