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

    netbootdisk

    @netbootdisk

    14
    Reputation
    671
    Profile views
    28
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website www.netbootdisk.com Location Brisbane, Australia

    netbootdisk Unfollow Follow

    Best posts made by netbootdisk

    • PowerShell Code for UEFI DHCP Setup

      The Wiki’s info on UEFI setup is great, but fiddly to setup on lots of Windows Servers, so I’ve converted it to PowerShell.

      Suggestions/corrections welcome - the architecture selection is somewhat hard to test with limited devices.

      Hope this helps others!

      import-module dhcpserver
      $DHCPserv = "DHCP-SERVER-HOSTNAME"
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 2" -Type Vendor -data 0x505845436c69656e743a417263683a3030303032 -Description "UEFI Architecture Type 2" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 6" -Type Vendor -data 0x505845436c69656e743a417263683a3030303036 -Description "UEFI Architecture Type 6" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 9" -Type Vendor -data 0x505845436c69656e743a417263683a3030303039 -Description "UEFI Architecture Type 9" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7" -Type Vendor -data 0x505845436c69656e743a417263683a3030303037 -Description "UEFI Architecture Type 7" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3016" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303136 -Description "UEFI Architecture Type 7 UNDI 3016 (Surface Pro 4)" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE" -Description "UEFI IPXE" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7*","PXEClient (UEFI x64) 9*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE32" -Description "UEFI IPXE32" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 2*","PXEClient (UEFI x64) 6*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE7156" -Description "UEFI IPXE7156" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7 UNDI 3016*" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE" -OptionId 67 -Value "ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE32" -OptionId 67 -Value "i386-efi/ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE7156" -OptionId 67 -Value "ipxe7156.efi" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -OptionId 67 -Value "undionly.kpxe" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -OptionId 66 -Value "10.20.30.40" -ComputerName $DHCPserv
      

      Also, for those trying to get UEFI working correctly, I had to also do the following:

      1. In FOG Settings > iPXE > Set UEFI exit type to Refind
      2. Edit /var/www/fog/service/ipxe/refind.conf and change the scanfor line to just: scanfor internal - eg remove hdbios
      posted in Tutorials
      netbootdiskN
      netbootdisk
    • RE: PowerShell Code for UEFI DHCP Setup

      Hi Guys

      Two quick updates on this:

      1. This ipxe7156.ipxe also seems to be working for some Dell machines we have.

      2. To make Hyper-V Generation 2 VM’s to PXE boot UEFI correctly; I had to add a new PXEclient mapping of PXEClient:Arch:00007:UNDI:003000 for the ipxe7156.ipxe boot file. (Secure boot should also be disabled!)

      (Tested with FOG 1.5.2)

      Revised Powershell Code:

      import-module dhcpserver
      $DHCPserv = "DHCP-SERVER-HOSTNAME"
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 2" -Type Vendor -data 0x505845436c69656e743a417263683a3030303032 -Description "UEFI Architecture Type 2" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 6" -Type Vendor -data 0x505845436c69656e743a417263683a3030303036 -Description "UEFI Architecture Type 6" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 9" -Type Vendor -data 0x505845436c69656e743a417263683a3030303039 -Description "UEFI Architecture Type 9" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7" -Type Vendor -data 0x505845436c69656e743a417263683a3030303037 -Description "UEFI Architecture Type 7" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3016" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303136 -Description "UEFI Architecture Type 7 UNDI 3016 (Surface Pro 4)" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3000" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303000 -Description "UEFI Architecture Type 7 UNDI 3000 (Hyper-V)" -ComputerName $DHCPserv
      
      Add-DhcpServerv4Policy -Name "UEFI-IPXE" -Description "UEFI IPXE" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7*","PXEClient (UEFI x64) 9*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE32" -Description "UEFI IPXE32" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 2*","PXEClient (UEFI x64) 6*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE7156" -Description "UEFI IPXE7156" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7 UNDI 3016*","PXEClient (UEFI x64) 7 UNDI 3000*" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE" -OptionId 67 -Value "ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE32" -OptionId 67 -Value "i386-efi/ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE7156" -OptionId 67 -Value "ipxe7156.efi" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -OptionId 67 -Value "undionly.kpxe" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -OptionId 66 -Value "10.20.30.40" -ComputerName $DHCPserv
      
      posted in Tutorials
      netbootdiskN
      netbootdisk
    • RE: PXE boot issue with HP Probook 450 G8 (Realtek Nic)

      I had the same battle with these 450 G8’s, and new HP Elitedesk 600 G6 micro desktops. But I now have it working!

      My real problem was rEFInd hanging after the PXE boot menu. I updated /var/www/fog/service/ipxe/refind.efi on the primary fog server, with the copy from the latest FOG 1.5.9 zip. (The refind.efi copies on any storage nodes isn’t used?)

      I’m PXE booting with ipxe.efi also from FOG 1.5.9

      Then in the HP BIOS, the HP SureProtect stuff was all disabled too

      Unrelated but the bzImage kernel also needs to be the latest build so the NIC is detected on it. The new February 2021 build solved that one.

      EDIT: I’m sure I’ve seen your original error message too about no configuration methods. I can’t remember if this was solved via BIOS update - or if it was more switch-port related.

      posted in FOG Problems
      netbootdiskN
      netbootdisk
    • RE: PXE boot issue with HP Probook 450 G8 (Realtek Nic)

      I did some further testing.

      With BIOS Mac-address pass-through set to ‘disabled’ - ipxe.efi works fine.

      However with BIOS Mac-address pass-through set to ‘system mac’ - ipxe.efi fails as per the original posters screen shot of ‘no configuration methods’. However using snponly.efi did work in this mode

      posted in FOG Problems
      netbootdiskN
      netbootdisk

    Latest posts made by netbootdisk

    • RE: PXE boot issue with HP Probook 450 G8 (Realtek Nic)

      I did some further testing.

      With BIOS Mac-address pass-through set to ‘disabled’ - ipxe.efi works fine.

      However with BIOS Mac-address pass-through set to ‘system mac’ - ipxe.efi fails as per the original posters screen shot of ‘no configuration methods’. However using snponly.efi did work in this mode

      posted in FOG Problems
      netbootdiskN
      netbootdisk
    • RE: PXE boot issue with HP Probook 450 G8 (Realtek Nic)

      I had the same battle with these 450 G8’s, and new HP Elitedesk 600 G6 micro desktops. But I now have it working!

      My real problem was rEFInd hanging after the PXE boot menu. I updated /var/www/fog/service/ipxe/refind.efi on the primary fog server, with the copy from the latest FOG 1.5.9 zip. (The refind.efi copies on any storage nodes isn’t used?)

      I’m PXE booting with ipxe.efi also from FOG 1.5.9

      Then in the HP BIOS, the HP SureProtect stuff was all disabled too

      Unrelated but the bzImage kernel also needs to be the latest build so the NIC is detected on it. The new February 2021 build solved that one.

      EDIT: I’m sure I’ve seen your original error message too about no configuration methods. I can’t remember if this was solved via BIOS update - or if it was more switch-port related.

      posted in FOG Problems
      netbootdiskN
      netbootdisk
    • RE: PowerShell Code for UEFI DHCP Setup

      Hi Guys

      Two quick updates on this:

      1. This ipxe7156.ipxe also seems to be working for some Dell machines we have.

      2. To make Hyper-V Generation 2 VM’s to PXE boot UEFI correctly; I had to add a new PXEclient mapping of PXEClient:Arch:00007:UNDI:003000 for the ipxe7156.ipxe boot file. (Secure boot should also be disabled!)

      (Tested with FOG 1.5.2)

      Revised Powershell Code:

      import-module dhcpserver
      $DHCPserv = "DHCP-SERVER-HOSTNAME"
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 2" -Type Vendor -data 0x505845436c69656e743a417263683a3030303032 -Description "UEFI Architecture Type 2" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 6" -Type Vendor -data 0x505845436c69656e743a417263683a3030303036 -Description "UEFI Architecture Type 6" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 9" -Type Vendor -data 0x505845436c69656e743a417263683a3030303039 -Description "UEFI Architecture Type 9" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7" -Type Vendor -data 0x505845436c69656e743a417263683a3030303037 -Description "UEFI Architecture Type 7" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3016" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303136 -Description "UEFI Architecture Type 7 UNDI 3016 (Surface Pro 4)" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3000" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303000 -Description "UEFI Architecture Type 7 UNDI 3000 (Hyper-V)" -ComputerName $DHCPserv
      
      Add-DhcpServerv4Policy -Name "UEFI-IPXE" -Description "UEFI IPXE" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7*","PXEClient (UEFI x64) 9*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE32" -Description "UEFI IPXE32" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 2*","PXEClient (UEFI x64) 6*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE7156" -Description "UEFI IPXE7156" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7 UNDI 3016*","PXEClient (UEFI x64) 7 UNDI 3000*" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE" -OptionId 67 -Value "ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE32" -OptionId 67 -Value "i386-efi/ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE7156" -OptionId 67 -Value "ipxe7156.efi" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -OptionId 67 -Value "undionly.kpxe" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -OptionId 66 -Value "10.20.30.40" -ComputerName $DHCPserv
      
      posted in Tutorials
      netbootdiskN
      netbootdisk
    • RE: MBR to GPT Conversion Task

      I’ve had great success with a “universal” image so far on legacy machines. But I agree; now that I’ve done further research, any hybrid image with UEFI is not looking good. (Although converting the SOE master VHD image to a WIM & transposing that to a USB has worked relatively well despite not being fully automated by FOG’s management.)

      As it turns out MBR2GPT.EXE via WinPE failed to find the OS partition - though it was there so FOG did it’s job.

      Either way I give up - wasting too much time on this - 2 x images it is 🙂

      posted in Feature Request
      netbootdiskN
      netbootdisk
    • RE: MBR to GPT Conversion Task

      gdisk appears to have worked on the Dell - no errors - but the ‘BIOS’ setup on the dell doesn’t see any UEFI boot loader.

      I might be better off just building a WinPE with MBR2GPT.EXE in it… or just resign to the fact of maintaining dual images.

      posted in Feature Request
      netbootdiskN
      netbootdisk
    • RE: MBR to GPT Conversion Task

      Was hoping to have a universal image that could be deployed to either a legacy or UEFI machine. The bulk of our fleet is legacy/MBR booting; but we’ve got new Dell 7390’s that refuse to boot legacy off the internal disk. Also have some Surfaces which we’ve been doing manually via USB WIM’s (converted from the SOE master HyperV VHD)

      So now trying to avoid having to maintain another image in UEFI format for these. Of course I could just switch the existing fleet to UEFI boot, but that’s got it’s own logistical and possible technical/compatibility issues to deal with.

      Have used MBR2GPT.EXE on a legacy-booted machine, restarting & changing BIOS to UEFI mode then resulted in a working UEFI machine; so I was hoping there might be some sort of linux based conversion possible!!

      The post-download script looks perfect - I could easily script from that!

      However testing gdisk (on a Surface Pro 3 which was just deployed with a MBR based image), resulted in errors about overlapping partitions - which were detected incorrectly anyway. About to see if the Dell does the same thing.

      posted in Feature Request
      netbootdiskN
      netbootdisk
    • PowerShell Code for UEFI DHCP Setup

      The Wiki’s info on UEFI setup is great, but fiddly to setup on lots of Windows Servers, so I’ve converted it to PowerShell.

      Suggestions/corrections welcome - the architecture selection is somewhat hard to test with limited devices.

      Hope this helps others!

      import-module dhcpserver
      $DHCPserv = "DHCP-SERVER-HOSTNAME"
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 2" -Type Vendor -data 0x505845436c69656e743a417263683a3030303032 -Description "UEFI Architecture Type 2" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 6" -Type Vendor -data 0x505845436c69656e743a417263683a3030303036 -Description "UEFI Architecture Type 6" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 9" -Type Vendor -data 0x505845436c69656e743a417263683a3030303039 -Description "UEFI Architecture Type 9" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7" -Type Vendor -data 0x505845436c69656e743a417263683a3030303037 -Description "UEFI Architecture Type 7" -ComputerName $DHCPserv
      Add-DhcpServerv4Class -Name "PXEClient (UEFI x64) 7 UNDI 3016" -Type Vendor -data 0x505845436c69656e743a417263683a30303030373a554e44493a303033303136 -Description "UEFI Architecture Type 7 UNDI 3016 (Surface Pro 4)" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE" -Description "UEFI IPXE" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7*","PXEClient (UEFI x64) 9*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE32" -Description "UEFI IPXE32" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 2*","PXEClient (UEFI x64) 6*" -ComputerName $DHCPserv
      Add-DhcpServerv4Policy -Name "UEFI-IPXE7156" -Description "UEFI IPXE7156" -ScopeId 0.0.0.0 -Condition OR -VendorClass EQ, "PXEClient (UEFI x64) 7 UNDI 3016*" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE" -OptionId 67 -Value "ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE32" -OptionId 67 -Value "i386-efi/ipxe.efi" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -PolicyName "UEFI-IPXE7156" -OptionId 67 -Value "ipxe7156.efi" -ComputerName $DHCPserv
      
      Set-DhcpServerv4OptionValue -OptionId 67 -Value "undionly.kpxe" -ComputerName $DHCPserv
      Set-DhcpServerv4OptionValue -OptionId 66 -Value "10.20.30.40" -ComputerName $DHCPserv
      

      Also, for those trying to get UEFI working correctly, I had to also do the following:

      1. In FOG Settings > iPXE > Set UEFI exit type to Refind
      2. Edit /var/www/fog/service/ipxe/refind.conf and change the scanfor line to just: scanfor internal - eg remove hdbios
      posted in Tutorials
      netbootdiskN
      netbootdisk
    • MBR to GPT Conversion Task

      Can we get the ability to automatically convert a MBR based image to GPT after a deployment?

      Looks like it’s possible via gdisk without data loss. If this could be scripted after a clone job, that would be a miracle cure for me.

      More info here: http://slavisa-jovanovic.com/linux/2015/02/19/mbr-to-gpt.html

      posted in Feature Request
      netbootdiskN
      netbootdisk
    • RE: Asset Management for non-network devices.

      We use http://www.sivann.gr/software/itdb/ with a few minor UI/language mods. Works a treat!

      We’d used Spiceworks in the past, but it’s dynamic/scanning nature tended to mess things up. This sometimes added great confusion as to what the actual truth was.

      With a completely manual database, at least we know any changes would’ve been done by a human and not some script editing our records. FOG’s inventory is still good for cross-checking the asset db records though!

      posted in Feature Request
      netbootdiskN
      netbootdisk
    • Audit Logging for Hostname/AD Changes

      Big FOG user here with many locations across Australia - some 3000+km with storage nodes/sites inbetween 🙂

      Having audit/history logging for hostname and Active Directory changes to the FOG database would be very handy. Had a couple of instances where I’ve needed to identify which tech has modified a particular host. eg: Hostname and/or AD OU has ‘magically’ changed but I can’t pin it down to which tech did it.

      Either way, keep up the good work!

      posted in Feature Request
      netbootdiskN
      netbootdisk