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

    Fog image choice with USB

    Scheduled Pinned Locked Moved
    Tutorials
    3
    19
    6.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.
    • Jaymes DriverJ
      Jaymes Driver Developer
      last edited by

      You can look into gPXE, you can set it up so the disc looks for your FOG server information, I used it as a troubleshooting step when trying to find the issue with my network.

      There are USB bootable version of gPXE so you can give that a shot if you want. However, I may be misunderstanding you. This will allow you a USB bootable to FIND your FOG server already set up.

      If what you are asking is for a “mobile” FOG server on a USB drive, unfortunately I have no suggestions for you, I have not looked into this.

      1 Reply Last reply Reply Quote 0
      • V
        Valden
        last edited by

        It’s for a school project, the task comes from my teacher, he wants that I find a way to boot or deploy an image on the server with an USB boot

        I may have found a way. I put syslinux on my USB key, and I copied the /tftpboot/fog repertory to the root of the key. I put the file pxelinux.cfg/default to the USB key root and I rename it syslinux.cfg. Then i can boot a file on the key but, I can’t boot a file on the fog server yet, here is an example of my default file on the USB key:

        [CODE]DEFAULT fog.memtest
        LABEL fog.memtest
        kernel fog/kernel/memdisk
        append iso initrd=memtest/memtest.iso ip=dhcp dns=10.7.112.15 ftp=10.7.112.55 storage=10.7.112.55:/images/ web=10.7.112.55/fog/
        [/CODE]

        How can I boot a file on the server with the menu on my USB key

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          You’ll have to manually set this up.

          What I mean is you’ll need to, probably, create a script on the key to setup the storage, type,

          Maybe follow a similar process for the Menu so you can just make a choice of upload/download etc… The FOG GUI will not be of help here, so you’ll always have to boot to a specific menu option. The GUI will only be useful in the creation of the Task so this works properly. It will also only be useful for the management of the images.

          Something along the lines of:
          [code]
          LABEL fog.upload
          kernel fog/kernel/bzImage
          APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 mac=00:1e:ec:e3:dd:1b ftp=10.0.7.1 storage=10.0.7.1:/data/fogstorage/images/dev/ storageip=10.0.7.1 web=10.0.7.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll chkdsk=0 img=win7activatedsysprepgen imgType=n imgid=6 PIGZ_COMP=-9 hostname=testname pct=5 ignorepg=1 type=up
          MENU LABEL Image Upload
          TEXT HELP
          Upload Image to server.
          ENDTEXT
          LABEL fog.download
          kernel fog/kernel/bzImage
          APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 mac=00:1e:ec:e3:dd:1b ftp=10.0.7.1 storage=10.0.7.1:/data/fogstorage/images/dev/ storageip=10.0.7.1 web=10.0.7.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll chkdsk=0 img=win7activatedsysprepgen imgType=n imgid=6 PIGZ_COMP=-9 hostname=testname pct=5 ignorepg=1 type=down
          MENU LABEL Image Download
          TEXT HELP
          Download image from Server to host.
          ENDTEXT
          [/code]

          Change all the IP’s to there respective values:
          dns
          ftp
          storage
          storageip
          web

          Change the hostname to what you want the hostname to be.

          Change the imageName to what you want it to be.

          Change the imgType to:

          n = single disk resizable
          mps = multipart single disk non-resizable
          mpa = multipart all disk non-resizable
          dd = raw.

          Make sure the imgid matches that of a valid image.
          Make sure the img matches the name of a valid image.

          Change the MAC address to that of your client to be imaged.

          It’s not pretty, but it is doable.

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          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
          • V
            Valden
            last edited by

            Thank you it works :D, but how can I do for an iso file ?

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              You’ll have to have the ISO file available on the usb key.

              To work it properly you could create a menu entry like:
              [code]DEFAULT fog.memtest
              LABEL fog.win7
              kernel fog/kernel/memdisk
              append iso initrd=win7.iso raw
              MENU LABEL Windows 7
              TEXT HELP
              Boot the Windows 7 ISO from this menu. Needs lots of RAM and time behind to wait for Please Press any key to boot from…
              ENDTEXT
              [/code]

              Of course add as many entries as needed and change the files as needed. the initrd will need the actual location. Just like the kernel is calling. So if you place the ISO in fog/win7.iso your initrd command will be: initrd=fog/win7.iso

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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
              • Jaymes DriverJ
                Jaymes Driver Developer
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • V
                  Valden
                  last edited by

                  Does it works only on the usb key ? Is it possible to put a network path to the initrd ?

                  1 Reply Last reply Reply Quote 0
                  • Jaymes DriverJ
                    Jaymes Driver Developer
                    last edited by

                    [quote=“Valden, post: 22694, member: 21858”]Does it works only on the usb key ? Is it possible to put a network path to the initrd ?[/quote]

                    only one way to find out!

                    It depends on your network, if it is ANYTHING like my network (I work in education), it will be troublesome. We make every user authenticate, if you do not authenticate you only get public rights. So you need to understand your network environment.

                    From what I gather you are a student correct? I do not allow my students open space to store files and information on my server… you will need to check with your local IT department to find a place to put your files for access, possibly even create a special user and password.

                    THAT BEING SAID. I have written scripts in the past to authenticate to a network storage drive on windows, so the task is possible, it’s just a matter of learning to write a script that can authenticate itself to a user, whose home directory is the storage space of the iso image.

                    I would use something like
                    [code]
                    append iso initrd=10.x.x.x/path/to/FILENAME.iso
                    [/code]

                    where 10.x.x.x is the IP address of the server, you may have to syntax it another way to get it to see the server too, this is only an example, and not a working one.

                    1 Reply Last reply Reply Quote 0
                    • V
                      Valden
                      last edited by

                      It’s just for a school research project, I don’t use the university servers. I’ve made a virtual machine for my fog server and I have a phisical computer for the USB boot. I had already set up a fog server, but that was without that USB system as my teacher wants.
                      And for the kernel line ? Is there differents kinds of kernel ? because I saw memdisk vmlinuz …

                      Sorry for my english, I’m french

                      1 Reply Last reply Reply Quote 0
                      • Jaymes DriverJ
                        Jaymes Driver Developer
                        last edited by

                        vmlinuz is just an “executable” of the linux kernel, for lack of a better way to describe it.

                        In that case, give it a go! Since you aren’t needing anything specific from the IT department, and everything is housed on machines you manage, set up a shared space, save your image there and find the right syntax to get it to load via the “USB FOG Server”.

                        1 Reply Last reply Reply Quote 0
                        • V
                          Valden
                          last edited by

                          Thanks you very much for the help !

                          For the OS deployment the the problem is solved. But for iso file, my path /tftboot/ has already all permissions, Should I configure a samba shared space?

                          But I don’t understand one thing, I can deploy OS without problemes, therefore I wonder why I can’t do the same with iso files ? I think I miss something…

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            I’m glad we could be of some help but I would think it would work better to boot the ISO off of the USB as during the initial load you don’t have access to the network so loading items from the network would be impossible. I don’t even think pxe can load the ISO from a network location.

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              The reason fog works is it’s already loaded the networking and is its own system before fog loads. During initial load though, it’s loading directly off of the USB.

                              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              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
                              • V
                                Valden
                                last edited by

                                Do you think, that is possible to download the usb image directly into the ram with tftp ?

                                1 Reply Last reply Reply Quote 0
                                • Jaymes DriverJ
                                  Jaymes Driver Developer
                                  last edited by

                                  [quote=“Valden, post: 22881, member: 21858”]Do you think, that is possible to download the usb image directly into the ram with tftp ?[/quote]

                                  It may be possible to load with tftp, but you have to make sure that enough ram is available for the image though…

                                  FOG isn’t designed to handle ISO image files.

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

                                  164

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project