Canonical reveals more details about Ubuntu Core Desktop
- Reference: 1699441478
- News link: https://www.theregister.co.uk/2023/11/08/ubuntu_core_desktop_details/
- Source link:
At this year's Ubuntu conference in Rīga, Latvia, Canonical revealed more details about its forthcoming immutable desktop distro. Product manager Oliver Smith and engineering manager Ken VanDine jointly [1]gave a talk describing some of what is to come. The Reg previously [2]looked at what to expect back in June, but more is becoming clear.
Core Desktop is not the next version of Ubuntu itself. Ordinary desktop and server Ubuntu aren't going anywhere, and the next release, numbered 24.04 and codenamed Noble Numbat as we [3]mentioned last month , will be the default and come with all the usual editions and flavors.
[4]
Nor is this a whole new product: it is a graphical desktop edition of the existing Ubuntu Core distro, as we [5]examined on its release in June last year, a couple of months after 22.04. [6]Ubuntu Core is Canonical's Internet of Things (IoT) distro, intended to be embedded on edge devices, such as digital signs and smart displays. It is an immutable distro, meaning that the root filesystem is read-only and there's no conventional package manager.
[7]
[8]
Rather than being a basis for customization, like a conventional Linux, the idea is that immutable distros are rolled out and updated more like a phone or tablet OS: there's a single fixed and heavily tested OS image, and it's deployed onto the devices out in the field without modification. Updates are monolithic: a whole fresh image is pushed out, and all the OS components are upgraded in a single operation to the same combination.
That isn't unique. Most of the major Linux vendors have immutable offerings, and The Reg has looked at several over the years, including MicroOS, the basis of [9]SUSE's next-gen enterprise OS ALP . As well as the well-known ChromeOS, another immutable desktop is [10]the educational distro Endless OS .
[11]
The talk called out as benefits of Core Desktop some features shared with other distros:
Stability:
System files cannot be altered by users or applications.
Atomic updates are applied all at once or not at all.
Confined system services prevent dependency conflicts.
And continued with…
Manageability:
Since each instance of the OS is identical, administrators do not have to deal with inconsistencies between different systems.
Atomic updates and rollbacks simplify the process of applying system updates and fixing issues.
So far, so good, but Canonical believes it has some unique new angles. Core Desktop is constructed as additional layers on top of the existing Ubuntu Core distro, and like Core, it's entirely built with a single packaging system: Ubuntu's Snap.
While Snap remains controversial, it does have some compelling advantages over both SUSE and Red Hat's tooling. SUSE's transactional_update tool, while simpler than its rivals in implementation, requires a snapshot-capable filesystem, meaning that its immutable distros must use Btrfs. While it has many admirers, the number and the contents of the orange and red cells in the feature tables [12]here in its own documentation reflect the FOSS desk's serious reservations about Btrfs.
Red Hat, of course, long ago [13]banished Btrfs from RHEL . Lacking a snapshotting filesystem, the Big Purple Hat-sponsored transactional tools are considerably more complex, and divided into two separate types. We [14]examined the hows and whys and [15]some of various implementations in our Linux resilience articles earlier this year. Red Hat's immutable distros use OSTree for the underlying operating system, and Flatpak for graphical applications.
[16]
Canonical describes Ubuntu Core Desktop in terms of a seven-layered design, from kernel up to multiple Snap apps (click to enlarge)
Ubuntu Core Desktop offers a much simpler proposition: one packaging system from kernel to applications. Smith's slides showed applications sitting on top of five layers:
Additional Bases (App specific bases to ensure compatibility across Ubuntu versions)
Ubuntu Desktop Session (A Wayland session supporting the GNOME desktop environment)
Boot Base (The minimal bootable root filesystem and display manager)
Gadget (defines the boot loader, kernel arguments, encryption and security requirements) and Snapd (the core framework that integrates the system components)
Kernel (Kernel and necessary drivers)
The stack is unified by something called a Model assertion, which is described as "the 'map' of the system, cryptographic chain of trust to ensure system integrity."
Although one of the objects of the exercise was to assure system administrators of a homogeneous OS that will be identical across all deployed machines, part of the plan is that its modularity allows layers to be individually replaced without disrupting the whole stack: for instance, "Kernel snaps can be replaced or track different channels e.g. a 'gaming optimized' kernel with newer Nvidia drivers." Similarly, the desktop-session layer can be replaced, even on a deployed system: "Desktop sessions can be changed to faster moving 'edge' channels or alternative desktop environments, whilst staying on a stable, LTS base."
Ubuntu's new TPM chip-backed Full Disk Encryption system, which [17]appeared in the beta version of 23.10 Mantic Minotaur , is also a component, so the system's storage can be encrypted without the need to enter a passphrase to start the machine.
[18]
Core Desktop is intended to support more general-purpose roles than just edge devices – such as, in principle, gaming devices (click to enlarge)
Support for certain other system roles is a priority, including gaming on Intel, AMD, and Nvidia GPUs, and both native Linux games plus Windows titles via Proton. Former Canonical staffer Alan Pope demonstrated a Steam Deck running Ubuntu Core at the event, and his lengthy [19]blog post about the experience contains some interesting details about how well the developer preview already works.
Under development are further features, including an LXD container, which will support software development on the OS, including bringing in various IDEs and the ability to install traditional .deb packages. It will be supported by Ubuntu's Landscape fleet-management suite, including remote device management and reporting. Login to Microsoft's Active Directory is on the roadmap as well.
[20]
We suspect that Core Desktop might yet be the tool that validates Canonical's Snap format and helps to overcome some of the resistance it faces. Snap's single-file distribution format is simple and enables transactional installation – including, critically, rollback – without a fancy filesystem underneath, or elaborate distribution methods such as [21]libostree . It doesn't even require the Snap Store – or any store at all, as we will return to describe in a future article.
[22]Trinity desktop's latest release snaps into action on Q4OS 5.3
[23]Linux will soon offer switchable x86-32 binary support
[24]Mozilla treats Debian devotees to the raw taste of Firefox Nightly
[25]Wayland heading for default status as Mint devs mix it into Cinnamon 6 bun
Snap packages are also already internally compressed. Compression of Flatpak apps is a key reason that Fedora now uses Btrfs, although it's worth noting that, as of yet, Snap doesn't include any form of deduplication between separate packages. However, experimental ZFS support [26]returned in the 23.10 release and ZFS includes block-level deduplication, so this could appear in time as well.
Ubuntu Core Desktop is not ready yet, and probably won't be for around another five or six months; the final slide says that "release blockers" include:
ISO creation and install experience
Testing infrastructure
Stable release tracks
Supporting documentation
However, the tech looks impressive. In 2024, Ubuntu will have been around for 20 years. There's already considerable interest in immutable distributions, and Canonical's Ubuntu Core [27]debuted in 2014 . It's not a household name, but Ubuntu Core is already out there in the field, and if it ships on schedule, Core Desktop will appear a decade after Core itself. The potential is very considerable and we will track it with interest. ®
Get our [28]Tech Resources
[1] https://events.canonical.com/event/31/contributions/246/
[2] https://www.theregister.com/2023/06/06/desktop_ubuntu_core_in_2024/
[3] https://www.theregister.com/2023/10/27/mint_wayland_cinnamon6/
[4] 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=2ZUu@tjnd1lrq0iptUOG8XAAAAAE&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[5] https://www.theregister.com/2022/06/17/ubuntu_core_22/
[6] https://ubuntu.com/core
[7] 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=44ZUu@tjnd1lrq0iptUOG8XAAAAAE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[8] 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=33ZUu@tjnd1lrq0iptUOG8XAAAAAE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[9] https://www.theregister.com/2022/12/23/new_preview_versions_of_suses/
[10] https://www.theregister.com/2023/01/12/endless_os_5/
[11] 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=44ZUu@tjnd1lrq0iptUOG8XAAAAAE&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[12] https://btrfs.readthedocs.io/en/latest/Status.html
[13] https://www.theregister.com/2017/08/16/red_hat_banishes_btrfs_from_rhel/
[14] https://www.theregister.com/2023/02/14/make_linux_safer_p1/
[15] https://www.theregister.com/2023/02/16/bulletproof_linux/
[16] https://regmedia.co.uk/2023/11/07/ubuntu-core-desktop_layers.jpg
[17] https://www.theregister.com/2023/09/19/ubuntu_2310_taking_shape/
[18] https://regmedia.co.uk/2023/11/07/ubuntu-core-desktop_gaming.jpg
[19] https://popey.com/blog/2023/11/ubuntu-core-snapdeck/
[20] 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=33ZUu@tjnd1lrq0iptUOG8XAAAAAE&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[21] https://ostreedev.github.io/ostree/
[22] https://www.theregister.com/2023/11/02/trinity_desktop_q4os/
[23] https://www.theregister.com/2023/10/30/linux_kernel_6_7_rundown/
[24] https://www.theregister.com/2023/11/01/official_mozilla_debian_firefox/
[25] https://www.theregister.com/2023/10/27/mint_wayland_cinnamon6/
[26] https://www.theregister.com/2023/10/14/ubuntu_2310_released/
[27] https://ubuntu.com/blog/announcing-ubuntu-core-with-snappy-transactional-updates
[28] https://whitepapers.theregister.com/
Re: Moving towards an Apple methodology..
"it appears to be a kind of guarantee that everything will just work and just keep working."
That has never been the case for Ubuntu, which is known as the "Windows amongst Linuxes" for a reason.
Re: Moving towards an Apple methodology..
I think there's probably a lot of nerds out there, like myself, who have Linux in their mix as a tool but not necessarily as their primary platform, for whom immutable distributions make a lot of sense. You lose a lot in flexibility but the trade is that somebody else does 80% of the work of being your system administrator.
Re: Moving towards an Apple methodology..
When it works, but if it doesn't you lose the whole point of FOSS.
1, My XYZ doesn't work in Ubuntu
2, Google error mesg
3, Find post telling you to add some magic gibberish to a config file / install a specific version of xyz.lib
Does this just say, "I'm sorry Dave, you can't do that", just replace it with the Ubuntu approved version of XYZ / buy an official UbXYZ peripheral ?
At which point I might as well buy a Mac
Re: Moving towards an Apple methodology..
I actually looked into creating something not dissimilar to this specifically to meet requirements for managed laptops at work so that we could issue developers with linux machines that we had the same kind of management capabilities over as we do our macs. In the end the scale of it just wasn't plausible for us to achieve given the limited resources of our sysadmin and platform teams, and things were allowed to stay pretty much in the hands of individuals.
I can definitely see businesses that will be very interested in getting this from a known-brand supplier that they can buy support from along with it.
Succesful
This scheme has proven to be very successful in Android so I don't see a reason why not.
I rarely have issues with Linux Mint, but it does break once in a while. For example: I once inadvertently nuked my python executable, thereby rendering the entire system inoperable (because Linux Mint is entirely glued together using Python scripts it seems).
Re: Succesful
You mean that you broke it, not that Mint became broken.
Don't assign responsibility for screwing something up to the distro when you admit in the same sentence that you broke things yourself by nuking python.
I can't imagine how you did that without using root privilege, so you really only have yourself to blame!
(1)Wait...what? and (2) Is it or isn't it?
From the article--
(1) "We suspect that Core Desktop might yet be the tool that validates Canonical's Snap format and helps to overcome some of the resistance it faces..."
So, you suspect that Canonical had to create a whole new distribution in order to validate its monumentally underwhelming and rejected Snap format? After all this time, 'Snap' needs to be validated ? How much more can Shuttleworth do to prove the lack of any redeeming graces to this abortion ('Snap'). Seems that Shuttleworth has not lost his knack of pontificating that anything he does is wonderful, and should be accepted without question. (...anyone remember the uproar in the Ubuntu community when Shuttleworth personally dictated (as in "mandated") that the desktop be rearranged, and then said, "...we created this. It's good for you. Get over it...")
(2) "...Next April a new LTS Ubuntu arrives, and alongside it will be a whole new immutable desktop edition ..."
"...Nor is this a whole new product...
Is this a new product, or not?
Was this written by AI, or not?
Moving towards an Apple methodology..
It feels as though they are making a move to Apple's one system to rule them all approach rather than the every-man for himself approach.
Not a very "linuxy" way of doing things but on the other hand it appears to be a kind of guarantee that everything will just work and just keep working.
Probably not likely to be used by the typical nerd but I can see that it has it's uses elsewhere.