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

NFS loads fine; HTTP draws a blank screen

Scheduled Pinned Locked Moved
General
2
3
164
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.
  • Y
    yuma
    last edited by yuma Jun 23, 2021, 9:24 AM Jun 23, 2021, 3:05 PM

    I have managed to launch many iso, images etc. by extracting their kernel (vmlinuz), ramdisk(s) (initrd.gz) and, if needed, filesystem (fs.squashfs), etc. and then load them over NFS. (NFS is good but seems slower.) However when I then change their Fog configuration to load over HTTP, the files load faster but it never boots.
    Thus I suspect the Apache configuration is causing this issue.
    I have added an alias and opened the directory.
    [in a http config file]:

    ...
        alias /images/ /images/
        <DirectoryMatch /images/>
    	Require all granted
    	Order allow,deny
    	Allow from all
    	Options Indexes FollowSymLinks
        </DirectoryMatch>
    ...
    

    To allow access to the /images directory - where the extracted iso files are stored. Is this the correct way to serve over http?
    If the Apache config is correct, perhaps I have missed a setting elsewhere. Can someone point me in the right direction? And give me the code, if any, to allow http serving.

    PS. Here is one of my Fog config files:

    set http http://${fog-ip}/${fog-webroot}
    set nfs nfs://${fog-ip}/images
    set tftp tftp://${fog-ip}/images
    ...
    
    :freeDOS1.3
    kernel	memdisk iso
    initrd	${nfs}/memdisk/iso/FD13LIVE.ISO
    boot
    goto MENU
    
    :defPM
    set root ${http}/pmagic/pxe
    set nroot ${nfs}/pmagic/pxe
    kernel	${nroot}/bzImage64
    imgargs root=/dev/nfs netboot=nfs nfsroot=${fog-ip}:/images/pmagic/contents/pmagic
    initrd	${nroot}/initrd.img
    initrd	${nroot}/files.cgz
    initrd	${nroot}/fu.img
    initrd	${nroot}/m64.img
    boot || read void
    goto MENU
    ...
    
    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Jun 23, 2021, 3:50 PM

      @yuma Thanks! Moved to tutorials section of the forum.

      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
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Jun 25, 2021, 10:49 AM Jun 25, 2021, 4:48 PM

        @yuma Misunderstood this as being a tutorial on how to set this up. Somehow missed your question. So moving this topic back to general questions now.

        Anyone able to help here? I don’t do much ISO booting stuff.

        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
        1 / 1
        • First post
          3/3
          Last post

        200

        Online

        12.1k

        Users

        17.3k

        Topics

        155.4k

        Posts
        Copyright © 2012-2024 FOG Project