Centos install help

I read https://maas.cloud.cbh.kth.se/MAAS/docs/ui/try-out-the-maas-cli.html

from the text it seems it is sufficient to call
$ maas admin boot-source-selections create 1 os=“centos” release=“8” arches=“amd64” subarches="" labels=""
$ maas admin boot-resources import

and the deployed system becomes Centos. It does not - I get Ubuntu 20 deployed. I checked importing is done yet id in fact is 11. How should I install Centos?

Hi @dataved and welcome to MAAS community!

How are you deploying your machine?

If you are executing MAAS CLI machine deploy then it is not enough for MAAS to decide which image you are deploying (without distro series parameter provided, it will take default one).

Can you please try the following procedure to see if this fixes it:

maas $PROFILE machine deploy $SYSTEM_ID distro_series=$SERIES

IIRC $SERIES in your case should be centos/8

It is also possible to pass around other parameters as well, please check API docs under POST /MAAS/api/2.0/machines/{system_id}/op-deploy

1 Like

Thanks, Anton; I’m trying this suggestion

Anton, thanks, now it works!

[cloud-user@afedotov-cluster-3 ~]$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.