Categories

  • 12k Topics
    114k Posts
    D

    Hiya @george1421. First, thanks for your time thus far and thank you for the background/context. I truly was not aware the way we are using FOG was an edge case so I appreciate the extra help.

    I can confirm I’ve put the bzImage you provided in place but continue to hit the same screen. Taking a step back, here is some additional context from my end:

    This is a new deployment and new environment. I am using dnsmasq for DNS and DHCP on a server, “soko01” at 10.20.192.11 The rest of the servers of this type are still pointed at a MaaS instance so I have some chain loading going on in dnsmasq to target one server, “trial194” that I am attempting to capture a FOG image from. The rest are still pointed at MaaS. MaaS lives on soko02 at 10.20.192.12 FOG lives on soko03 at 10.20.192.13

    Here is my dnsmasq conf

    ########################## ### maas configuration ### ########################## dhcp-match=set:pxearch0,option:client-arch,00:00 dhcp-match=set:pxearch7,option:client-arch,00:07 dhcp-match=set:pxearch10,option:client-arch,00:10 dhcp-match=set:pxearch9,option:client-arch,00:09 dhcp-match=set:pxearch8,option:client-arch,00:08 dhcp-match=set:pxearch13,option:client-arch,00:13 dhcp-match=set:pxearch0c,option:client-arch,00:0c dhcp-match=set:pxearch0e,option:client-arch,00:0e dhcp-match=set:pxearch1f,option:client-arch,00:1f dhcp-match=set:pxearch20,option:client-arch,00:20 dhcp-match=set:pxearch11,option:client-arch,00:0b dhcp-boot=tag:maas,tag:pxearch0,lpxelinux.0,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch7,bootx64.efi,0.0.0.0,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch10,http://10.20.192.12:5248/images/bootx86.efi,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch9,bootx64.efi,0.0.0.0,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch8,bootaa64.efi,0.0.0.0,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch13,http://10.20.192.12:5248/images/bootaa64.efi,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch0c,bootppc64.bin,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch0e,pxelinux.0,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch1f,boots390x.bin,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch20,s390x_partition/maas,soko02,10.20.192.12 dhcp-boot=tag:maas,tag:pxearch11,http://10.20.192.12:5248/images/grubaa64.efi,soko02,10.20.192.12 ######################### ### fog configuration ### ######################### # FOG PXE (soko03 / 10.20.192.13) # Detect iPXE dhcp-userclass=set:ipxe,iPXE dhcp-vendorclass=set:ipxe,iPXE dhcp-match=set:ipxe,175 # FOG stage 1 (only if NOT already iPXE) dhcp-boot=tag:fog,tag:!ipxe,tag:pxearch0,undionly.kpxe,soko03,10.20.192.13 dhcp-boot=tag:fog,tag:!ipxe,tag:pxearch0e,undionly.kpxe,soko03,10.20.192.13 dhcp-boot=tag:fog,tag:!ipxe,tag:pxearch7,snponly.efi,10.20.192.13,10.20.192.13 dhcp-boot=tag:fog,tag:!ipxe,tag:pxearch9,snponly.efi,10.20.192.13,10.20.192.13 # iPXE stage: set BOTH bootfile AND next-server dhcp-boot=tag:fog,tag:ipxe,http://10.20.192.13/fog/service/ipxe/boot.php,soko03,10.20.192.13 # A MaaS-provisioned host dhcp-host=set:maas,set:front,90:5a:08:77:62:02,10.20.193.193,trial193.front.sepia.ceph.com # A FOG-provisioned host dhcp-host=set:fog,set:front,90:5a:08:77:63:36,10.20.193.194,trial194.front.sepia.ceph.com

    The autoexec.ipxe file I am serving

    root@soko03:/var/www/html/fog/service/ipxe# cat /tftpboot/autoexec.ipxe #!ipxe dhcp chain http://10.20.192.13/fog/service/ipxe/boot.php || shell

    Here is the screen I am getting right before the DDP package error
    iKVM_capture3.jpg

    Which signals to me that it’s getting the bzImage file okay. If I load http://10.20.192.13/fog/service/ipxe/boot.php, it looks normal.

    What should I check next?

  • Get the latest news on what's happening.
    184 Topics
    825 Posts
    A

    @Tom-Elliott I really appreciate that you are putting effort into providing more frequent releases, which makes it easier for everyone to deploy new security fixes in time. Keep up the good work!

  • View tutorials or talk about FOG in general.
    2k Topics
    19k Posts
    J

    @george1421 I have installed fog with DHCP server but DNS doesn’t work at all (no dns server appear on windows client) so I’m stuck.
    It’s my first time installing DHCP and DNS on Debian so I think I made mistakes.
    DHCP work fine.

    edit : It’s fixed. I forgot to add “option domain-name” and “option domain-name-servers” in dhcpd.conf

    For the script, I think it must be simple to set FOG as DHCP server at startup if after 10 min no IP is given from a DHCP server then set server to static IP and start DHCP and DNS services.
    And then reverse this at shutdown.
    Maybe this can be done manually first.

    edit : Here is the first script.
    I have create files ending with .dhcp for conf for external DHCP/DNS and file ending with .static for conf for local DHCP/DNS.
    It looks to work fine.

    # Configuration actuelle echo "Etat DNS local :" systemctl is-active bind9 echo "Etat DHCP local :" systemctl is-active isc-dhcp-server echo "" loc(){ # Configuration DHCP local echo "DHCP local" # Configuration if [ -e /etc/network/interfaces.static ] then echo "Copie interfaces" cp /etc/network/interfaces.static /etc/network/interfaces else echo "interfaces.static not found" exit 1 fi echo "Redemarrage service reseau" systemctl restart networking.service if [ -e /etc/resolv.conf.static ] then echo "Copie resolv.conf" cp /etc/resolv.conf.static /etc/resolv.conf else echo "resolv.conf.static not found" exit 1 fi # Services systemctl start bind9 systemctl start isc-dhcp-server } ext(){ # Configuration DHCP externe echo "DHCP externe" # Configuration if [ -e /etc/network/interfaces.dhcp ] then echo "Copie interfaces" cp /etc/network/interfaces.dhcp /etc/network/interfaces else echo "interfaces.dhcp not found" exit 1 fi echo "Redemarrage service reseau" systemctl restart networking.service if [ -e /etc/resolv.conf.dhcp ] then echo "Copie resolv.conf" cp /etc/resolv.conf.dhcp /etc/resolv.conf else echo "resolv.conf.dhcp not found" exit 1 fi # Services systemctl stop bind9 systemctl stop isc-dhcp-server } # Demande de Configuration while true; do read -p "Voulez vous passer en DHCP externe ou en DHCP local? (e:externe l:local) " el case $el in [Ee]* ) ext; break;; [Ll]* ) loc; break;; * ) echo "Please answer yes or no.";; esac done
  • Report bugs, request features, or get the latest progress.
    2k Topics
    21k Posts
    8

    I know this is an ancient topic, but I wanted to make sure I updated anybody who was interested in a docker image to my new one.

    please check my post here

    https://forums.fogproject.org/topic/18000/unofficial-docker-image-beta

124

Online

12.5k

Users

17.5k

Topics

156.1k

Posts