The roots of the OpenMandriva project are in Mandrake Linux and its traditions. The OpenMandriva community is passionate about free software, working together, and as a worldwide community, they make technical and strategic decisions in a collaborative manner. The OpenMandriva community has worked hard to achieve the “it just works” experience for Aarch64 and Ampere platforms and developers who choose to build and run solutions.
OpenMandriva is now available within Oracle’s Cloud Infrastructure (OCI) for use on OCI Ampere A1 shapes. Like other Linux distributions, OpenMandriva supports Cloud-Init for the configuration of metadata for cloud instances. This allows you to automate your OpenMandriva workloads, when deploying to https://openmandriva.org/a cloud platform.
OpenMandriva tends to pull changes in quickly from upstream, so you will have all the latest and greatest packages available. This also includes the kernel. Spoiler alert, they are already testing with Linux kernel 6.0 on Ampere-based platforms.
We were recently able to donate an Ampere® Mt. Collins platform with the dual socket configuration using Ampere Altra® and Altra® Max processors, to accelerate the development of the distribution on Aarch64, and the distribution has already seen some positive results.
“Building libreoffice took it 2 hours, 8 minutes compared to 4 hours, 4 minutes on the Threadripper. […] Now, for the first time, we have Aarch64 packages churned out at a much faster rate than their x86_64 and znver1 counterparts - to the extent that I was curious about running an x86_64 environment in qemu on the Altra and running an x86_64 builder in there.” For those unfamiliar with OpenMandriva Linux uses ‘dnf’, similar package management tooling to Fedora or Red Hat based distributions and includes open-source software stacks available for installation easily.Terraform to launch an OpenMandriva virtual machine on Oracle OCI Ampere A1 compute platform while passing in some metadata to configure it. Before you start:
- Install Terraform on your system. (If you are using OpenMandriva on your system as well, simply dnf install terraform).
- Sign up to Oracle OCI “Always Free” Account and find your credentials for API use
Using the oci-ampere-a1 terraform moduleThe oci-ampere-a1 terraform module code supplies the minimal amount of information to quickly have working Ampere A1 shapes on OCI “Always Free”. It has been updated to include the ability to easily select OpenMandriva as an option. To keep things simple from an OCI perspective, the root compartment will be used (compartment id and tenancy id are the same) when launching any shapes. Additional tasks performed by the oci-ampere-a1 terraform module:
- Operating system image id discovery in the user region.
- Dynamically creating sshkeys to use when logging into the shape.
- Dynamically getting region, availability zone and image id.
- Creating necessary core networking configurations for the tenancy
- Rendering metadata to pass into the Ampere A1 shape.
- Launch 1 to 4 Ampere A1 shapes with metadata and ssh keys.
- Output IP information to connect to the shape.
Configuration with terraform.tfvarsWe will quickly configure Terraform using a terraform.tfvars in the project directory.
Please note that Compartment OCID are the same as Tenancy OCID for Root Compartment. The following is an example of what terraform.tfvars should look like: