• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

PXE Boot not working properly from Storage Node

Scheduled Pinned Locked Moved Solved
FOG Problems
3
33
4.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Silv4n
    last edited by Silv4n Feb 19, 2020, 2:44 AM Feb 19, 2020, 8:41 AM

    Hey guys

    When I try to PXE Boot to an Storage Node it works, but the FOG Screen seems broken and deploying etc. doesn’t work. Screen when booted in FOG Menu

    For context:

    My Master Node is in a different subnet than my storage node, i’ve opened FTP, MySQL, HTTP and HTTPS between those, and replication etc. seems to work.

    Thanks in advance for any help!

    Edit: Also when trying to execute memdisk the following error comes up:
    https://imgur.com/a/zFPAjXz

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Feb 20, 2020, 6:13 AM Feb 20, 2020, 12:12 PM

      @Silv4n Oh well, I should have read the whole topic more closely and think about it a bit more. Copying the certs for Apache from the master server over will cause trouble because it’s got the wrong IP/DNS name in it.

      In this case I’d suggest you re-run the installer on the storage node and tell it to recreate the Apache cert and key.

      • Make sure have set httpproto='https' in /opt/fog/.fogproject!
      • Run the installer like this: ./installfog.sh --recreate-keys

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      S 1 Reply Last reply Feb 20, 2020, 12:16 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Feb 19, 2020, 1:20 PM

        The pxe boot screen is kind of expected on certain uefi based computers. Its ugly but a function of the uefi firmware. You do not get a pretty colored screen, just the basic screen.

        Is your storage node a FOG storage node or a converted NAS like synology?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • S
          Silv4n
          last edited by Feb 19, 2020, 1:30 PM

          It’s a FOG Storage Node, and when I used to boot from the master, the screen looked normal on the same pc.

          G 1 Reply Last reply Feb 19, 2020, 1:45 PM Reply Quote 0
          • G
            george1421 Moderator @Silv4n
            last edited by Feb 19, 2020, 1:45 PM

            @Silv4n Will you collect some information for me?

            At the main site dhcp, what are the settings for options 66 and 67
            At the remote site dhcp what are the settings for the options 66 and 67.

            At the remote site for the FOG storage node. Post the content of the /tftpboot/default.ipxe file.

            Key in the following URL once from the main fog server and once from the remote storage node.

            http://<ip_address>/fog/service/ipxe/boot.php

            This will give you a screen full of text. The text represents the fog boot menu. There is something going on that we don’t understand at the moment.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            S 1 Reply Last reply Feb 19, 2020, 1:52 PM Reply Quote 0
            • S
              Silv4n @george1421
              last edited by Feb 19, 2020, 1:52 PM

              @george1421
              Main site: It’s currently the DMZ, so we don’t actually use PXE Boot there
              Remote site: 10.144.1.22, undionly.kpxe

              10.144.1.22 remote site /tftpboot/default.ipxe

              #!ipxe
              cpuid --ext 29 && set arch x86_64 || set arch ${buildarch}
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param platform ${platform}
              param product ${product}
              param manufacturer ${product}
              param ipxever ${version}
              param filename ${filename}
              param sysuuid ${uuid}
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              :bootme
              chain http://10.144.1.22/fog/service/ipxe/boot.php##params
              
              

              10.144.1.22 boot.php (remote)

              #!ipxe
              set fog-ip 10.51.1.104
              set fog-webroot fog
              set boot-url http://${fog-ip}/${fog-webroot}
              cpuid --ext 29 && set arch x86_64 || set arch i386
              goto get_console
              :console_set
              colour --rgb 0x00567a 1 ||
              colour --rgb 0x00567a 2 ||
              colour --rgb 0x00567a 4 ||
              cpair --foreground 7 --background 2 2 ||
              goto MENU
              :alt_console
              cpair --background 0 1 ||
              cpair --background 1 2 ||
              goto MENU
              :get_console
              console --picture http://10.51.1.104/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
              :MENU
              menu
              colour --rgb 0xff0000 0 ||
              cpair --foreground 1 1 ||
              cpair --foreground 0 3 ||
              cpair --foreground 4 4 ||
              item --gap Host is NOT registered!
              item --gap -- -------------------------------------
              item fog.local Boot from hard disk
              item fog.memtest Run Memtest86+
              item fog.reginput Perform Full Host Registration and Inventory
              item fog.reg Quick Registration and Inventory
              item fog.deployimage Deploy Image
              item fog.multijoin Join Multicast Session
              item fog.sysinfo Client System Information (Compatibility)
              choose --default fog.local --timeout 3000 target && goto ${target}
              :fog.local
              sanboot --no-describe --drive 0x80 || goto MENU
              :fog.memtest
              kernel memdisk initrd=memtest.bin iso raw
              initrd memtest.bin
              boot || goto MENU
              :fog.reginput
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=manreg
              imgfetch init_32.xz
              boot || goto MENU
              :fog.reg
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=autoreg
              imgfetch init_32.xz
              boot || goto MENU
              :fog.deployimage
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username ${username}
              param password ${password}
              param qihost 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              param sysuuid ${uuid}
              :fog.multijoin
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username ${username}
              param password ${password}
              param sessionJoin 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              param sysuuid ${uuid}
              :fog.sysinfo
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=sysinfo
              imgfetch init_32.xz
              boot || goto MENU
              :bootme
              chain -ar http://10.51.1.104/fog/service/ipxe/boot.php##params ||
              goto MENU
              autoboot
              
              

              main site 10.51.1.104 boot.php (It’s HTTPS, I’m not sure if that makes an difference)

              #!ipxe
              set fog-ip 10.51.1.104
              set fog-webroot fog
              set boot-url https://${fog-ip}/${fog-webroot}
              cpuid --ext 29 && set arch x86_64 || set arch i386
              goto get_console
              :console_set
              colour --rgb 0x00567a 1 ||
              colour --rgb 0x00567a 2 ||
              colour --rgb 0x00567a 4 ||
              cpair --foreground 7 --background 2 2 ||
              goto MENU
              :alt_console
              cpair --background 0 1 ||
              cpair --background 1 2 ||
              goto MENU
              :get_console
              console --picture https://10.51.1.104/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
              :MENU
              menu
              colour --rgb 0xff0000 0 ||
              cpair --foreground 1 1 ||
              cpair --foreground 0 3 ||
              cpair --foreground 4 4 ||
              item --gap Host is NOT registered!
              item --gap -- -------------------------------------
              item fog.local Boot from hard disk
              item fog.memtest Run Memtest86+
              item fog.reginput Perform Full Host Registration and Inventory
              item fog.reg Quick Registration and Inventory
              item fog.deployimage Deploy Image
              item fog.multijoin Join Multicast Session
              item fog.sysinfo Client System Information (Compatibility)
              choose --default fog.local --timeout 3000 target && goto ${target}
              :fog.local
              sanboot --no-describe --drive 0x80 || goto MENU
              :fog.memtest
              kernel memdisk initrd=memtest.bin iso raw
              initrd memtest.bin
              boot || goto MENU
              :fog.reginput
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=https://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=manreg
              imgfetch init_32.xz
              boot || goto MENU
              :fog.reg
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=https://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=autoreg
              imgfetch init_32.xz
              boot || goto MENU
              :fog.deployimage
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username ${username}
              param password ${password}
              param qihost 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              param sysuuid ${uuid}
              :fog.multijoin
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username ${username}
              param password ${password}
              param sessionJoin 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              param sysuuid ${uuid}
              :fog.sysinfo
              kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=275000 web=https://10.51.1.104/fog/ consoleblank=0 rootfstype=ext4 storage=10.51.1.104:/images/ storageip=10.51.1.104 loglevel=4 mode=sysinfo
              imgfetch init_32.xz
              boot || goto MENU
              :bootme
              chain -ar https://10.51.1.104/fog/service/ipxe/boot.php##params ||
              goto MENU
              autoboot
              
              G 1 Reply Last reply Feb 19, 2020, 2:01 PM Reply Quote 0
              • G
                george1421 Moderator @Silv4n
                last edited by Feb 19, 2020, 2:01 PM

                @Silv4n The root of the issue is the main site uses https and the remote sites are using http.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                S 1 Reply Last reply Feb 19, 2020, 2:05 PM Reply Quote 0
                • S
                  Silv4n @george1421
                  last edited by Feb 19, 2020, 2:05 PM

                  @george1421 Ok, I’ve actually even tried to reinstall the storage node with https, but it gave me an error. Can I use a master node instead, which still uses the db etc. on the main server or should the storage work with https?

                  G 1 Reply Last reply Feb 19, 2020, 2:11 PM Reply Quote 0
                  • G
                    george1421 Moderator @Silv4n
                    last edited by Feb 19, 2020, 2:11 PM

                    @Silv4n This is an interesting problem. I think we will need to ping the @developers on this one. I’m pretty sure we can just copy over the apache stuff from the master node to the storage node to enable https, on the storage node. The issue is telling the storage node to use https in its scripting vs http.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    S 1 Reply Last reply Feb 19, 2020, 2:15 PM Reply Quote 0
                    • S
                      Silv4n @george1421
                      last edited by Feb 19, 2020, 2:15 PM

                      @george1421 I’m gonna assume, that I can’t just change the boot.php file from the remote site to use https, right?

                      G 1 Reply Last reply Feb 19, 2020, 2:18 PM Reply Quote 0
                      • G
                        george1421 Moderator @Silv4n
                        last edited by Feb 19, 2020, 2:18 PM

                        @Silv4n There is a setting some place where it defines which protocol to use. There is a text based config file in the fog www directory.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                        G 1 Reply Last reply Feb 19, 2020, 2:24 PM Reply Quote 0
                        • G
                          george1421 Moderator @george1421
                          last edited by george1421 Feb 19, 2020, 8:25 AM Feb 19, 2020, 2:24 PM

                          @george1421 It would be interesting if you copied over the apache certificates from the master node to the storage node as well as the apache configuration required to make the storage node https compatible. THEN in the storage node configuration there is a web url setting where we need to add in https.

                          This is just me thinking without any input from the developers.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                          S 2 Replies Last reply Feb 19, 2020, 2:27 PM Reply Quote 0
                          • S
                            Silv4n @george1421
                            last edited by Feb 19, 2020, 2:27 PM

                            @george1421 Hmm, okay thanks for your input, I guess I’ll wait till the devs can confirm this, before breaking the storage node or something, because the sync for example works without any issues.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Silv4n @george1421
                              last edited by Feb 19, 2020, 2:30 PM

                              @george1421 Nvm, I’m gonna try

                              G 1 Reply Last reply Feb 19, 2020, 2:31 PM Reply Quote 0
                              • G
                                george1421 Moderator @Silv4n
                                last edited by Feb 19, 2020, 2:31 PM

                                @Silv4n said in PXE Boot not working properly from Storage Node:

                                Nvm, I’m gonna try

                                That was my thought, it already doesn’t work. How bad could you make it?

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                S 1 Reply Last reply Feb 19, 2020, 2:49 PM Reply Quote 0
                                • S
                                  Silv4n @george1421
                                  last edited by Feb 19, 2020, 2:49 PM

                                  @george1421 I haven’t copied the certs over yet, because there were already certs on the server, but now this error appears in the apache log, I’m not sure if copying over solves that:
                                  http://prntscr.com/r4nmiu

                                  G 1 Reply Last reply Feb 19, 2020, 2:52 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @Silv4n
                                    last edited by george1421 Feb 19, 2020, 8:53 AM Feb 19, 2020, 2:52 PM

                                    @Silv4n Your link only contains an ugly picture of the US president in the ad. Please do scare me like that this early in the morning. I’m a USA citizen I see enough of that here…

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    S 1 Reply Last reply Feb 19, 2020, 2:55 PM Reply Quote 0
                                    • S
                                      Silv4n @george1421
                                      last edited by Feb 19, 2020, 2:55 PM

                                      @george1421 Based on cookies i guess ;), for me it shows the screenshot, but im gonna copy it here instead:

                                      [Wed Feb 19 15:43:44.859522 2020] [ssl:emerg] [pid 16345] AH02565: Certificate and private key 10.144.1.22:443:0 from /var/www/fog/management/other/ssl/srvpublic.crt and /opt/fog/snapins/ssl/.srvprivate.key do not match
                                      
                                      G 1 Reply Last reply Feb 19, 2020, 2:56 PM Reply Quote 0
                                      • G
                                        george1421 Moderator @Silv4n
                                        last edited by george1421 Feb 19, 2020, 8:57 AM Feb 19, 2020, 2:56 PM

                                        @Silv4n I would save those existing keys off to the side and then copy the keys over from the main fog server. This is not ‘technically’ the right way, but we just need to see it work right now.

                                        The right way would be to build new keys for the storage node using the root CA created on the master FOG node.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                        S 2 Replies Last reply Feb 19, 2020, 3:00 PM Reply Quote 0
                                        • S
                                          Silv4n @george1421
                                          last edited by Feb 19, 2020, 3:00 PM

                                          @george1421 Alright, I’m gonna test that tomorrow morning or tonight and than I’ll leave feedback here.

                                          1 Reply Last reply Reply Quote 1
                                          • S
                                            Silv4n @george1421
                                            last edited by Feb 20, 2020, 7:50 AM

                                            @george1421 Alright, I’ve copied over the

                                            /opt/fog/snapins/ssl/.srvprivate.key
                                            

                                            And the apache service started now and after a reinstall with HTTPS (which worked now without an issues) I can access the Web GUI of the Storage Node via HTTPS. It also generated a new boot file etc. However, the PXE Boot still throws the chainloading error, when trying to actually boot in to something. It also tries to connect there still with HTTP.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            1 / 2
                                            • First post
                                              13/33
                                              Last post

                                            161

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project