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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 120

  • @alsetema
    @alsetema  3 ปีที่แล้ว +7

    I finally made part 2!
    th-cam.com/video/Sa_7AA9w06o/w-d-xo.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

    • @alsetema
      @alsetema  4 ปีที่แล้ว +1

      Thanks a lot!

  • @fatehsinghparab1778
    @fatehsinghparab1778 4 ปีที่แล้ว +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 4 ปีที่แล้ว +2

    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!

  • @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?

  • @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.

  • @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?

  • @komandankokoci2
    @komandankokoci2 ปีที่แล้ว +1

    Can i install without internet ?

  • @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 :)

  • @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!

  • @davidunderwood9037
    @davidunderwood9037 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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!

  • @RonLaws
    @RonLaws 2 หลายเดือนก่อน

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

  • @1jbegic
    @1jbegic ปีที่แล้ว

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

  • @basavarajchougala3384
    @basavarajchougala3384 3 ปีที่แล้ว +1

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

  • @gingercam3127
    @gingercam3127 3 ปีที่แล้ว +1

    PXE-T01 File not found
    Please help

  • @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!

  • @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

  • @Pattot818
    @Pattot818 12 วันที่ผ่านมา

    Thank you, the first PXE Tutorial which worked for me as i wished !❤

  • @OscarPrima-b4y
    @OscarPrima-b4y 16 วันที่ผ่านมา

    Perez Donna Clark Scott Rodriguez Dorothy

  • @manit77
    @manit77 2 ปีที่แล้ว +1

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

  • @ggkkskmom
    @ggkkskmom 3 หลายเดือนก่อน

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

  • @thepigeongod2526
    @thepigeongod2526 3 ปีที่แล้ว +1

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

  • @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

  • @1ben10234
    @1ben10234 9 หลายเดือนก่อน

    You could add the commands in the description.

  • @be1m0nt
    @be1m0nt 10 หลายเดือนก่อน

    not work on Debian 12=( did anyone succeed?

  • @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

  • @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

      th-cam.com/video/Sa_7AA9w06o/w-d-xo.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.

  • @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 ?

  • @Username-yv9pc
    @Username-yv9pc 3 ปีที่แล้ว

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

  • @ryandelarosa8312
    @ryandelarosa8312 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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 4 ปีที่แล้ว +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 4 ปีที่แล้ว +1

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

  • @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

  • @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?

  • @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.

  • @RyzenVega64
    @RyzenVega64 4 ปีที่แล้ว

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

    • @alsetema
      @alsetema  4 ปีที่แล้ว +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

  • @mingdeng2905
    @mingdeng2905 2 ปีที่แล้ว

    thanks bro

  • @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?

  • @ifeanyionyia-odike7305
    @ifeanyionyia-odike7305 3 ปีที่แล้ว

    Waste of time

  • @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.

  • @rudypieplenbosch6752
    @rudypieplenbosch6752 ปีที่แล้ว

    thanks man

  • @invokerfury1811
    @invokerfury1811 3 ปีที่แล้ว

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

  • @guochunmo8828
    @guochunmo8828 4 ปีที่แล้ว

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

  • @owaiskadri9376
    @owaiskadri9376 ปีที่แล้ว

    Ok

  • @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.

  • @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

  • @ProliantLife
    @ProliantLife ปีที่แล้ว

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

  • @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.

  • @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!

  • @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.

  • @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.

  • @fotografm
    @fotografm ปีที่แล้ว

    Beautiful and easy to follow. Please make more tutorials !

  • @harsh.tejani
    @harsh.tejani 3 ปีที่แล้ว

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

  • @stephankramer7624
    @stephankramer7624 2 ปีที่แล้ว

    Awesome Tutorial! Thank you very much!

  • @iratusiratus
    @iratusiratus 3 ปีที่แล้ว

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

  • @yangou4490
    @yangou4490 3 ปีที่แล้ว

    How to achieve automatic installation?

  • @netbin
    @netbin 3 ปีที่แล้ว

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

  • @jonnypeace2810
    @jonnypeace2810 2 ปีที่แล้ว

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

  • @cristianricardolugomonsalv842
    @cristianricardolugomonsalv842 3 ปีที่แล้ว

    can i use this for install windows?

  • @grishmapatel6074
    @grishmapatel6074 4 ปีที่แล้ว

    We should say, thanks for making the video

  • @netbin
    @netbin 2 ปีที่แล้ว

    will this work for windows?

  • @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...

  • @OneGearMode
    @OneGearMode 3 ปีที่แล้ว

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

  • @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.

  • @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?

  • @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  4 ปีที่แล้ว +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

  • @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 :) th-cam.com/video/Sa_7AA9w06o/w-d-xo.html

  • @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

  • @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: th-cam.com/video/Sa_7AA9w06o/w-d-xo.html

  • @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 :)

  • @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

  • @joseasir3309
    @joseasir3309 3 ปีที่แล้ว

    Thanks a lot!

  • @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?

  • @ys-og2im
    @ys-og2im 4 ปีที่แล้ว

    Where did you get your theme?

  • @vitaliisonko7670
    @vitaliisonko7670 4 ปีที่แล้ว

    awesome

  • @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.

  • @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

  • @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  4 ปีที่แล้ว

      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

  • @maxdeltamax5121
    @maxdeltamax5121 4 ปีที่แล้ว +1

    Thanks a lot!

  • @MCSTNDTCAFAG
    @MCSTNDTCAFAG 3 ปีที่แล้ว

    Perfect!