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

    Solved Booting to a Centos7 Image File

    Linux Problems
    2
    3
    156
    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.
    • M
      madnm last edited by madnm

      Hi all, I’ve been working on getting a working Centos Image file set up as a menu option on my fog server using this great guide by @george1421 but I seem to be running in to an issue pulling the image file down via TFTP. It attempts to load the file but times out as if it can’t reach it. The files are in the same directory as the rest of the files that are able to be copied via TFTP, but these ones dont work. I had thought it was a permission issue, and set the permissions to match the other files, but no luck.

      Here’s a copy of the config:

      kernel tftp://$[serverip]/os/centos/7/images/pxeboot/vmlinuz
      initrd tftp://$[serverip]/os/centos/7/images/pxeboot/initrd.img
      imgargs vmlinuz initrd=initrd.img root=live:nfs://$[serverip]:/images/os/centos/7/LiveOS/squashfs.img ip=dhcp inst.repo=nfs:$[serverip]:/images/os/centos/7 splash quiet
      boot || goto MENU

      Here is the path to the boot files, ftp / tftp directories are all set to the default:

      username@serverip:/images/os/centos/7/images/pxeboot$ pwd & ls
      [1] 23344
      /images/os/centos/7/images/pxeboot
      initrd.img TRANS.TBL vmlinuz

      Anyone have any ideas? Am I missing a setting somewhere. Let me know if more info is needed

      Thanks!

      george1421 1 Reply Last reply Reply Quote 0
      • M
        madnm @george1421 last edited by

        @george1421

        That was totally it! I was confusing myself with the /images directory for tftp. After changing the command to match the /tftpboot directory everything works perfectly. Thanks for your help!

        1 Reply Last reply Reply Quote 1
        • george1421
          george1421 Moderator @madnm last edited by

          @madnm said in Booting to a Centos7 Image File:

          kernel tftp://$[serverip]/os/centos/7/images/pxeboot/vmlinuz
          initrd tftp://$[serverip]/os/centos/7/images/pxeboot/initrd.img

          So you need to be aware of protocol document roots.
          For tftp its /tftpboot
          for nfs its /images
          for http its /var/www/html

          So what IPXE will do is download vmlinuz (kernel) and initrd.img (hard drive) over tftp so according to your ipxe command these files should exist in /tftpboot/os/centos/7/images/pxeboot/ on the fog server (confirm please).

          If they exist in that spot the tftpd program will send them to the target computer. The target computer will then boot them. Once the Centos kernel starts and mounts the initrd.img file it will connect over NFS to grab the squashfs which contains the centos installer files. Once the centos kernel starts then FOG and iPXE are out of the picture.

          So do you see vmlinuz get transferred just after iPXE banner is displayed? You have to have a quick eye to see both the kernel and initrd file get transferred. In the kernel parameters you can also add log=7 and as the centos kernel boots it will send out status messages so you can see its doing something.

          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!

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

          174
          Online

          10.4k
          Users

          16.4k
          Topics

          150.5k
          Posts

          Copyright © 2012-2023 FOG Project