OPNsense Forum

English Forums => Development and Code Review => Topic started by: Maurice on July 10, 2023, 10:22:49 PM

Title: OPNsense on Oracle Cloud Ampere instances (aarch64)
Post by: Maurice on July 10, 2023, 10:22:49 PM
I hope you're all doing well.

Oracle Cloud offers a VM shape based on Ampere Altra CPUs (VM.Standard.A1.Flex). It's more affordable than AMD / Intel shapes and has a generous free tier, so I decided to give it a try. I built an OPNsense-23.1.11-ufs-vm-aarch64.qcow2 image, imported it as a custom image and used it to create an Ampere instance. If you know your way around OCI, this is pretty straight forward and works surprisingly well. Initial interface assignment and root password change can be done with the cloud shell. Next, you can allow access to the Web GUI by adding an ingress rule to the VCN security list, then configure everything else as usual.

I did have to patch extras.conf (https://github.com/maurice-w/tools/commit/df72ce0) to enable the serial console menu out of the box, other than that it's a standard VM build:

make update DEVICE=ARM64
make vm-qcow2,20G,off DEVICE=ARM64


The main caveat is the lack of a public update / plugin mirror for aarch64. If there is interest in this, I might consider running one. I also thought about making the image available as an OCI community image, but knowing that cloud images are part of Deciso's commercial offerings, I'd rather not. Feedback welcome.

If you want to build it yourself, here are two lessons I had to learn the hard way:

Cheers
Maurice
Title: Re: OPNsense on Oracle Cloud Ampere instances (aarch64)
Post by: Maurice on July 13, 2023, 06:05:33 PM
Almost perfect timing:

https://ftp.yrzr.tk/opnsense/FreeBSD:13:aarch64/23.1/

Thanks a lot @yrzr, works like a charm!