• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Greg Plamondon
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 76
    • Posts 409
    • Groups 2

    Posts

    Recent Best Controversial
    • Dell XPS 17

      I am having issues with the Dell XPS 17 not detecting a hard drive.
      I have tried the latest 5.10.19 64Bit kernel.
      Does anyone have any suggestions?

      posted in Hardware Compatibility
      Greg PlamondonG
      Greg Plamondon
    • RE: Copy ipxe.efi to uefi partition?

      @sebastian-roth Thanks!
      That worked for me. I would also note that this is Windows 10 1607 Enterprise LTSB.
      that could be why the partition is not partition 1?

      posted in Windows Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Copy ipxe.efi to uefi partition?

      @george1421 I followed the post you linked.

      In my case, it was partition 2.
      alt text

      I then assigned partition 2 drive letter b in disakpart. killed explorer and restarted explorer.

      select disk 0
      select part 2
      assign letter=b
      exit
      taskkill /im explorer.exe /f
      explorer.exe
      

      I then copied and replaced the bootx64.efi with the renamed ipxe.efi from the fogserver.
      Once the file was copied over I removed the drive letter and rebooted.
      I don’t see the menu while it’s booting. what am I supposed to see?

      posted in Windows Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Copy ipxe.efi to uefi partition?

      @george1421 Thanks!

      posted in Windows Problems
      Greg PlamondonG
      Greg Plamondon
    • Copy ipxe.efi to uefi partition?

      Re: Windows 10 change BIOS boot order after deploy

      @JJ-Fullmer, In the above topic you stated that you were able to copy the ipxe.efi to the machine’s uefi partition. How do you go about doing this automated? could elaborate on the process for me? I have VERY little experience with uefi.

      Thanks!

      posted in Windows Problems
      Greg PlamondonG
      Greg Plamondon
    • Conspy Install Script

      Re: Using Conspy to View remote PC imaging progress

      Here is the script I use to install conspy on the fogserver/storage nodes.

      yum install conspy -y
      echo -e '#(>)##### UnPacking Init.xz #####'
      cd /var/www/fog/service/ipxe/
      xz -d init.xz
      mkdir initmountdir
      
      echo -e '#(>)##### Mounting Init #####'
      
      mount -o loop init initmountdir
      cd /var/www/fog/service/ipxe/initmountdir
      rm -f root/.ssh/authorized_keys
      #### Install SSH Keys
      echo -e '#(>)##### Installing SSH Keys #####'
      
      needreload=0
      if [ ! -d root/.ssh ]; then
          echo -e '#(->)Creating SSH File'
      
          # Create the autorized keys and add the keys
          mkdir root/.ssh
          touch root/.ssh/authorized_keys
          # ssh Keys
      
          /bin/echo 'ssh-rsa rrrrrrrrrrreeeeeeeeeeeeeeaaaaaaaaaaaaallllllllllllyyyyyyyyyylllllllloooooooooonnnnnnnnnnnggggggggggkkkkkkkkeeeeeeeyyyyyy11111111' >> root/.ssh/authorized_keys
          /bin/echo 'ssh-rsa rrrrrrrrrrreeeeeeeeeeeeeeaaaaaaaaaaaaallllllllllllyyyyyyyyyylllllllloooooooooonnnnnnnnnnnggggggggggkkkkkkkkeeeeeeeyyyyyy22222222' >> root/.ssh/authorized_keys
      else
          if [ ! -f root/.ssh/authorized_keys ]; then
              echo -e '#(->)Creating new SSH File'
      
          # Add all the keys
          touch root/.ssh/authorized_keys
          /bin/echo 'ssh-rsa rrrrrrrrrrreeeeeeeeeeeeeeaaaaaaaaaaaaallllllllllllyyyyyyyyyylllllllloooooooooonnnnnnnnnnnggggggggggkkkkkkkkeeeeeeeyyyyyy11111111' >> root/.ssh/authorized_keys
          /bin/echo 'ssh-rsa rrrrrrrrrrreeeeeeeeeeeeeeaaaaaaaaaaaaallllllllllllyyyyyyyyyylllllllloooooooooonnnnnnnnnnnggggggggggkkkkkkkkeeeeeeeyyyyyy22222222' >> root/.ssh/authorized_keys
          fi
      fi
      
      echo -e '#(>)##### Coping ConSpy #####'
      
      rsync -avh --progress /usr/bin/conspy /var/www/fog/service/ipxe/initmountdir/bin
      rsync -avh --progress /usr/lib64/libncurses.so.6 /var/www/fog/service/ipxe/initmountdir/lib64
      rsync -avh --progress /usr/lib64/libncurses.so.6.1 /var/www/fog/service/ipxe/initmountdir/lib64
      rsync -avh --progress /usr/lib64/libncursesw.so.6 /var/www/fog/service/ipxe/initmountdir/lib64
      rsync -avh --progress /usr/lib64/libncursesw.so.6.1 /var/www/fog/service/ipxe/initmountdir/lib64
      rsync -avh --progress /usr/lib64/libtinfo.so.6 /var/www/fog/service/ipxe/initmountdir/lib64
      rsync -avh --progress /usr/lib64/libtinfo.so.6.1 /var/www/fog/service/ipxe/initmountdir/lib64
      
      echo -e '#(>)##### Coping Nano #####'
      rsync -avh --progress /usr/bin/nano /var/www/fog/service/ipxe/initmountdir/bin
      
      echo -e '#(>)##### Re-Packing Init.xz #####'
      
      cd /var/www/fog/service/ipxe/
      umount initmountdir
      rmdir initmountdir
      xz -C crc32 -9 init
      chown fogproject:apache init.xz
      
      #ls -al
      echo -e '#(-)##### Completed #####'
      cd /root
      
      posted in Tutorials
      Greg PlamondonG
      Greg Plamondon
    • RE: REQUEST: UltraVNC connect to client pc via fog interface...

      @george1421 said in REQUEST: UltraVNC connect to client pc via fog interface...:

      http://<host_name>:5800

      No, I just get a white page. I think that’s trying to use Java.

      posted in Feature Request
      Greg PlamondonG
      Greg Plamondon
    • REQUEST: UltraVNC connect to client pc via fog interface...

      can someone with some plugin coding ability put together a plugin that adds the connect to pc via UltraVNC from the fog web GUI?
      I saw this in the WIKI but its fairly old.

      posted in Feature Request
      Greg PlamondonG
      Greg Plamondon
    • RE: Fog V1.5.9.29 Active Directory Defaults for OU not populating Database

      @Tom-Elliott said in Fog V1.5.9.29 Active Directory Defaults for OU not populating Database:

      Found and fixed in 1.5.9.34

      Thank you,

      Thanks!

      posted in Bug Reports
      Greg PlamondonG
      Greg Plamondon
    • RE: Fog V1.5.9.29 Active Directory Defaults for OU not populating Database

      @Tom-Elliott said in Fog V1.5.9.29 Active Directory Defaults for OU not populating Database:

      SELECT TABLE_SCHEMA as DbName ,TABLE_NAME as TableName ,ENGINE as Engine FROM information_schema.TABLES WHERE ENGINE=‘Innodb’ AND TABLE_SCHEMA NOT IN(‘mysql’,‘information_schema’,‘performance_schema’) AND TABLE_SCHEMA = ‘fog’;

      Tom, the database is configured as MyISAM.

      posted in Bug Reports
      Greg PlamondonG
      Greg Plamondon
    • Fog V1.5.9.29 Active Directory Defaults for OU not populating Database

      I have an issue with the Default AD/OU not being applied when clicking update. It also does not apply the AD/OU when doing a Quick Registration.
      here is a video I created that shows my issue. I have to go to the Active directory for each host and click on the dropdown and select the OU even though it’s already the default OU in the GUI.
      Video

      posted in Bug Reports
      Greg PlamondonG
      Greg Plamondon
    • RE: Dhcp vendor class question

      @george1421

      Thanks!
      https://drive.google.com/file/d/1f6jA6hFj-avt49JqqYfFDeVrFDO8n7vE/view?usp=sharing

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Dhcp vendor class question

      @george1421

      I have some HP EliteDesk 705 G5 PC’s that are giving me grief on PXE booting.
      If I use uefi to boot it works. I need to use legacy pxe.
      I get a messages that says:

      Configuring (net0 xx:xx:xx:xx:xx:xx)........ No configuration methods succeeded (http://ipxe.org/040ee119)
      DHCP failed, hit 's' for the iPXE shell; reboot in 10 seconds
      

      I am trying to configure a dhcp section for the EliteBooks.
      so far i have this:

      class "EliteDesk" {
              match if substring(option vendor-class-identifier, 0, 8) = "MSFT 5.0";
              filename "realtek.kpxe";
          }
      

      But i am not sure if it is correct or if it’s being used.

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • Dhcp vendor class question

      I have set the

      set vendor-string = option vendor-class-identifier;
      

      option in dhcpd.conf to show vendor classes in DHCP logs.
      I am trying to figure out what 0, 20 refers to in the line “match if substring(option vendor-class-identifier, 0, 20) = “PXEClient:Arch:00000”;” in the dhcpd.conf file.

      class "Legacy" {
              match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000";
              filename "undionly.kkpxe";
          }
      

      Thanks!

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • FOS registry manipulation

      Re: [The magical](mystical FOG post download script)

      Can someone explain this bit of code?

      regfile="/ntfs/Windows/System32/config/SOFTWARE"
      key="\Microsoft\Windows\CurrentVersion\DevicePath"
      devpath="%SystemRoot%\inf;%SystemRoot%\DRV";
      reged -e "$regfile" &>/dev/null <<EOFREG
      ed $key
      $devpath
      q
      y
      EOFREG
      
      regfile="/ntfs/Windows/System32/config/SOFTWARE"
      

      is this an actual registry file that must exist to be imported?
      if so what must it contain?

      key="\Microsoft\Windows\CurrentVersion\DevicePath"
      

      I have looked for this key in regedit and cannot find it…

      posted in Tutorials
      Greg PlamondonG
      Greg Plamondon
    • RE: Wrong Partition is mounted during deployment. (FOG 1.5.7.56)

      @george1421 said in Wrong Partition is mounted during deployment. (FOG 1.5.7.56):

      @Greg-Plamondon You might want to update your partition detection script to the one used here:

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
              fi
              getPartitions $hd
              for part in $parts; do
                  umount /ntfs >/dev/null 2>&1
                  fsTypeSetting "$part"
                  case $fstype in
                      ntfs)
                          dots "Testing partition $part"
                          ntfs-3g -o force,rw $part /ntfs
                          ntfsstatus="$?"
                          if [[ ! $ntfsstatus -eq 0 ]]; then
                              echo "Skipped"
                              continue
                          fi
                          if [[ ! -d /ntfs/windows && ! -d /ntfs/Windows && ! -d /ntfs/WINDOWS ]]; then
                              echo "Not found"
                              umount /ntfs >/dev/null 2>&1
                              continue
                          fi
                          echo "Success"
                          break
                          ;;
                      *)
                          echo " * Partition $part not NTFS filesystem"
                          ;;
                  esac
              done
              if [[ ! $ntfsstatus -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              debugPause
              . ${postdownpath}fog.copydrivers
              # . ${postdownpath}fog.updateunattend
              umount /ntfs
              ;;
          *)
              echo "Non-Windows Deployment"
              debugPause
              return
              ;;
      esac
      

      This one uses a bit more intelligence to find which partition actually has windows on it. I think your script is just picking the last partition and calling it good enough.

      ref: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed

      Thanks, That fixed it!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Wrong Partition is mounted during deployment. (FOG 1.5.7.56)

      @george1421
      Here is my fog.postdownload

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      curl -A "" -Lkso /tmp/hinfo.sh "${web}/service/hostinfo.php?mac=$mac"
      . /tmp/hinfo.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
      
              fi
              getPartitions $hd
              for part in $parts; do
                  true
              done
              dots "Mounting partition $part"
              ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              case $othertag in
                 [Bb][Aa][Yy])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_bay
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_bay
                      . ${postdownpath}fog.DesktopInfo
                      ;;
                 [Mm][Pp][Mm][Ii])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_mpmi
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_mpmi
                      . ${postdownpath}fog.DesktopInfo
                      ;;
                 [Hh][Oo][Mm][Ee])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_home
                      . ${postdownpath}fog.drivers
                      ;;
                 [Mm][Tt][Ss])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_fog
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_bay
                      . ${postdownpath}fog.DesktopInfo
                      ;;
                   *)
      

      we use the $othertag to do different things for our sister companies.

      How is $part determined?

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Wrong Partition is mounted during deployment. (FOG 1.5.7.56)

      @george1421 do you mind sharing your complex post download script with me 🙂

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Wrong Partition is mounted during deployment. (FOG 1.5.7.56)

      well, I thought I had it licked but here is the issue with Windows 10 version 2004 MBR image.
      It creates 3 partitions but they are in the wrong order.

      Fog mounts /dev/sda3 which, in this case, is partition 3 the Recovery partition.

      alt text

      Here is the lsblk for the VM golden image.

      alt text

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Wrong Partition is mounted during deployment. (FOG 1.5.7.56)

      I am using the postdownload scripts function to replace files on the os.
      I have recently created a golden image of Windows 10 build 2004 and something has changed.
      The image is a GPT image.
      When deploying the image to the client pc it fails with:
      alt text

      the OS partition is /dev/sda3

      any ideas on how to fix this?

      *** EDIT
      I went back to the golden image and used diskpart to delete partition 4 which is the Recovery Partition.

      diskpart
      select disk 0
      select partition 4
      delete partition override
      exit
      

      re-syspreped and uploaded to fogserver.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 20
    • 21
    • 4 / 21