Canonical recently released the Landscape Client snap which, along with the new snap management features in the Landscape web portal, allows for device management of Ubuntu Core devices. In this blog we will look at how this can be deployed at scale by building a custom Ubuntu Core image that includes the Landscape Client snap and how to configure the image to automatically enrol the device after its first boot.
This blog follows the tutorial Build your own Ubuntu Core image, which shows how to create a custom image for a Raspberry Pi.
Defining your Image
The Model Assertion
As we are following the tutorial we will have already set up our Ubuntu One account and now we are ready to create our model assertion. This is the recipe that describes all the components that comprise our image and will therefore need the Landscape Client to be added into the mix.
We will base this example on a Raspberry Pi running Ubuntu Core 22, and so we will start with the reference model file we…