openmediavault-pxe first version now available for testing

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • ryecoaaron wrote:

      Regular pxe allows you download over http...

      Source Code (5 lines)


      Hi Ryecoaaron,

      Thanks for correcting me on that. I had not played with loading files from http via tftp. I guess what I meant is that instead of placing the kernel and initrd files under tftp, I use tftp to chainload ipxe (undionly.kpxe intstead of pxelinux.0) and load the files from http. Sorry for the confusion. I should of been more clear about that.
      ShadowZero -- OMV Fan since 0.3
    • davidh2k wrote:

      Shadowzero, im very interested, especcially in the http download. The sub menu is not the problem, but implementing it in the plugin is the problem for me.

      Greetings
      David



      Hi David,

      Here some example settings I have from my PXE setup on another machine. What I did was break the menu into parts and include them where needed. 1st I made a config file that managed the colors, backround, etc..

      Source Code

      1. ​menu background /menu/test-splash.png
      2. menu color title * #FFFFFFFF *
      3. menu color border * #00000000 #00000000 none
      4. menu color sel * #ffffffff #76a1d0ff *
      5. menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff *
      6. menu color tabmsg * #ffffffff #00000000 *
      7. menu vshift 12
      8. menu hshift 13
      9. menu width 49
      10. menu margin 8
      11. menu rows 10
      12. menu tabmsgrow 16
      13. menu timeoutrow 17
      14. menu tabmsg Press ENTER to boot or TAB to edit a menu entry
      Display All

      I named this file stdmenu.cfg Next I made the menu config which is included from default.

      Source Code

      1. ​menu title My PXE Services
      2. include /menu/stdmenu.cfg
      3. menu begin Ubuntu
      4. label ubuntu
      5. menu title Install Ubuntu
      6. menu label ^Back..
      7. menu exit
      8. menu begin i386
      9. menu title Ubuntu i386 Options
      10. menu label ^Install i386
      11. include /menu/ubuntu-i386.cfg
      12. menu end
      13. menu begin amd64
      14. menu title Ubuntu amd64 Options
      15. menu label ^Install amd64
      16. include /menu/ubuntu-amd64.cfg
      17. menu end
      18. menu end
      19. menu begin Utilities
      20. label utilities
      21. menu title System-Utilities
      22. menu label ^Back..
      23. menu exit
      24. include /menu/memtest.cfg
      25. include /menu/windos.cfg
      26. include /menu/freedos.cfg
      27. menu end
      Display All

      Last I would create a new file for each item I wanted to add with the settings needed. Here is an example of Ubuntu 64 bit:

      Source Code

      1. ​default install
      2. label install
      3. menu label ^Install
      4. kernel /ubuntu-installer/amd64/linux
      5. append vga=normal initrd=/ubuntu-installer/amd64/initrd.gz -- quiet
      6. label cli
      7. menu label ^Command-line install
      8. kernel /ubuntu-installer/amd64/linux
      9. append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=normal initrd=/ubuntu-installer/amd64/initrd.gz -- quiet
      10. label expert
      11. menu label ^Expert install
      12. kernel /ubuntu-installer/amd64/linux
      13. append priority=low vga=normal initrd=/ubuntu-installer/amd64/initrd.gz --
      14. label cli-expert
      15. menu label Command-^line expert install
      16. kernel /ubuntu-installer/amd64/linux
      17. append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false priority=low vga=normal initrd=/ubuntu-installer/amd64/initrd.gz --
      18. label rescue
      19. menu label ^Rescue mode
      20. kernel /ubuntu-installer/amd64/linux
      21. append vga=normal initrd=/ubuntu-installer/amd64/initrd.gz rescue/enable=true -- quiet
      Display All

      Well I hope that helps a little if any. :) I will keep testing the plugin. I updated to the new one released. No problems sofar! :thumbup: Thanks again for your hard work on this plugin.
      ShadowZero -- OMV Fan since 0.3
    • Thank you. Could you show 1-2 screenshots of how it looks?

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • I'm thinking of a way on how we could have a centralized solution to offer pxe templates/images... Storage is not the problem, just how to package it and distribute it.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • I think I would start with a list of templates to consider. Maybe a poll of different distros for the community to decide what they would like to see. For example distros like Debian, Linux Mint, Ubuntu, Fedora, CentOS, etc. Next would be utilities such as memtest+86, gparted, sysrescuecd, clonezilla, etc. Then compile a list with pre-made templates. A user would then select from that list what they wish to add. Run a background job that will grab the necessary files needed and extract them. Copy the files needed to the tftp directory. Clean up the temporary files. The pre-made template will already have the correct paths and settings to boot from pxe. Add an option to include a custom install. The user will supply the needed settings just as the plugin works today but create a new template. Write it as a new file and include it into the menu as a custom option. It definitely sounds like a lot of work. I'll be happy to help make the pre-made templates and the file structure layout. My PHP coding on the other hand is a bit rusty. :whistling: I am sure I can help there too once I familiarize myself with developing plugins for OMV. Anyways, that's just my thoughts on how to approach this. I'll upload some screenshots soon. I'm in the process of integrating my settings from my old PXE server to the plugin. I'm looking forward on collaborating on this plugin. It will be fun to put this together and make it useful. :thumbsup:
      ShadowZero -- OMV Fan since 0.3
    • Shadowzero, lets start to collect the templates (the config part for the vesamenu) in the Wiki for now. What do you think is better, gathering them per software and then collect all variants (tfpt, http, smb, nfs) there or gather them per tftp, http, nfs and smb?

      I guess the first one is the better way.

      The image should be packaged as a .tar.gz file and should directly include the perfect folder structure as it will be used in the pxe folder. The folders for the images should respect x32 and x64 respectively. We can store them on the server which already host the OpenMediaVault demo.

      PS: Everything should be compatible with PXE and the config style should be vesamenu.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • @willri

      Yes.. I have used Sprinrite many times over the years to repair and or recover data on hard drives that were unreadable or unbootable due to corruption of some sort or bad sectors on the hard drive... It has been a life saver a few times... Several times I have had to come up with some creative ways to use it due to a system not having a CD/DVD drive and that could not boot from USB either.. That's why I wanted to find a way to PXE boot It as well as other great tools I use... And I have tested Sprinrite to make sure it boots over PXE and runs on my own system... Everything worked great...
    • davidh2k wrote:

      Shadowzero, lets start to collect the templates (the config part for the vesamenu) in the Wiki for now. What do you think is better, gathering them per software and then collect all variants (tfpt, http, smb, nfs) there or gather them per tftp, http, nfs and smb?

      I guess the first one is the better way.

      The image should be packaged as a .tar.gz file and should directly include the perfect folder structure as it will be used in the pxe folder. The folders for the images should respect x32 and x64 respectively. We can store them on the server which already host the OpenMediaVault demo.

      PS: Everything should be compatible with PXE and the config style should be vesamenu.

      Greetings
      David


      I agree David. Let's go with your 1st option. Let me know when you would like to get started and what you would like me to start with.
      ShadowZero -- OMV Fan since 0.3
    • For starters every pxe software you got setup with the correspondet kernel and system settings?

      Once my C1 finally runs i need to update my pxe files, than i can create some prepackaged pxe files, you can prep some too, just need to figure out a way to allow you to upload them.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Nice work David.
      Started working with this yesterday, the PXE plugin works well and I was able to boot various items.

      I have an issue with the dnsmasq plugin that when it is enabled I loose connection to the outside world. I did see that this was a known issue with this plugin and it was going to be looked at. Is there a way to enable the plugin and not loose connection?
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • shadowzero wrote:

      I can also post them to Google Drive or MS One Drive and share them with you that way if that works for you.


      Can I wget that location? If so, yes thats awesome then.

      shadowzero wrote:

      In the meantime I will start creating tar.gz files to get ready to send to you.


      :) Awesome

      jhmiller wrote:

      Nice work David.
      Started working with this yesterday, the PXE plugin works well and I was able to boot various items.


      Thank you. If I would have better knowledge/documentation/introduction to all the plugin stuff I could implement even more :(

      jhmiller wrote:

      I have an issue with the dnsmasq plugin that when it is enabled I loose connection to the outside world. I did see that this was a known issue with this plugin and it was going to be looked at. Is there a way to enable the plugin and not loose connection?


      Get on Threema... :P

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • I run the pxe server with my router. I'll check later tonite if is possible to "Forward" the pxe request to another server in this case to omv. This would avoid running dnsmasq
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server

      The post was edited 1 time, last by subzero79 ().

    • Ok... I have found out from experience that PXE booting most Live Linux CD/DVD's the Memdisk way is not the way to go... Unless the ISO image is small... The Memdisk method takes to long to load the ISO image and then it requires more than twice the amount of ram that it would take to boot the actual CD/DVD or boot via a Live USB... Live ISO images of things like DBAN, Parted Magic, Puppy Linux, SpinRite, Windows WinPE repair Disc, etc, etc, are fine due the small size of the ISO's... So unless the system your are PXE Booting with has loads of memory, or the ISO images you want to boot are fairly small, booting via memdisk is not a good solution...
    • We will try to offer multiple booting methods, not just TFTP Boot.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Example entry in the wiki for gparted:

      wiki.openmediavault.org/index.…Templates/GParted#GParted

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • If your running openwrt you can indicate the dhcp boot server to redirect to.

      uci set dhcp.@dnsmasq[0].dhcp_boot=pxelinux.0,,10.10.10.12
      uci commit
      /etc/init.d/dnsmasq restart

      [IMG:http://i.imgur.com/0Z1yNMf.png]

      [IMG:http://i.imgur.com/8YtyNmsl.jpg]


      For tomato i'll have to take a look at my old router

      edit: This are the txt entries
      Clonezilla

      Source Code

      1. kernel clonezilla/vmlinuz
      2. Append initrd=clonezilla/initrd.img boot=live config noswap edd=on nomodeset vga=788 nosplash noprompt union=aufs netboot=nfs nfsroot=10.10.10.12:/export/tftp/clonezilla


      SystemRescueCD

      Source Code

      1. Systemrescuecd
      2. kernel systemrescuecd/rescue64
      3. Append initrd=systemrescuecd/initram.igz nfsboot=10.10.10.12:/export/tftp/systemrescuecd


      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server

      The post was edited 1 time, last by subzero79 ().

    • David,

      I'm cleaning up my pxe environment to bring it more up to date. I had some entries that were outdated. I'm also testing them out to make sure all the paths are correct. I should be done in a few days. I'll message back in when it's ready. I'll also check to see if you can grab the files from my google drive using wget. From what I read it is possible. I just need to iron it out to make sure the link will work so you will be able to download it
      ShadowZero -- OMV Fan since 0.3