ARM development: next steps

hi all

I need some help


I do not have (yet) the hardware to test this on aarch64, please can you help here to verify the issues

others architectures are verified

1 Like

You can use a KVM machine for that: yum install qemu-system-aarch64
Download the aarch iso from CentOS mirror: http://isoredirect.centos.org/altarch/7.6.1810/isos/aarch64/

Make sure to select aarch64 when creating the VM.
During install you will have time for a trip abroad: it’s very slow!

3 Likes

Thanx, will test it on aarch64 this affternoon

1 Like

I would like to test a couple of issues inside an aarch64 machine, so I’ve created a new scaleway account.

But when creating a new machine, there is no CentOS image available for ARM.
What are the steps to have a running CentOS/NethServer aarch64 machine on Scaleway? Do I need to create my image?

Tested on virtual machine using qemu. Everything good.
Thank you @mark_nl!

1 Like

i’m just playing a little with some ns76 altarch to see where we are, because i was a litle absent during last two months… anyway, i think that Ultimate ns7 software updates origin policy break yum on altarch
error on software center:
failure: repodata/repomd.xml from ce-base: [Errno 256] No more mirrors to try. http://mirror.centos.org/centos/7.6.1810/os/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

it seems that mirrorlist.nethserver.org did not handle correctly with altarch, ie if the ce-base seems to redirect to
http://mirror.centos.org/centos/7.6.1810/os/aarch64/repodata/repomd.xml
but there is no such url

to make it work i have disabled from ce-* mirrorlist and changed baseurl, ie:
#baseurl=http://mirror.centos.org/centos/$nsrelease/extras/$basearch/
baseurl=http://mirror.centos.org/altarch/$nsrelease/extras/$basearch/

and i think we should also disable some repo for altarch:
ce-sclo* for armhfp
ce-sclo-sclo for aarch64

someone else had the same problem?

2 Likes

Thanks for reporting, we will look into it!

1 Like

Seems like @Mr.Olie had the same problem:

2 Likes

Just pushed a fix to mirrorlist.nethserver.org, would you mind checking it out?

https://github.com/NethServer/mirrorlist/pull/22

2 Likes

Just did a quick test using curl, seems good:

curl 'http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=aarch64&nsrelease=7.6.1810'
curl 'http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=armhfp&nsrelease=7.6.1810'

it seems ok to me, for aarch64 and armhfp. tnx!

ops… i talked too early… i’ve done a full update, but now i got error on sclo which didn’t exist for aarch64

more tests, later…

1 Like

Please give me the official URLs [or open a PR for them]!

This is from nethserver repo file:

```
[ce-sclo-sclo]
name=CE-SCLo-sclo-$nsrelease
mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-s$
#baseurl=http://mirror.centos.org/centos/$nsrelease/sclo/$basearch/sclo/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=0

[ce-sclo-rh]
name=CE-SCLo-rh-$nsrelease
mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-r$
#baseurl=http://mirror.centos.org/centos/$nsrelease/sclo/$basearch/rh/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=0

Disabled it manually, like @dz00te said.

sorry I do not think I understood :thinking:
the problem is that ther is no official url… i mean if you check a mirrror:
http://dallas.tx.mirror.xygenhosting.com/centos-altarch/7.6.1810/sclo/aarch64/
only sclo-rh exixst for aarch64, while for armhfp there is no sclo* at all

i don’t know if it’s possible to manage this from mirrorlist (that will be probably the best solution), otherwise the only solution i see is to change
“/etc/e-smith/templates/etc/yum.repos.d/NethServer.repo/10base”
check the arch and and enable/disable [ce-sclo-sclo]
and [ce-sclo-rh] depending on the arch… but probably i miss something… :sweat_smile:

1 Like

Yes, I forgot that …it’s the kind of input I need :smile:

IIRC packages that we recompile from EPEL and SCLo as dependencies for our modules will go to nethserver-updates/armhfp. Wherever an upstream mirror exists, mirrorlist will point to it.

Otherwise it could point to an empty/dummy repo and its packages are expected to be in nethserver-updates (or nethserver-base).

3 Likes

Yesterday I was able to install CentOS on a new Raspberry Pi4 2GB via this link:
https://www.centos.org/forums/viewtopic.php?f=49&t=71407&p=300229#p300246

After expanding the root partition I inserted the uSD into the Pi and was able to install NethServer:

yum install -y http://mirror.nethserver.org/nethserver/nethserver-release-7.rpm
nethserver-install

I had still some problems:

  • repo’s ce-sclo-sclo and ce-sclo-rh still had to be disabled manually; I don’t know the implication of this;
  • openVPN could not be installed;
  • rspamd as part of nethserver-mail-filter could not be installed.

What are the options to solve these problems?

1 Like

You shouldn’t have any major drawbacks.

I have no idea on this.

I don’t know :slight_smile: The ARM project is community driven but it’s a little bit stuck.
Maybe @dz00te or other ARM users can help to solve your problems :slight_smile:

The rspamd rpm has been done manually by @mark_nl AFAIK, maybe he can upgrade the version or share his note to do it ourself ?

the last src.rpm I know is : http://packages.nethserver.org/nethserver/7/arm-base/Source/SPackages/rspamd-1.8.2-1.ns7.src.rpm

1 Like

Installation of nethserver-mail-filter requires rspamd ≥ 1.9.1. I really have no idea how to upgrade this. @mark_nl can you point me in the right direction?

I hope the ARM project stays alive. Older Pi’s were not so powerfull; other boards were more powerfull, but I wasn’t able to install a recent version of Centos on it. I believe the new Pi4 will change this and might be a energy-saving server for soho-use.

1 Like

I think it’s the same problem as with evebox, it’s not compiled for arm in the new version.

Perhaps @smutje1179 can help with compiling

2 Likes