• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. robertkwild
    3. Topics
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 48
    • Posts 199
    • Groups 0

    Topics

    • R

      secure boot - dbx.esl no such file to move

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      13
      0 Votes
      13 Posts
      4k Views
      R

      @george1421 made it into all one script, even the mkkeys.sh

      #!/bin/bash apt-get update apt-get upgrade -y apt-get install -y openssl efitools gnu-efi git build-essential help2man libssl-dev perl -e'use CPAN; install "File::Slurp"' mkdir -p /opt/fog/secureboot/efikeys cat << EOF > /opt/fog/secureboot/mkkeys.sh #!/bin/bash # Copyright (c) 2015 by Roderick W. Smith # Updated 26-Nov-2021 by George1421 for the FOG Project # Licensed under the terms of the GPL v3 NAME=FOGProjectSB openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$NAME PK/" -keyout efikeys/PK.key \ -out efikeys/PK.crt -days 3650 -nodes -sha256 openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$NAME KEK/" -keyout efikeys/KEK.key \ -out efikeys/KEK.crt -days 3650 -nodes -sha256 openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$NAME DB/" -keyout efikeys/DB.key \ -out efikeys/DB.crt -days 3650 -nodes -sha256 openssl x509 -in efikeys/PK.crt -out efikeys/PK.cer -outform DER openssl x509 -in efikeys/KEK.crt -out efikeys/KEK.cer -outform DER openssl x509 -in efikeys/DB.crt -out efikeys/DB.cer -outform DER GUID=`python3 -c 'import uuid; print(str(uuid.uuid1()))'` echo $GUID > efikeys/myGUID.txt cert-to-efi-sig-list -g $GUID efikeys/PK.crt efikeys/PK.esl cert-to-efi-sig-list -g $GUID efikeys/KEK.crt efikeys/KEK.esl cert-to-efi-sig-list -g $GUID efikeys/DB.crt efikeys/DB.esl rm -f efikeys/noPK.esl touch efikeys/noPK.esl sign-efi-sig-list -t "$(date --date='1 second' +'%Y-%m-%d %H:%M:%S')" \ -k efikeys/PK.key -c efikeys/PK.crt PK efikeys/PK.esl efikeys/PK.auth sign-efi-sig-list -t "$(date --date='1 second' +'%Y-%m-%d %H:%M:%S')" \ -k efikeys/PK.key -c efikeys/PK.crt PK efikeys/noPK.esl efikeys/noPK.auth sign-efi-sig-list -t "$(date --date='1 second' +'%Y-%m-%d %H:%M:%S')" \ -k efikeys/PK.key -c efikeys/PK.crt KEK efikeys/KEK.esl efikeys/KEK.auth sign-efi-sig-list -t "$(date --date='1 second' +'%Y-%m-%d %H:%M:%S')" \ -k efikeys/KEK.key -c efikeys/KEK.crt db efikeys/DB.esl efikeys/DB.auth chmod 0600 efikeys/*.key echo "" echo "" echo "For use with KeyTool, copy the *.auth and *.esl files to a FAT USB" echo "flash drive or to your EFI System Partition (ESP)." echo "For use with most UEFIs' built-in key managers, copy the *.cer files;" echo "but some UEFIs require the *.auth files." echo "" EOF chmod a+x /opt/fog/secureboot/mkkeys.sh cd /opt/fog/secureboot/ ./mkkeys.sh git clone git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git cd /opt/fog/secureboot/efitools make mkdir -p /opt/fog/secureboot/hwkeys cd /opt/fog/secureboot/ efi-readvar -v PK -o /opt/fog/secureboot/hwkeys/hw_PK.esl efi-readvar -v KEK -o /opt/fog/secureboot/hwkeys/hw_KEK.esl efi-readvar -v db -o /opt/fog/secureboot/hwkeys/hw_db.esl efi-readvar -v dbx -o /opt/fog/secureboot/hwkeys/hw_dbx.esl chmod 666 /opt/fog/secureboot/hwkeys/* cp /opt/fog/secureboot/efikeys/* /opt/fog/secureboot/efitools/ cp /opt/fog/secureboot/hwkeys/* /opt/fog/secureboot/efitools/ cd /opt/fog/secureboot/efitools cat hw_db.esl > DB.esl cat hw_KEK.esl > KEK.esl cat hw_dbx.esl > dbx.esl rm LockDown*efi LockDown.so LockDown.o make cp LockDown-signed.efi EnrollKeys.efi mkdir -p /tftpboot cp /opt/fog/secureboot/efitools/EnrollKeys.efi /tftpboot mv /var/www/html/fog/service/ipxe/bzImage /var/www/html/fog/service/ipxe/bzImage-unsigned sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /var/www/html/fog/service/ipxe/bzImage /var/www/html/fog/service/ipxe/bzImage-unsigned mv /var/www/html/fog/service/ipxe/bzImage32 /var/www/html/fog/service/ipxe/bzImage32-unsigned sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /var/www/html/fog/service/ipxe/bzImage32 /var/www/html/fog/service/ipxe/bzImage32-unsigned mv /var/www/html/fog/service/ipxe/refind.efi /var/www/html/fog/service/ipxe/refind-unsigned.efi sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /var/www/html/fog/service/ipxe/refind.efi /var/www/html/fog/service/ipxe/refind-unsigned.efi mv /tftpboot/ipxe.efi /tftpboot/ipxe-unsigned.efi sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /tftpboot/ipxe.efi /tftpboot/ipxe-unsigned.efi mv /tftpboot/snponly.efi /tftpboot/snponly-unsigned.efi sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /tftpboot/snponly.efi /tftpboot/snponly-unsigned.efi mv /tftpboot/snp.efi /tftpboot/snp-unsigned.efi sbsign --key /opt/fog/secureboot/efikeys/DB.key --cert /opt/fog/secureboot/efikeys/DB.crt --output /tftpboot/snp.efi /tftpboot/snp-unsigned.efi
    • R

      how to install windows 11 on unsupported hardware

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      1
      0 Votes
      1 Posts
      487 Views
      No one has replied
    • R

      UEFI not working with Secure Boot On

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      5
      0 Votes
      5 Posts
      2k Views
      R

      @sebastian-roth when George says this

      mkdir -p /opt/fog/secureboot/hwkeys
      cd /opt/fog/secureboot/

      sudo efi-readvar -v PK -o /opt/fog/secureboot/hwkeys/hw_PK.esl
      sudo efi-readvar -v KEK -o /opt/fog/secureboot/hwkeys/hw_KEK.esl
      sudo efi-readvar -v db -o /opt/fog/secureboot/hwkeys/hw_db.esl
      sudo efi-readvar -v dbx -o /opt/fog/secureboot/hwkeys/hw_dbx.esl
      sudo chmod 666 /opt/fog/secureboot/hwkeys/*

      He says he got the certs above on a debian instance running on a hardware pc,

      What about if this a Ubuntu vm?

    • R

      memtest for uefi

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      6
      0 Votes
      6 Posts
      2k Views
      M

      @sebastian-roth The old memtest would loop forever. 9.4 “free” will stop automatically after 4 passes ( so you can’t leave it running overnight for a longer stress test ).

    • R

      win10 boot menu options for uefi

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      16
      0 Votes
      16 Posts
      6k Views
      R

      @robertkwild scrap this it works and when it runs the setup eventually its quick like a normal install

    • R

      add boot from media in menu

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      4
      0 Votes
      4 Posts
      669 Views
      S

      @robertkwild said in add boot from media in menu:

      when you say chainloading to the local disk, you mean the menu option where it says boot to hard drive

      Yes.

    • R

      adding uefi boot option aswell as bios boot option

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      15
      0 Votes
      15 Posts
      4k Views
      R

      @george1421 im following your guide here

      https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/4

      Windows 10 BIOS/UEFI 2021 edition

      as i have installed a samba server on my fog server following your guide also there and also done the winpe one, how do i do step 14 as isnt that for a windows share and not a linux share

    • R

      centos 7 kickstart - were to put ks file

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      18
      0 Votes
      18 Posts
      6k Views
      R

      my dir listing works but when i click the kickstart file, it doesnt ask me to download it, where as it should instead of just viewing me the contents of it

      is it ok to add this line in my httpd.conf as i know @george1421 advised against it

      <Directory /var/www/html/listing>
      Options +Indexes
      </Directory>

    • R

      boot php - denied

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      16
      0 Votes
      16 Posts
      4k Views
      Tom ElliottT

      @robertkwild yes, it can.

    • R

      mysqldump - is marked as crashed and should be repaired

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      5
      0 Votes
      5 Posts
      1k Views
      R

      https://www.stellarinfo.com/article/repair-mysql-database-table.php

    • R

      backup of mysql database

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      4
      0 Votes
      4 Posts
      1k Views
      Tom ElliottT

      @robertkwild “better” is a relative term. I suggest following the command because we know it will do what it needs to do properly.

    • R

      is it ok to make new dir in /images

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      4
      0 Votes
      4 Posts
      797 Views
      george1421G

      @robertkwild said in is it ok to make new dir in /images:

      OK to create /images/backup

      Yes it is OK. FOG don’t care or will ever see it.

    • R

      when you delete image from web gui doesnt delete from dir

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      5
      0 Votes
      5 Posts
      1k Views
      Tom ElliottT

      @robertkwild Yes, it’s perfectly safe for you to manually deleted the image directory/files. You are the administrator.

    • R

      backup using the fog script or making a script

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      1
      0 Votes
      1 Posts
      313 Views
      No one has replied
    • R

      syspreping a vanilla windows golden image

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      8
      0 Votes
      8 Posts
      3k Views
      george1421G

      @robertkwild said in syspreping a vanilla windows golden image:

      i found this, you can sysprep win10 up to 1001 times

      Just to be a bit snarky, if you have to sysprep your image 1000 times, I think you might be doing something wrong or IT should not be your field of work.

      But on the less snarky side its good to know the number and hopefully I’ll never personally need it. As I said we use MDT to build the golden image so I get a fresh from DVD image (with current windows updates) each time the golden image is recreated.

    • R

      could not complete task /bin/fog/upload

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      9
      0 Votes
      9 Posts
      2k Views
      R

      ok job done.

      just renamed the images dir to something else, made a new images dir, in fstab mounted the raid6 in the images dir and re ran the setup shell script

      i did a capture and a deploy and all is now good

      thank you all for your help!!!

    • R

      configuring net0 DHCP failed

      Watching Ignoring Scheduled Pinned Locked Moved General
      2
      0 Votes
      2 Posts
      498 Views
      R

      sorted it out, i had to enable port fast on the cisco switch for the port(s)

      the reason it took ages to get a dhcp address is because when port fast is disbaled it takes 30 seconds for it to give it a lease address

    • R

      creating an image container for windows server 2012 r2

      Watching Ignoring Scheduled Pinned Locked Moved General
      5
      0 Votes
      5 Posts
      1k Views
      S

      @robertkwild said in creating an image container for windows server 2012 r2:

      so for normal cloning i can use “single disk resizable”?

      Please read this: https://wiki.fogproject.org/wiki/index.php?title=Managing_FOG#Images

      If you don’t need to deploy to a smaller size disk you might consider using this image type as it’s less likely to cause an issue and image size on the server is still as small as with resizable image type.

    • R

      deploying image from xen windows 10 - blue screen

      Watching Ignoring Scheduled Pinned Locked Moved General
      3
      0 Votes
      3 Posts
      750 Views
      A

      Xen defaults to BIOS though in 8+ you can switch to EFI and I’m pretty sure new versions of ESXi default to EFI. Can you confirm which you have on each?

    • R

      what can i put in boot options on a custom ipxe menu

      Watching Ignoring Scheduled Pinned Locked Moved General
      7
      0 Votes
      7 Posts
      2k Views
      Tom ElliottT

      @dvorak You’d need it in the ISO.

      PXE is before the system is loaded, and as such cannot trigger actions at the HDD level beyond loading a Disk, Boot Rom, or whatever.

    • 1 / 1