News: 1655451184

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Ubuntu releases Core 22: Its IoT and edge distro

(2022/06/17)


Canonical's Linux distro for edge devices and the Internet of Things, Ubuntu Core 22, is out.

This is the fourth release of [1]Ubuntu Core , and as you might guess from the version number, it's based on the current Long Term Support release of Ubuntu, version 22.04.

Ubuntu Core is quite a different product from normal Ubuntu, even the text-only Ubuntu Server. Core has no conventional package manager, just Snap, and the OS itself is built from Snap packages. Snap installations and updates are transactional: this means that either they succeed completely, or the OS automatically rolls them back, leaving no trace except an entry in a log file.

[2]

Combined with Core's read-only root filesystem, the idea is that the operating system is always in a known-good state, and should be able to quickly and reliably recover from a power outage or a failed package installation, without the risk of disk corruption. As such, the OS can safely update itself, and is configured to do this automatically as soon as you start it. Finally, as shipped, you can only access Core over SSH: you can't log in on its console.

[3]

[4]

Core is shipped as a ready-to-boot disk image, rather than as an ISO file. The standard setup [5]instructions assume that you'll be using KVM. Also note that you will need an Ubuntu single-sign-on account – [6]formerly known as Ubuntu One, although the [7]storage part is long gone. You'll also need to have set up SSH keys and added your public key to your Ubuntu One account.

When we set up Core 22, it installed several updates and rebooted itself before running its initial setup wizard. That done, we could SSH into it and have a poke around. The compressed download is under 400MB, and the running VM had a little over a 1GB of writable space, mounted at /writable . You can only install additional software in the form of Snap packages, but this is simple, and you don't even need root privileges to do it – as an experiment, we installed htop and bashtop in seconds.

[8]New audio server Pipewire coming to next version of Ubuntu

[9]Sick of Windows but can't afford a Mac? Consult our cynic's guide to desktop Linux

[10]Not a GNOME fan, and like the look of Windows? Try KDE Plasma or Cinnamon

[11]I love the Linux desktop, but that doesn't mean I don't see its problems all too well

Core is designed to be configured automatically via [12]model assertions , and the new version supports [13]remodelling : change an existing model, then push it out to client devices. This should allow Core 20 machines to be upgraded in situ to Core 22, which was not possible with Core 16 or Core 18.

The new version 22 has a bunch of new features, of course. There's an optional, beta-test, pre-emptible kernel for better real-time performance. Validated sets of snaps can be manipulated as a whole, and devices can also be factory reset. You can set quotas on CPU and memory usage, and it now supports full-disk encryption. It supports Canonical's [14]MicroK8s Kubernetes distribution and [15]metal-as-a-Service deployment tools, as you might expect. We only had a quick look, but the [16]documentation looks pretty solid, too.

[17]

Ubuntu Core 22 comes in versions for x86-64 machines, including the Intel NUC, and both 32-bit and 64-bit Raspberry Pi hardware, including the 2, 3, 4, 400, Compute Model 4, and Pi Zero 2 W. ®

Bootnote

Watch out: at the time of writing, Ubuntu hasn't updated all of its setup instructions yet. In many places, they still refer to Core 20. You'll need to edit the version number appropriately. The downloads are [18]here , and when it comes to the QEMU part, change the filename in the command to ubuntu-core-22-amd64.img .

That done, setup proceeded fine, but unfortunately, we couldn't connect to it, even from a terminal on the same host machine. We had more luck with VirtualBox: all you need to do is extract the disk image, then convert the .img file to a VDI: VBoxManage convertdd ubuntu-core-22-amd64.img ubuntu-core-22-amd64.vdi --format VDI

Create a new 64-bit Linux VM, pick Use an existing hard disk file , and point it at the new .vdi file.

Core only boots using UEFI, so on the Settings | System | Motherboard screen, tick Enable EFI (special OSes only) . Then go down to Settings | Network and change Attached to: to "Bridged Adapter" instead of "NAT".

There are more detailed instructions in this [19]blog post and on the Snapcraft [20]forums .

Get our [21]Tech Resources



[1] https://ubuntu.com/core

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YqxQv4NPCtajCK1W0ZMsgAAAAJY&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YqxQv4NPCtajCK1W0ZMsgAAAAJY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YqxQv4NPCtajCK1W0ZMsgAAAAJY&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[5] https://ubuntu.com/download/kvm

[6] https://www.theregister.com/2009/05/13/ubuntu_one/

[7] https://www.theregister.com/2014/04/02/ubuntunone_canonical_axes_storage_service/

[8] https://www.theregister.com/2022/05/24/new_audio_server_pipewire_coming/

[9] https://www.theregister.com/2022/05/31/the_cynics_guide_to_linux/

[10] https://www.theregister.com/2022/06/16/new_versions_of_both_cinnamon/

[11] https://www.theregister.com/2022/06/08/linux_desktop_blues/

[12] https://discourse.ubuntu.com/t/model-assertion/19745

[13] https://discourse.ubuntu.com/t/remodelling/24954

[14] https://microk8s.io/

[15] https://maas.io/

[16] https://ubuntu.com/core/docs

[17] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/oses&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YqxQv4NPCtajCK1W0ZMsgAAAAJY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[18] https://cdimage.ubuntu.com/ubuntu-core/22/stable/current/

[19] http://cheesehead-techblog.blogspot.com/2020/05/testing-ubuntu-core-with-containers-on.html

[20] https://forum.snapcraft.io/t/ubuntu-core-18-running-in-virtualbox/9891

[21] https://whitepapers.theregister.com/



Snap....

sreynolds

You'd might as well call it ubudroid. What's the point of snap when I can build everything from source? And I can change things to be built how I like. Snap just seems so wrong.

Re: Snap....

VoiceOfTruth

What if you don't want to build everything from source? What if you just want to get on a do stuff?

Some people in the Linux world: don't download the LibreOffice binaries, build it from source.

Re: Snap....

Liam Proven

I think the points are:

* to make everything easy, because even the people building embedded systems are not gurus;

* to make the OS robust, resilient, and safe;

* to make it amenable to automation;

* to minimize the amount of extra work that the integrator needs to do.

In the classic xNix model, apps sort of merge into the OS. Some bits go in /usr/bin and some bits in /usr/lib and some elsewhere and they become another command. This is even worse than the Windows model, where most of the app is in /Program Files/%AppsOwnFolder% but some bits are under /WINDOWS somewhere.

The idea of making apps self-contained so they don't touch the core OS has been demonstrated now. NeXT did it first, Mac OS X polished it and took it mainstream, iOS and Android put it in billions of people's pockets.

It doesn't matter if it's inelegant or inefficient. It works.

The basic model of an immutable OS and self-contained additional apps is demonstrated now. Counting all the replaced phones, there are tens of billions sold, and not a single big failure yet.

Ubuntu is trying to bring that to all those billions of little self-contained boxes driving your TV and fridge and microwave.

Someone has to build 'em.

And this is not an area where Red Hat or SUSE are strong.

"Contrariwise," continued Tweedledee, "if it was so, it might be, and
if it were so, it would be; but as it isn't, it ain't. That's logic!"
-- Lewis Carroll, "Through the Looking Glass"