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

    Have some problems with dban

    Scheduled Pinned Locked Moved
    General
    2
    16
    3.1k
    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.
    • L
      loktar
      last edited by

      Hello,

      I have gotten fog to work both imageing and deploying images. Main system works great tftp included.

      However I do have some problems getting dban to work with ipxe. I have folllowed the guides here:
      https://wiki.fogproject.org/wiki/index.php/Include_any_ISO_in_the_FOG_Bootmenu#Other_Parameter_Options
      https://forums.fogproject.org/topic/10786/dban-fog-boot-menu

      It does not seem my problem is listed among others, so I guess its becouse of my poor linux skills(still learning). Keep in mind all the info below are after all guides above.

      atm I have
      ubuntu-16.04.3-desktop-amd64 distro
      fog is running at: 1.4.4

      So to the problem at hand, it seems when I boot dban in ipxe it seems to loop back into the ipxe menu. I managed to pause it right before it boots back in and it says that it dban.iso boots “ok” then resets back into the ipxe menu.

      I run the fog server as a DHCP server.

      When i try to reach x.x.x.x/dban it reroute backinto x.x.x.x/fog/management

      However when DHCP is disabled I can access x.x.x.x/dban fine, also localhost/dban works.

      I have struggeled with this for several hours, and a helping hand would be very much appricated.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @loktar Is this machine set to UEFI or legacy BIOS? DBAN is not working on UEFI machines.

        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

        1 Reply Last reply Reply Quote 0
        • L
          loktar
          last edited by

          @Sebastian-Roth its set to legacy.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @loktar Then please post the exact iPXE config you use to boot that DBAN iso…

            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

            L 1 Reply Last reply Reply Quote 0
            • L
              loktar @Sebastian Roth
              last edited by

              @sebastian-roth
              I have tried to mount the image both to /var/www/html/dban and /var/www/dban

              Menu item: DBAN
              Parameters: :DBAN kernel ${boot_url}/dban/dban.bzi nuke=“dwipe --autonuke” silent vga=785 boot

              this is the files located x.x.x.x/dban/
              about.txt
              dban.bzi
              isolinux.bin
              isolinux.cat
              isolinux.cfg
              quick.txt
              raid.txt
              warning.txt

              downloaded : http://downloads.sourceforge.net/project/dban/dban/dban-2.3.0/dban-2.3.0_i586.iso

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @loktar Parameters should be as seen in the forums thread you initially posted:

                kernel http://${fog-ip}/dban/dban.bzi nuke="dwipe --autonuke --method quick" silent vga=785
                boot || goto MENU
                

                or

                kernel ${boot-url}/dban/dban.bzi nuke="dwipe --autonuke --method quick" silent vga=785
                boot || goto MENU
                

                Don’t mount in /var/www/html/dban but use /var/www/dban instead!

                Have you double checked the hashsum after downloading the ISO file? Maybe the download was canceled.

                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

                L 1 Reply Last reply Reply Quote 0
                • L
                  loktar @Sebastian Roth
                  last edited by loktar

                  @sebastian-roth This is what happens everythime I run the paramater.0_1507221873518_1.png
                  Tried both settings and checked hash, hash is correct. I feel there is something strange happening, becouse after running dban… as seen above it just boot right back into:
                  0_1507221934012_2.png
                  I have no idea why. Its probably something obvious I missed somewhere, but I cant find out where or what it is.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @loktar So can you download that file when you open the URL http://192.168.20.2/fog/dban/dban.bzi ??
                    And what that URL. The parameters I posted say: http://${fog-ip}/dban/dban.bzi. Please post a picture of your iPXE menu settings for this entry. I kind of feel that you have something missing there. You see those commands I posted are not in one line but it’s actually two lines of code!!

                    kernel ....
                    boot ...
                    

                    It wouldn’t work if you have:

                    kernel .... boot
                    

                    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

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      loktar @Sebastian Roth
                      last edited by

                      @sebastian-roth
                      Please see: https://pastebin.com/LFzQhtwB its the complete ipxe.
                      I cannot download the file, it just redirect me to x.x.x.x/fog/management immediately.

                      I got a new error now.
                      0_1507225900082_3.png

                      This is the pic for iPXE meny settings:
                      0_1507226141024_4.png

                      I really appriciate you helping me. Thanks alot!

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth

                        @loktar Well, you now have used ${fog+ip} instead of ${fog-ip}…

                        No idea where you got that from.

                        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

                        L 1 Reply Last reply Reply Quote 1
                        • L
                          loktar @Sebastian Roth
                          last edited by

                          @sebastian-roth
                          I tried a few things just before I sent you. I am sorry for that typo, fixed now. The error is stille the same though.

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @loktar Well then we need the big hammer to figure out what’s wrong here. Please boot up the client to the menu and move the cursor to the dban entry but don’t hit ENTER yet.
                            Go to your FOG server, open a terminal/SSH connection and run the following commands:

                            sudo apt-get install tcpdump
                            sudo tcpdump -w /tmp/dban.pcap host x.x.x.x
                            

                            Replace x.x.x.x with the client IP address! The tcpdump command will print one line and then just sit there waiting. Now hit ENTER on the client to try and boot into DBAN. When you get back to the menu just stop tcpdump (Ctrl+C), upload that file /tmp/dban.pcap to your dropbox/google drive and post a link here.

                            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

                            L 1 Reply Last reply Reply Quote 0
                            • L
                              loktar @Sebastian Roth
                              last edited by

                              @sebastian-roth

                              https://drive.google.com/file/d/0ByTppd8dSXJPaEp4R0JBZmU0Qjg/view?usp=sharing

                              Here is the file.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @loktar The PCAP tells us what’s wrong:

                                GET /dban/dban.bzi HTTP/1.1
                                Connection: keep-alive
                                User-Agent: iPXE/1.0.0+ (64865)
                                Host: 192.168.20.2
                                
                                HTTP/1.1 302 Found
                                Date: Fri, 06 Oct 2017 07:16:32 GMT
                                Server: Apache/2.4.27 (Ubuntu)
                                Location: http://192.168.20.2/fog/management/index.php
                                

                                Not sure if you can “read” HTTP header information. The first block is the client request from your PC. and the second block is the answer. Well, it does redirect the client to the web UI management interface. This is most probably happening because you have the ISO mounted in the “wrong” place. Please run the command mount on your FOG server and post output here.

                                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

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  loktar @Sebastian Roth
                                  last edited by loktar

                                  @sebastian-roth
                                  0_1507305261011_5.png
                                  Sorry for the late reply, here is the mount.

                                  edit: It worked now, I reinstalled Ubuntu and fog and followed all the tips/steps you have given me and now it works!

                                  I still cannot list x.x.x.x/dban For some reason. It still redirects.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    @loktar said in Have some problems with dban:

                                    I still cannot list x.x.x.x/dban For some reason. It still redirects.

                                    That’s ok. Just the way our redirecting works right now. It’s on my list to fix but … can’t do it all at once. But you should be able to access the file through URL directly. Just no directory listing possible!

                                    Great you got it working now. Marking this solved.

                                    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

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post

                                    222

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project