r/AlpineLinux • • Jan 23 '22

Using Alpine for a home server?

I was thinking about using Alpine Linux for a home server and then using Ignite to run Firecracker VMs for any other services I host. Are there any downsides to using Alpine as my base OS (over say Ubuntu) if I intend to do all the software installations inside Firecracker VMs?

17 Upvotes

16 comments sorted by

11

u/sarkyscouser Jan 23 '22

Consider docker for your services to save the cost of VMs?

I use Arch with LTS kernel but lurk on here as I would consider Alpine if I ever started from scratch again. All my ~20 services are dockerised.

7

u/geek_at Jan 23 '22

Alpine is perfect for home servers. Even more so if you're using the run-from-USB feature which gives you access to all your harddrives without needing to install the system on one.

Alpine is very slick and fast so it's perfect for all of that.

I wrote a guide how to set it up as a server from a USB drive: https://blog.haschek.at/2020/the-perfect-file-server.html

1

u/nanoxb Mar 09 '25

Nice guide. How you upgrade your USB instalalation?

1

u/geek_at Mar 09 '25

I usually don't since it's quite a hassle. Edge repo works great though. package updates are no problems anyways since on boot it installs all from network or from cached USB packages

1

u/nanoxb Mar 09 '25

Nice, and what about kernel?

1

u/geek_at Mar 10 '25

You can update the USB drive too but it's a bit of a hassle. If it's important to you to always have the latest kernel then you might want to go the PXE boot route

1

u/nanoxb Mar 10 '25

Thanks, that's idea!

2

u/oxr463 Jan 23 '22

Do it! I've got a box running Alpine + k3s + WireGuard in my home lab.

1

u/nf99999 Jan 23 '22 edited Jan 23 '22

Same here, rpi3 with alpine in memory (data disk mode) with btrfs for data disk, and Linux containers (lxd) for VMs. Running nicely 24x7. Should be able to recover nicely from power failures :-) have an rpi4 with similar setup for dev

1

u/SelfhostedPro Feb 02 '22

When you install in data disk mode do you still need to boot from USB?

1

u/nf99999 Feb 05 '22

It boots from sd, just like the alpinelinux image. You use lbu to store changes persistently.

1

u/CeterisParibus0000 Jan 23 '22

I use Alpine in my RPi4 homeserver with several docker containers. Works like a charm and very stable

1

u/fazalmajid Jan 23 '22

I use Alpine on bare metal (HP Z2 Mini G4) as my primary home server with ZFS. No issues whatsoever, other than the occasional musl libc porting issues when compiling packages.

1

u/fmillion Jan 23 '22

All my servers run Alpine. It's great.

I'm a Docker fanatic, so I don't even often have to deal with the musl issues, since the containers bring their own libc as needed. Of course Alpine based containers are nice too