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

    Best posts made by cml

    • RE: Peek into .img files

      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
      
      
      
      posted in General
      cmlC
      cml
    • RE: Clear snapin history? Automatically?

      The only way I could find to clear it was through the database.

      You could use the event scheduler to automatically clear the table.

      Here’s what I came up with to remove completed tasks older than a month.

      USE fog;
      CREATE EVENT clear_snapinTasks
      ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 MONTH
      DO
      DELETE FROM fog.snapinTasks WHERE stCompleteDate < DATE_SUB(NOW(), INTERVAL 1 MONTH);
      
      posted in FOG Problems
      cmlC
      cml
    • RE: fog with an existing pxe server

      @plegrand

      If you add this to your PXE configuration it should work.

      Change x.x.x.x to the FOG IP Address.

      MENU TITLE Fog Reimage Menu
      MENU COLOR TITLE        1;36;44    #ffffffff #00000000 std
      LABEL iPXE Boot
      MENU DEFAULT
      KERNEL ipxe.krn
      APPEND dhcp && chain http://x.x.x.x/fog/service/ipxe/boot.php?mac=${net0/mac}
      PROMPT 0
      TIMEOUT 1
      

      Taken from: https://wiki.fogproject.org/wiki/index.php/Chainloading_PXE_to_iPXE_using_pxelinux.0

      posted in General
      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: Bootable USB stick v1.2.0

      The ISO in this thread should still work: https://forums.fogproject.org/topic/4782/help-usb-boot-fog/27

      You can write it to your USB drive with dd if=ipxe.iso of=/dev/sdb bs=4M Just replace sdb with your drive.

      posted in General
      cmlC
      cml
    • RE: Installing FOG on Debian

      @maveriick

      The package is subversion on Debian.

      sudo apt-get update && sudo apt-get install subversion

      posted in FOG Problems
      cmlC
      cml
    • RE: Dell Lattiude E6540

      Do you have other E6540s that work?

      I have had this issue with some Lenovos in the past. Updating the BIOS and resetting to defaults usually fixes it, but when it doesn’t we’ve had to replace the NIC.

      posted in Hardware Compatibility
      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: 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: Two "new fog client" settings?

      What about something like this?

      • Showing I have duplicate values.
      mysql> select * from globalSettings where settingKey="FOG_TFTP_PXE_KERNEL";
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      | settingID | settingKey          | settingDesc                                                                        | settingValue | settingCategory |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      |         6 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      |       147 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      2 rows in set (0.00 sec)
      
      
      • Dropping duplicates.
      mysql> ALTER IGNORE TABLE globalSettings ADD UNIQUE INDEX (settingKey);
      Query OK, 133 rows affected (0.01 sec)
      Records: 133  Duplicates: 2  Warnings: 0
      
      mysql> ALTER TABLE globalSettings DROP INDEX SettingKey;
      Query OK, 131 rows affected (0.00 sec)
      Records: 131  Duplicates: 0  Warnings: 0
      
      • Showing the duplicate is now gone.
      mysql> select * from globalSettings where settingKey="FOG_TFTP_PXE_KERNEL";
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      | settingID | settingKey          | settingDesc                                                                        | settingValue | settingCategory |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      |         6 | FOG_TFTP_PXE_KERNEL | Location of kernel file on the PXE server, this should point to the kernel itself. | bzImage      | TFTP Server     |
      +-----------+---------------------+------------------------------------------------------------------------------------+--------------+-----------------+
      1 row in set (0.00 sec)
      
      posted in Bug Reports
      cmlC
      cml
    • RE: Help!!! Usb boot Fog

      ipxe.iso

      I got it working with this iso.

      ipxescript:

      #!ipxe
      echo -n Please enter tftp server: && read next-server && goto netboot
      :netstart
      dhcp && goto netboot || goto netstart
      :netboot
      ping -c 1 ${next-server} || goto netstart
      chain tftp://${next-server}/default.ipxe || shell
      
      posted in General
      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: mount partition image and edit it

      Give this a try: https://forums.fogproject.org/topic/5264/peek-into-img-files/4

      @cml said:

      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 d1p2_extracted.img
      mount -t ntfs-3g d1p2_extracted.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
      
      
      
      posted in General
      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: mount partition image and edit it

      @Sebastian-Roth

      Good catch, the post has been modified.

      posted in General
      cmlC
      cml
    • RE: Lenovo 11e - Doesn't pass Menu screen on iPXE

      I have built the ipxe files with debug options turned on. This may give more insight into what is going on.

      tftpboot.tar.gz

      posted in FOG Problems
      cmlC
      cml
    • RE: default.ipxe timeout - maybe a dhcp problem? Wireshark logs inside.

      No idea if this helps, but this undionly.kpxe will point to 192.168.1.20. If this works it would seem that your default gateway is being set as next-server.
      undionly.kpxe

      posted in FOG Problems
      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: 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: /Default.ipxe connection timeout on Dell only

      I have a similar issue with one model of Dell laptops and solved it using this undionly.kpxe

      Debug is enabled on dhcp and tftp and the script drops to a shell if it fails to tftp, for further troubleshooting.

      The only modification is with the ipxescript:

      #!ipxe
      :netstart
      dhcp && goto netboot || goto netstart
      :netboot
      ping -c 1 ${next-server} || goto netstart
      chain tftp://${next-server}/default.ipxe || shell
      
      

      And here are all to pxe files created with that script. pxe-files.tar.gz

      –EDIT–

      Forgot to include my issue that this solves.

      We have Dell Inspiron 11z laptops that fail to get a DHCP address the first time iPXE issues the command. If the DHCP command is sent right after if succeeds and everything works normally.

      posted in FOG Problems
      cmlC
      cml
    • 1 / 1