• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. mmw_canada
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    mmw_canada

    @mmw_canada

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mmw_canada Unfollow Follow

    Latest posts made by mmw_canada

    • Modifiying the Init Image - Help adding GPU info to Other data field.

      Hello,
      Great project by the way. Through trial and error I have managed to update fog.auto.reg to include some code to pull the GPU info for inventory, however it’s incomplete, I could use some guidance:

      Question:
      Any suggestions on how to build and include pciutils (ie. lspci) in the x64 image(x32 in my case doesn’t matter, who cares about GPUs in x32 machines πŸ™‚ ) ? Has this been suggested or answered before?

      References(outdated and conflicting based on version):
      https://wiki.fogproject.org/wiki/index.php/Create_Custom_Fog_Registration_menu
      https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image
      (mods if you are interested I can submit some suggested changes to the wiki, PM me if you are)

      cd ~
      cp /var/www/html/fog/service/ipxe/init.xz .
      xz -d init.xz
      mkdir -p initmountdir
      mount -o loop init initmountdir
      cd ~/initmountdir/bin
      pico fog.auto.reg (YOU COULD MAKE A COPY AND ADD ANOTHER MENU ENTRY AS SUGGESTED IN THE LINK ABOVE, DANGER MRS. ROBINSON)

      Add the following lines(I put them after the last ####=β€œβ€ statement perhaps not the best place):
      other1=β€œβ€
      other1=$(GPU=$(lspci | grep VGA | cut -d β€œ:” -f3);RAM=$(cardid=$(lspci | grep VGA |cut -d " " -f1);lspci -v -s $cardid | grep " prefetchable"| cut -d β€œ=” -f2);echo $GPU $RAM | base64)
      (https://askubuntu.com/questions/5417/how-to-get-the-gpu-info)

      Save, exit.

      cd ~
      umount initmountdir
      xz -C crc32 init
      cp init.xz /var/www/html/fog/service/ipxe/

      Architecture note:
      use init_32.xz instead for 32-bit x86

      Notes regarding the wiki suggestions:
      gunzip and gzip will not work with these instructions
      I believe the /tftpboot/fog/images/ path is not used and should be updated to be /var/www/html/fog/service/ipxe/ (as per our example copied to and mounted in ~/ under the root user)

      Thanks so much for this project!

      posted in Tutorials
      mmw_canadaM
      mmw_canada