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

    Imaging with iso files with FOG 1.5.5

    Scheduled Pinned Locked Moved
    General Problems
    3
    5
    1.7k
    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.
    • G
      GrandIQ
      last edited by

      Hello everyone, early apology if I come across as extremely novice, but I just started to pick up on Linux and iPXE. Currently I have been able to create a virtual machine, install windows 7 on it from an iso and back it up as an image with FOG, then successfully redeployed onto another virtual machine without any problems. My current objective is to edit the pxe menu boot (In which I did with the FOG Configuration Settings) and boot an .iso file that is stored on the server (http://${fog-ip}/fog/images/win7.iso). I have attempted to use different commands and watched several videos online but I can’t seem to get a grasp of what I am doing wrong or where to actually begin. Any help is appreciated,

      Thank you!

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        I have a tutorial here that describes netbooting: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images

        What does your parameters field look like for this iso image in the Fog ipxe menu configuration. If you are using memdisk then that is only for bios computers. You can’t boot a uefi system using memdisk.

        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 1
        • G
          GrandIQ
          last edited by

          Hello @george1421, this is what I currently have under parameters:

          kernel http://${fog-ip}/fog/images/wimboot
          initrd http://${fog-ip}/fog/images/win7/boot/bcd
          initrd http://${fog-ip}/fog/images/win7/boot/boot.sdi
          initrd http://${fog-ip}/fog/images/win7/sources/boot.wim
          boot
          

          When I run this, it says OK after each one but then I get a black screen with a blinking cursor.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @GrandIQ
            last edited by george1421

            @GrandIQ You need to add some modifiers in your initrd lines. This is what I have from my tutorial.

            set tftp-path tftp://${fog-ip}
            set pe-path ${tftp-path}/os/winpe
            kernel ${tftp-path}/wimboot gui
            imgfetch --name BCD ${pe-path}/BCD BCD
            imgfetch --name boot.sdi ${pe-path}/boot.sdi boot.sdi
            imgfetch --name boot.wim ${pe-path}/boot.wim boot.wim
            boot || goto MENU
            

            You can use imgfetch and initrd interchangeably.

            You need the -name BCD for uefi systems and the suffix like BCD for bios systems. My example uses tftp but you can use http or nfs protocols. They all work, you just need to be aware of the protocol base path.

            I can also give you a recommendation to move your boot images out of the FOG code directory. Make a new directory under /var/www/html called images or img and place your pxe boot files there.

            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
              Sebastian Roth Moderator
              last edited by

              @george1421 Mixing up TFTP and HTTP URL here? Might be confusing.

              @GrandIQ said:

              ... http://${fog-ip}/fog/images/...
              

              Please make sure those URLs really work! Simply open them in your web browser and see if it would start the download. I fear it doesn’t because we have some URL rewriting in FOG active for the API backend to work. You probably need to move your images to a different folder further up, like /var/www/html/images/win7/... (URLs: http://${fog-ip}/images/win7/...).

              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

              211

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project