need help to serve http files to boot PXE

    • need help to serve http files to boot PXE

      I have installed OMV PXE server and works fine for distros that only need kernel and/or ramdisk, but some distros need to load some files by http like systemrescueCD (or by NFS but this is for other post)

      I have this:

      Source Code

      1. MENU LABEL ^SystemRescueCD x86 CLI
      2. KERNEL er/plugins/sysrescue/rescue32
      3. INITRD er/plugins/sysrescue/initram.igz
      4. APPEND dodhcp netboot=http://192.168.1.17/er/sysrescue/sysrcd.dat setkmap=es ramdisk_size=500000


      and fail when try to access to 192.168.1.17/er/sysrescue/sysrcd.dat

      of course file sysrcd.dat exist on /er/sysrescue/ and 192.168.1.17 is my PXE server that boot in PXE folder

      PD: File structure is PXE/er/sysrescue/sysrcd.dat

      so my question is :

      How to configure Apache to serve files or perhaps I need to install WebPage Pluging and point to PXE folder?.

      Please any help must be really apreciated.


      some test from shell that do not work:

      Source Code

      1. root@RNAS:/tmp# wget http://192.168.1.17/er.remap
      2. --2014-01-09 20:54:16-- http://192.168.1.17/er.remap
      3. Connecting to 192.168.1.17:80... conectado.
      4. Petición HTTP enviada, esperando respuesta... 404 Not Found
      5. 2014-01-09 20:54:16 ERROR 404: Not Found.
      6. root@RNAS:/tmp# wget http://192.168.1.17/media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe/er.remap
      7. --2014-01-09 20:56:17-- http://192.168.1.17/media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe/er.remap
      8. Connecting to 192.168.1.17:80... conectado.
      9. Petición HTTP enviada, esperando respuesta... 404 Not Found
      10. 2014-01-09 20:56:17 ERROR 404: Not Found.
      11. root@RNAS:/tmp# cd /media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe
      12. root@RNAS:/media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe# ls -l
      13. total 464
      14. drwxr-sr-x 3 raulfg users 118 ene 6 10:59 bin
      15. drwxr-sr-x 3 raulfg users 21 ene 6 10:59 boot
      16. -rwxr--r-- 1 raulfg users 1131 sep 28 21:07 CHANGELOG
      17. -rwxr--r-- 1 raulfg users 524 sep 28 21:07 CREDITS
      18. drwxr-sr-x 3 raulfg users 100 ene 6 11:00 doc
      19. drwxr-sr-x 9 raulfg users 81 ene 7 21:48 er
      20. -rwxr--r-- 1 raulfg users 203 sep 28 21:07 erpxe.remap
      Display All
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • Re: need help to serve http files to boot PXE

      I am using systemrescuecd over pxe just fine with nfs and http. When you boot over nfs, the nfs share is mounted letting you backup files to it very easily.

      default.cfg

      Source Code

      1. LABEL rescue32
      2. MENU LABEL SystemRescueCD 32 bit (HTTP)
      3. LINUX sysrescd/rescue32
      4. INITRD sysrescd/initram.igz
      5. APPEND nomodeset netboot=http://192.168.1.34/sysrcd.dat setkmap=us
      6. LABEL rescue32_nfs
      7. MENU LABEL SystemRescueCD 32 bit (NFS)
      8. LINUX sysrescd/rescue32
      9. INITRD sysrescd/initram.igz
      10. APPEND nomodeset nfsboot=192.168.1.34:/export/nfs setkmap=us
      11. LABEL rescue64_nfs
      12. MENU LABEL SystemRescueCD 64 bit (NFS)
      13. LINUX sysrescd/rescue64
      14. INITRD sysrescd/initram.igz
      15. APPEND nomodeset nfsboot=192.168.1.34:/export/nfs setkmap=us
      Display All


      Then I put sysrcd.dat and sysrcd.md5 in the shared folder selected in the nfs share. For http, I put the same two files in /var/www/openmediavault/. In the tftp share, I have the following files:
      altker32 altker64 initram.igz rescue32 rescue64

      Works great.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: need help to serve http files to boot PXE

      thanks a lot a test you trick for HTTP and works fine.

      some more question:
      1- It's possible to do a simlynk to my PXE folder to have all data in the same data disk (in the same folder PXE).

      eg: my full path to PXE Data is: /media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe/shares ( In shares I have a folder named sysrcd that contain sysrcd.dat and sysrcd.md5
      so my idea is to do a

      Source Code

      1. ln -s /var/www/openmediavault/shares /media/3e48b488-4c68-4856-8795-41d6d9f2d0ae/Datos/pxe/shares

      if work my append line looks like:

      Source Code

      1. APPEND nomodeset netboot=http://192.168.1.17/shares/sysrcd/sysrcd.dat setkmap=us


      Do you think that works?
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • Re: need help to serve http files to boot PXE

      http works fine when I did the following:

      Source Code

      1. ln -s /media/long_uuid/nfs/sysrcd.md5 /var/www/openmediavault/
      2. ln -s /media/long_uuid/nfs/sysrcd.dat /var/www/openmediavault/


      By the way, you can put password=openmediavault on the end of the append line if you want to set the root password.
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: need help to serve http files to boot PXE

      Thanks a lot you teach me very well.

      and ln works for me.
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife