Build Ganeti 3.1 on alpine Linux

5 views
Skip to first unread message

Ansgar Jazdzewski

unread,
Sep 17, 2025, 7:09:17 AM (6 days ago) Sep 17
to Ganeti
Hi folks,

I had the idea to build a minimal ganeti-node; my plan is to compile
ganeti on alpine linux 3.22!

I was able to build the haskel code using cabal - i only had to patch
snap-server as it uses sendfile64 what musel do not support! "sed -i
's/sendfile64/sendfile/g'" did the trick.

On the python side I run into an issue with python 3.12 as the ganti
code still uses asyncore!

My question is how ganti is built on debian trixie (python 3.13) and
how i can get sound this issue?

Thanks for your help!
I hope I can provide an apk-package soon!

Ansgar

Sascha Lucas

unread,
Sep 18, 2025, 2:30:40 AM (5 days ago) Sep 18
to 'Ansgar Jazdzewski' via ganeti
Hi Ansgar,

On Wed, 17 Sep 2025, 'Ansgar Jazdzewski' via ganeti wrote:

> I was able to build the haskel code using cabal - i only had to patch
> snap-server as it uses sendfile64 what musel do not support! "sed -i
> 's/sendfile64/sendfile/g'" did the trick.

Interesting. Recently I build Ganeti for SLES/opensuse using ghcup/cabal
with some trouble around v1-style builds. I need to patch the Makefile.am
(see attachment). Not a genaral patch, works only with Cabal >= 3.

> On the python side I run into an issue with python 3.12 as the ganti
> code still uses asyncore!
>
> My question is how ganti is built on debian trixie (python 3.13) and
> how i can get sound this issue?

That is very easy. Someone decided to help old and slow projects and
separated asyncore into a module: https://pypi.org/project/pyasyncore/.
That is packaged as python3-pyasyncore in Debian.

HTH, Sascha.
cabal-v1.patch

Ansgar Jazdzewski

unread,
Sep 18, 2025, 6:47:19 AM (5 days ago) Sep 18
to gan...@googlegroups.com
Hi Sascha,

thanks for your tipp! i was able to compile ganeti and i will start
working on some packages soon.

7cadd56223df:~# lsb_release -a
No LSB modules are available.
Distributor ID: Alpine
Description: Alpine Linux v3.22
Release: 3.22.1
Codename: n/a
7cadd56223df:~# gnt-cluster --version
gnt-cluster (ganeti 3.1.0) 3.1.0

Cheers,
Ansgar

Am Do., 18. Sept. 2025 um 08:30 Uhr schrieb 'Sascha Lucas' via ganeti
<gan...@googlegroups.com>:
> --
> You received this message because you are subscribed to the Google Groups "ganeti" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ganeti+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/ganeti/f3defaa3-5e75-a69c-de96-5b8719156f8c%40web.de.
Reply all
Reply to author
Forward
0 new messages