Setting up an UEFI PXE server on Linux (Part 1)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 120

  • @alsetema
    @alsetema  3 года назад +7

    I finally made part 2!
    ruclips.net/video/Sa_7AA9w06o/видео.html

    • @lambogini6975
      @lambogini6975 2 года назад

      hey..can help me on my project im working on??it does pays well tho..if u could helps me with it..

    • @lambogini6975
      @lambogini6975 2 года назад

      i cant study if this current problem still presist...its been on and on for almost 5-6 years already

  • @razzawazza
    @razzawazza 4 года назад +17

    You should keep making tutorials! This was very enjoyable to watch and very helpful. Cheers :D

  • @AdmV0rl0n
    @AdmV0rl0n 3 года назад +8

    I liked the video. I've made PXEboot servers before, mostly none UEFI or rather legacy modes. Your video was quite helpful in many ways. The one thing about PXE boot is that most videos show a method, but often this method isn't very global. A lot of funk starts to show up when you try to build a PXE server that can do a host of different OSs and each one can often have its own gotcha's.
    Good video, thanks for making it!

  • @ProliantLife
    @ProliantLife Год назад

    The moment you made the terminal text larger I subbed. Only guy I've seen do that ❤️

  • @Doesntcompute2k
    @Doesntcompute2k 3 года назад

    Just found this video today! Excellent work, examples, and pace. I enjoyed your presentation. I am trying to stabilize a PXE/tftpboot server to load Windows/UNIX/Linux/routers/switches and getting "it all right" on one node with all of my VLANS is an effort. Examples like this helps greatly!

  • @grouchitiger
    @grouchitiger Год назад +1

    This has been so incredibly helpful. I do get a pop up stating "Detect and mount installation media" requesting other drivers. Not sure If I'm the only one who experienced this?

  • @MRLeMONa1D
    @MRLeMONa1D Год назад +1

    I did everything according to the video but get an error loading Debian which states “no such file or directory” what should I do?

  • @basavarajchougala3384
    @basavarajchougala3384 3 года назад +1

    Dear Sir,
    Thank you for your Good Video and neat and clearly explanation about how PXE configuration does......

  • @trumanbeal5668
    @trumanbeal5668 2 года назад

    I remember doing something similar with freebsd 4.4 in the early 2k's, and how cool that was :) It's such a time saver, too

  • @fatehsinghparab1778
    @fatehsinghparab1778 3 года назад +3

    I followed exactly your step I encountered no error. But when a attempted network boot on another after line "tftp://192.168.0.172/syslinux.efi...ok" nothing happens after that

  • @LordXelous
    @LordXelous 3 года назад +1

    Nice tutorial, though you had me cringe at the 3:02 mark... /usr isn't user... it's "Universal System Resources" :)
    Keep up the good work though, like this a lot!

  • @jonnypeace2810
    @jonnypeace2810 2 года назад

    Awesome, never seen this before and only just read about it recently. Great tutorial 👌

  • @fotografm
    @fotografm Год назад

    Beautiful and easy to follow. Please make more tutorials !

  • @thepigeongod2526
    @thepigeongod2526 3 года назад +1

    Really nice video. Thanks for making this, keep up the work. ^-^

  • @tubejim101
    @tubejim101 4 года назад +2

    Great video. Thanks for making it. Going to try and bring up a pxe boot server in docker. If you beat me to it, please make a video :)

  • @fischeye82
    @fischeye82 3 года назад

    Thank you for this very helpful video. Worked perfect with my pfsense.

    • @jbonn5365
      @jbonn5365 2 года назад

      Dumb question maybe... but with pfsense, what did you use as the default bios name? Is it ldlinux.e64?

  • @OneGearMode
    @OneGearMode 3 года назад

    thank you so very much, great tutorial, easy to follow! have a good day!

  • @davidunderwood9037
    @davidunderwood9037 3 года назад +1

    Can this be done in a ProxMox virtual machine with the dhcp server on a separate VM in same ProxMox server , so when starting the client, it boots straight to the PXE boot and loads up the desktop? I think it can but please provide tutorial. Tnx

    • @alsetema
      @alsetema  3 года назад +2

      Yes! It can be done, in fact, trying to solve that issue is what prompted me to do this video. Unfortunately I do not have the time to make tutorials anymore :( but good luck!

  • @fusedglass01
    @fusedglass01 4 года назад +1

    Good Video. I just did similar with Ubuntu. Only to find that my dell r610 servers raid card driver wasn't in the installed OS, but was in the netboot image, took a long time to figure that one out. Inserted a usb stick and targeted that for the OS install as a workaround, till I can generate a new initrd.gz file.

    • @alsetema
      @alsetema  4 года назад

      Ouch! Perhaps its a good idea to try with another, more server friendly OS (perhaps centos?) Maybe you can spare yourself some time, cheers, and good luck!

  • @RonLaws
    @RonLaws Месяц назад

    Google: 64bit UEFI PXE boot doesn't exist, it can't hurt you
    This video: -

  • @davehouser1
    @davehouser1 3 года назад +1

    Thank you for the video, I could not get the PXE menu to load for EFI systems. Now it does.
    However, I am trying to use a RHEL 7.9 image, vmlinuz will load, but initrd.img will just hang, and the the server will just power off. I cant figure out a way around this, any tips?
    EDIT: So after more trouble shooting, I found the initrd.img upload via tftp will slowly degrade the speed to nothing. Eventually this will load, but after 10 min....
    What version of syslinux are you running?
    EDIT: I figured it out. Trick is don't use TFTP to transfer any files, use http. You can adjust your pxelinux.cfg/default to push the bootloader and initrd.img via a web address.

  • @grishmapatel6074
    @grishmapatel6074 3 года назад

    We should say, thanks for making the video

  • @mattdlr847
    @mattdlr847 2 года назад

    Thanks, but it would be helpful to use minimal contrasting colors and no transparency on your terminal window. Helpful for those with vision issues.

  • @manit77
    @manit77 2 года назад +1

    Your video is very good. Do you have a video on your OS setup?

  • @stephankramer7624
    @stephankramer7624 2 года назад

    Awesome Tutorial! Thank you very much!

  • @1jbegic
    @1jbegic Год назад

    Followed this example and got "PXE-E16: No valid offer recived" Any idea what could cause it?

  • @ggkkskmom
    @ggkkskmom 2 месяца назад

    se puede botear po bios y efi, es decir unas maquinas que entren por bios y otras por efi? hay alguna documentacion al respecto?

  • @MassimoFantinato
    @MassimoFantinato 3 года назад

    Hope at the end you will do the http booting tutorial. Thanks for your work btw.

    • @alsetema
      @alsetema  3 года назад

      I finally made it :) ruclips.net/video/Sa_7AA9w06o/видео.html

  • @Arokhantos
    @Arokhantos 2 года назад

    I finaly managed to run pxe server in such way it provide boot files for both efi and legacy at same time, kinda wanna learn make docker container now to do everything next but i wanna make my own container rather then use one from some one else

  • @tonypigott3734
    @tonypigott3734 3 года назад

    I really enjoyed this video. Well done. I have a question: Is it possible to boot from an SSD connected directly to the USB port of a router?

    • @alsetema
      @alsetema  3 года назад

      This should be possible, but it will depend on the firmware of your router (and whether it can support tftp/http/nfs on that share)

    • @tonypigott3734
      @tonypigott3734 3 года назад

      @@alsetema I can access it: via \\192.168.xxx.xxx\usb2. I have mounted it in Linux at /media/net

  • @SPNCRYS
    @SPNCRYS Год назад

    It's a great tutorial, I just have one question, why do you use two hostnames? What function does Raspy have? sorry, there were two.

    • @AnnaVannieuwenhuyse
      @AnnaVannieuwenhuyse Год назад +1

      the two "host" entries that they added afterwards are merely there to pre-assign those IP's to those hosts. Instead of setting the static IP on the client, the DHCP server is always giving that client the same IP and not giving it to any other client. Those two sections configure the DHCP server to reserve that IP for that client.

  • @WizardNumberNext
    @WizardNumberNext 2 года назад

    funny I am getting PXE videos now, after I already did installed Debian on laptop with all USB broken and no optical drive
    I used 2 Raspberry Pi 4B, one as DHCP+DNS server, other as full mirror of Debian (yes, I mean (almost) full mirror) with http ftp and tftp to serve UEFI iPXE

  • @Curttzy
    @Curttzy Год назад +1

    Can i install without internet ?

  • @TheClembo
    @TheClembo 3 года назад

    Hi, do you have all these instructions listed in a printable version on a web site for example? Thanks for your time. I like to read and read again to let it sink in.

  • @GooogleGoglee
    @GooogleGoglee 4 года назад

    Can please you tell me what kind of prompt are you using? It is interesting that 2nd line. What 2 characters are you using? And font?

  • @invokerfury1811
    @invokerfury1811 3 года назад

    Hi sir, i try this on machine not virtual, but i ended up with error "No common cd rom detected" how to solve this sir? its pxe boot why its detect cdrom?

  • @1ben10234
    @1ben10234 8 месяцев назад

    You could add the commands in the description.

  • @ryandelarosa8312
    @ryandelarosa8312 3 года назад +1

    Hello! Thank you for this video, i just followed your process and it work just fine but. Question? How can i add another distro to pxe boot? Can i just add a folder and do the same process?

    • @alsetema
      @alsetema  3 года назад +1

      Yep basically, you can simply unpack another network-boot-ready distro into the folder and add an entry to the defaults file

    • @ryandelarosa8312
      @ryandelarosa8312 3 года назад +1

      @@alsetema one problem is i can not make it work in virtual machine, it kind a weird i know for sure my settings are correct. hmmmm

    • @ryandelarosa8312
      @ryandelarosa8312 3 года назад +1

      @@alsetema Question how did you setup your qemu/kvm on pxe boot? Thanks in advance.

  • @pablom69
    @pablom69 Год назад

    Se puede hacer lo mismo en ubuntu 20.04?. A mi no me muestra ni siquiera el menu principal. Gracias saludos
    Can you do the same on ubuntu 20.04? It doesn't even show me the main menu. thanks greetings

  • @gingercam3127
    @gingercam3127 3 года назад +1

    PXE-T01 File not found
    Please help

  • @sk8rgu1
    @sk8rgu1 4 года назад

    Can I use this to boot to windows PE over IPV 4? I'm trying to configure computers using scripts written in windows PE and just use that image to run the scripts but I don't actually want to install any operating systems.

  • @MultiTechspec
    @MultiTechspec 3 года назад +1

    Excellent video, was wondering can you make UEFI PXE with HTTP tutorial?, I find that we are limited by the amount of information that the TFTP server can send

    • @alsetema
      @alsetema  3 года назад +1

      ruclips.net/video/Sa_7AA9w06o/видео.html

    • @MultiTechspec
      @MultiTechspec 3 года назад

      @@alsetema Thanks so much

  • @anthonyfrancaviglia1847
    @anthonyfrancaviglia1847 2 года назад

    Great post - Followed the exact steps on ubuntu 20.04.03 and it didn't work for me, the VM test gets an IP address, nothing else is displayed; just a flushing "_"
    When you have a chance, please post the commands in a text file, I am sure I have some text mistakes along the conf lines somewhere.

  • @techgamer-channeldeleted6951
    @techgamer-channeldeleted6951 3 года назад

    Man no fan no man wait let me think ..............'......'.'''.'''''''' AWESOME! YES BUDDY YOU HAVE YOUR NEW CHANNEL ALSO I HAVE ALSO OPENED MY CHANNEL IN HINDI SO YAH IT IS VERY VERY :() EXTREMELY TOUGH MAKE VIDEOS ALSO I LEARNT A LOT FROM HERE SO SUBSCRIPTION AND EVERYTHING IS GRANTED KEEP IT UP 👍👍👍 I WANT MORE

  • @user-fy8bi1dh2p
    @user-fy8bi1dh2p 3 года назад

    thank u for that video! Can i do that also but instead clients to boot to linux to boot into windows 10 ?

  • @be1m0nt
    @be1m0nt 8 месяцев назад

    not work on Debian 12=( did anyone succeed?

  • @maxdeltamax5121
    @maxdeltamax5121 4 года назад +1

    Thanks a lot!

  • @guochunmo8828
    @guochunmo8828 4 года назад

    I try to pxeboot windows.iso really want to get a better understanding on the last part "default" file

  • @ec-ecua1706
    @ec-ecua1706 3 года назад

    Thank you for your video, it was very helpful. Quick question, what log do I check for handshake between pxe server and client, I thought it will be under /var/log/messages, but no handshake shows up there. Any help is appreciated.

    • @alsetema
      @alsetema  3 года назад

      You can use wireshark to see if there are any responses by the tftp server or dhcp :) otherwise it would be possible to see something in journalctl

    • @ec-ecua1706
      @ec-ecua1706 3 года назад

      @@alsetema Thanks for the quick response, I will give it try...

  • @invokerfury1811
    @invokerfury1811 3 года назад

    Hi Sir, how to make installation run automatic after booting from pxe?

  • @RyzenVega64
    @RyzenVega64 3 года назад

    Is that also possible without a DHCP server? I use my Fritzbox for this and do not want to change everything now.

    • @alsetema
      @alsetema  3 года назад +1

      Not that i know of, no
      Perhaps your fritzbox has some settings for this, meaning you can still use it. Otherwise youll have to mak your own

  • @ThiagoSantos-wd8pe
    @ThiagoSantos-wd8pe 3 года назад

    Does this work with windows 10? I tried to put windows 10 in place of debian

  • @namlehai2037
    @namlehai2037 2 года назад

    Hi, In the DHCP section, if I use multiple vlans provided by pfsense, how will I have to configure it?

    • @AnnaVannieuwenhuyse
      @AnnaVannieuwenhuyse Год назад

      Keep your DHCP on your PfSense server, and have the DHCP on your PfSense server point to the IP of the tftp server.

  • @DOULOS1337
    @DOULOS1337 3 года назад

    I want to use Ubuntu as a server computer to boot my mining computers from. Is this possible in this manner? Seems like a net boot theoretically should work

    • @alsetema
      @alsetema  3 года назад +1

      Yes, it is, but it may not be an easy task. Im not sure what it would take exactly but it would be something along the lines of: using a live cd of ubuntu, using http/nfs ensuring that the squashfs is found and boots properly, and modifying (or completely changing) the squashfs file for it to have all the mining tools you need and auto-execute whichever programs it needs to run on boot.

  • @adamlabus9979
    @adamlabus9979 2 года назад

    Curious to know why this doesnt work on legacy systems? When I tried it on my two legacy laptops it also gave me a client doesnt accept options error - is that the reason? What could be done to make it legacy compatible? Anyways the tutorial was AWESOME, loved it.

    • @AnnaVannieuwenhuyse
      @AnnaVannieuwenhuyse Год назад

      UEFI is inherently not compatible with Legacy. UEFI is the system that comes after the legacy BIOS based systems as an evolution.

  • @harsh.tejani
    @harsh.tejani 3 года назад

    What Distribution of Linux are you using? Is it an ubuntu server?

  • @Username-yv9pc
    @Username-yv9pc 3 года назад

    i get error "PXE-E23: client received TFTP error from Server " does anyone know how to fix this ? :-)

  • @netbin
    @netbin 3 года назад

    does this work only inside lan? or this can be done via internet?

  • @MCSTNDTCAFAG
    @MCSTNDTCAFAG 2 года назад

    Perfect!

  • @GooogleGoglee
    @GooogleGoglee 4 года назад

    Nice video, do you have an equivalent example / guide for system with old BOOT? Usually this can be more common with old systems that They do not support USB boot and doesn't have any other possibility to boot... Can you help?

    • @alsetema
      @alsetema  4 года назад +2

      There are many videos done using old bios boot on youtube, i did it in UEFI since there werent many i could see

    • @GooogleGoglee
      @GooogleGoglee 4 года назад

      @@alsetema ok thanks for the answer.
      What are the corresponding packages if I use another distro? Like CentOS or Arch for example?

    • @GooogleGoglee
      @GooogleGoglee 4 года назад +1

      @@alsetema I have find out that (for those who are interested) Arch has a very well described and dedicated page for running a PXE environment. Very easy and straight forward

  • @rudypieplenbosch6752
    @rudypieplenbosch6752 Год назад

    thanks man

  • @sanjeetsingh-iz1rb
    @sanjeetsingh-iz1rb 3 года назад

    Hi I tried it but it is not working on Ubuntu 20.04 LTS , i can see their is some error with the TFTP .
    can you please suggest anything ?

    • @alsetema
      @alsetema  3 года назад +2

      Hey there, this method won't work with the ubuntu images since they are not netinstallers. I plan to do a tutorial on how to do it on full fat live distributions in the future.

    • @sanjeetsingh-iz1rb
      @sanjeetsingh-iz1rb 3 года назад

      @@alsetema Thank You so much bro for the help . Keep doing the good work.
      Cheers

    • @alsetema
      @alsetema  3 года назад

      @@sanjeetsingh-iz1rb As previously mentioned: ruclips.net/video/Sa_7AA9w06o/видео.html

  • @mingdeng2905
    @mingdeng2905 2 года назад

    thanks bro

  • @yangou4490
    @yangou4490 3 года назад

    How to achieve automatic installation?

  • @joshfrandsen9526
    @joshfrandsen9526 4 года назад

    Is it possible to create a pxe server that both handles Windows installations and Linux installations and maybe other distros?

    • @alsetema
      @alsetema  4 года назад

      Technically yes, but for what I know, the menu for windows would have to load another boot loader (like grub or something like that) but im probably wrong

    • @guilhermepacheco4165
      @guilhermepacheco4165 4 года назад

      @@alsetema all well? I'm trying to make a boot image of Linux and windows ... can you make a video?

  • @arturgogowski8847
    @arturgogowski8847 3 года назад

    People will nedd more your tutorial , about linux, about raspery, about networking.... iptables ........ will be able create a film about interesting it books ?

  • @leo19957
    @leo19957 4 года назад

    Would this work with a windows iso ? I want to have multiple images of windows - linux on the menu

    • @alsetema
      @alsetema  4 года назад +1

      Unfortunately im unsure on how it works for a windows ISO, for what i can tell you might want to look into WindowsPE, since it seems to be netboot ready

    • @Doesntcompute2k
      @Doesntcompute2k 3 года назад

      Windows Deployment Server. You'll love it. I am going to try to get a Linux PXE to load Windows, but WDS is a great PXE for loading Windows AND can load to a VM! YouTubber Craft Computing has a recent video where he shows how. Check him out.

  • @cristianricardolugomonsalv842
    @cristianricardolugomonsalv842 3 года назад

    can i use this for install windows?

  • @vitaliisonko7670
    @vitaliisonko7670 3 года назад

    awesome

  • @netbin
    @netbin 2 года назад

    will this work for windows?

  • @ys-og2im
    @ys-og2im 3 года назад

    Where did you get your theme?

  • @satishP2008
    @satishP2008 3 года назад

    This won’t work for Ubuntu 20.04 release

    • @alsetema
      @alsetema  3 года назад

      Hey! It will not, this is mostly since ubuntu will use NFS to pull the squashfs file, containing the operating system. other OSs (gparted i think) will do something similar over http instead. I plan to do a tutorial on that some day some time

    • @tashtiotm4604
      @tashtiotm4604 3 года назад

      Yep, if you share the ISO via http and direct to it with the default file configuration, you can make it work for 20.04.

  • @deathoniza
    @deathoniza 4 года назад

    Thanks for a really great tutorial!
    I'm stuck at "loading debian" after nbp file has been downloaded... I wonder what's wrong X_X

    • @alsetema
      @alsetema  3 года назад +1

      Im unsure what this could be :( some systems actually have buggy preboot execution environments (like my laptop) and it might fail to boot. Try with a virtual machine

  • @CsillagszemuCsjuhasz
    @CsillagszemuCsjuhasz 4 года назад

    I saw that "ssh pi" command. Is that an ssh shortcut? How can I make one? :P

    • @alsetema
      @alsetema  4 года назад +2

      yes! you just need to edit the "config" file in the .ssh folder (so, ~/.ssh/config), there you can specify hosts and which properties for that connection like the port and so :D look into that

    • @CsillagszemuCsjuhasz
      @CsillagszemuCsjuhasz 4 года назад +1

      @@alsetema I actually didn't know that. Thanks :)

  • @ooiboonsin1714
    @ooiboonsin1714 4 года назад

    Very helpful video. Can you also make one for IPv6?

    • @alsetema
      @alsetema  4 года назад

      :D for what i know the only difference would be to configure DHCPd using ipv6. I fint believe any other configuration would be different

    • @ooiboonsin1714
      @ooiboonsin1714 4 года назад

      @@alsetema That's the thing. I don't know how to configure using IPv6. It would be great if you can point me some directions. :D

  • @owaiskadri9376
    @owaiskadri9376 Год назад

    Ok

  • @isahidris6838
    @isahidris6838 4 года назад

    The tutorial is great, very entertaining.
    But, I do have issue, the client hangs after getting syslinux.
    Any help around this will be appreciated
    Once again, 👍

    • @alsetema
      @alsetema  3 года назад

      Could be indeed be a bad default config, or a buggy PXE on the machine you're trying it in. But I cannot be sure

  • @ifeanyionyia-odike7305
    @ifeanyionyia-odike7305 3 года назад

    Waste of time

  • @joseasir3309
    @joseasir3309 3 года назад

    Thanks a lot!