NETBOOT Alpine Linux using Alpine Linux! PXE Boot Server Setup

preview_player
Показать описание
I want to add PXE boot functionality to my Proxmox VDI Thin Client project, but I need a functional PXE server first. Today, I build just that. Since I'm planning on using Alpine Linux as the network-booted operating system, I decided to build the server on Alpine as well to familiarize myself with it. In this case, the server is acting as the TFTP and HTTP server, and using the iPXE loader compiled with a custom script to network boot Alpine.

While I don't go into it in this video, the next part of this series creates the Alpine APKOVL (overlay) to allow us to netboot into a fully configured thin client appliance, with no need to mount any root filesystems or home directories over the network. Once the appliance is booted, it's completely self sufficient.

While I am planning on using this for a thin client for the SPICE protocol, you could also use this with Remmina for RDP or Firefox for a network booted kiosk. Anything where you can fit the entire filesystem in RAM and don't need persistent storage for any files the user would change.

Blog post with all of the instructions to copy/paste:

Link to my Discord server:

Timestamps:
00:00 - Introduction
01:53 - Alpine Installation
06:15 - Basic Setup
08:17 - HTTP Server
11:23 - Download Alpine Netboot
13:26 - TFTP Server
14:36 - iPXE Build
22:32 - DHCP Configuration for OPNsense
24:22 - Testing

#Linux
#Proxmox
#Netboot
#PXE
#AlpineLinux
Рекомендации по теме
Комментарии
Автор

Really cool to see you taking this to the next level, I'll definitely be looking out for your next video to get all the details for getting this set up!

joshpatten
Автор

Great video. Alpine's APK overlay seems like an interesting alternative to NFS root for persistence.

jeffbrl
Автор

14:23 you said that tftp is running as root and chroot’d under /var/tftpboot. I haven’t tested this, but if it can mount /proc, I believe it can also do something like “chroot /proc/1/root” to escape the chroot?

ruijieyu
Автор

Love it. I am planning to set something similar to what you did with RPi and different usernames. I need to figure out first how to boot the system with home directories on NAS so nothing is stored on a local system or possibly boot RPi thin client without SD card.

przemek
Автор

Noice, now we're talking 😎 I look forward to further adventuring into the world of network-booted appliances and infrastructure.

WldTangent
Автор

Watching your videos is like taking a sip from a fire hydrant! I am in awe of your knowledge.

But keep em' coming, if I watch enough of them I'm sure I will eventually be able to follow it all!!! 😮

gearboxworks
Автор

riny nitpick here, but i'm pretty sure that alpine install came with Vi out of the box. no "need" to install nano. I found alpine a few months back and it feels a lot like gentoo from the mid 00's, super small, super fast, nice and small and customizable.

Cynyr
Автор

How would I go about, instead of downloading the image everytime I start the machine from the defined repo, I would make it available on the netboot server and get it from there - 18:55 is what Im talking about

AliCan
Автор

Hi, great tutorial. but i have sadly one problem, if i boot from a vm i get the error "/sbin/init not found in new root". Do you have any idea about this?

leschi
Автор

Eu tenho um sistema assim utilizando o LTSP com debian e os terminais com raspberry’s

tcovos
Автор

Dear apalrd's adventures,

thanks for sharing your Knowledge Here..
I also followed your videos, i setup dhcp in same server itself, client system also booted.
after boot i got a only CLI.

I am looking for GUI open Firefox browser with Kiosk Mode. How to achieve.
I tried multiple way not up after boot its crash..

singaravelanpalani
Автор

This is quite great. I wonder if you may also share the proxmox backup of this lxc ? That can be quite handy and fully working directly ;)

jfairplane
Автор

Hello, I have a question:
Can I rent a dedicated server and boot the alpine Linux OS from home, using netboot?

Konrad_Adenauer
Автор

Hello brother, u did a very good job, but got stuck in making pxe boot over http in clonezilla as it supports both tftp & http, As of now in ubuntu i made pxe boot on tftp but it takes a lot of time i want to make it over http please respond & help me

navedwaris
Автор

My question is are you installing the OS on the disks that are on each thin client, or running a diskless boot?

DiyintheGhetto
Автор

Sir i would like to create a remmina kiosk..
I searched a lot but reached any where.
Please can you help me?

ultronzeon
Автор

Some 64bit system have 32bit efi. Example Linx7 tablet.

maka
Автор

it a good video tutorial but i got problem.. when netbooting i got error message wget: server returned error http/1.1 404 not found how to solve this problem thank you...

sukardiLayarda
Автор

wouldn't be more performant if we install all the stuff we need in a thin vm...
then collect all the installed stuff into a initrd/initramfs file (makecpio/dracut)...

in the ipxe boot process push this into memory (from the ipxe script, , , )
and launch vmlinuz against this memory image...

IBITZEE
Автор

You confuse me. You do the git hub and the scripting, but then you use nano and opensense.

callisoncaffrey