Building with Multipass¶
In order to build an Armbian image from scratch, whether for development purposes or to apply user customizations on top of a base image, a build environment is required. Per the Armbian documentation, Ubuntu 22.04 is the officially supported build platform.
Multipass that is designed for quick and painless provisioning of Ubuntu VMs.
Creating a VM and preparing for build¶
Multipass is available for macOS, Windows and Linux platforms.
Once you have multipass installed, a Jammy (22.04) instance with 4 CPUs, 4GB of RAM and 25GB of space available can be provisioned with a single command:
Bash | |
---|---|
Clone the build repo¶
You can run commands direct on the instance to clone the build repo:
Bash | |
---|---|
Use an instance¶
Then you can get a shell to the instance and run the build as needed:
Bash | |
---|---|
Share data with an instance¶
The recommended way to share data between your host and an instance with Multipass is the command:mount
Mounts: /my/dir => /my/dir
From this point on will be available inside the instance./my/dir