# Create an Ubuntu 26.04 container on ChromeOS

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/)
- [Create an Ubuntu 26.04 container on ChromeOS](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/page-1/)
- [Share files between ChromeOS and Ubuntu containers](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/page-2/)
- [Run and export Linux desktop applications](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/page-3/)
- [Manage containers, registries, and images](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/page-4/)
- [Next Steps](https://learn.arm.com/learning-paths/laptops-and-desktops/chrome-os-lxc/_next-steps/)

## Understand Baguette and Distrobox on ChromeOS

The Lenovo Chromebook Plus 14 uses the Arm-based [MediaTek Kompanio Ultra processor](https://www.mediatek.com/kompanio-ultra). It gives you an energy-efficient platform for Arm Linux development, containerized workflows, and everyday coding on the go.

Starting with ChromeOS version 147, containerless Linux (known as Baguette) became the default for all newly created Linux environments. Baguette replaces the legacy virtual machine (VM) and LXD daemon architecture with a direct Debian 13 VM.

Because Baguette removes the LXD daemon, multi-container management using Crostini through `vsh termina` and `lxc launch` is deprecated.

In return, you gain:

- Direct cgroups support
- Kernel-based Virtual Machine (KVM) virtualization access
- Faster disk I/O
- Roughly 700 MB lower idle RAM usage

Rootless Podman paired with Distrobox is now the standard way to run Ubuntu and other Linux distributions on ChromeOS.

You’ll verify that your Chromebook uses Baguette, install Podman and Distrobox on the Debian 13 host, and launch an Ubuntu 26.04 Long-Term Support (LTS) container ready for Arm development.

## Check your ChromeOS Linux environment

Open the ChromeOS Terminal app from the app launcher to start a shell in your Linux environment.

Run this command to check your Linux distribution codename and virtualization type:

```bash
cat /etc/os-release | grep VERSION_CODENAME
```

Interpret the output to see which type your Linux environment uses:

- `VERSION_CODENAME=trixie` means you’re running Baguette (containerless Debian 13 VM). Skip ahead to installing Podman and Distrobox.
- `VERSION_CODENAME=bookworm` means you’re running a legacy Crostini LXD container. Follow the migration steps next before continuing.

## Migrate from legacy Crostini to Baguette

ChromeOS system updates don’t automatically convert Linux environments created before version 147 to Baguette. If the check showed `bookworm`, migrate to Baguette with three steps:

1. Back up your Linux files by copying them to **My files** or **Downloads** in the ChromeOS Files app, or open **Settings > About ChromeOS > Developers > Linux development environment > Backup & restore** to export a backup archive.
2. Delete the legacy Linux environment under **Settings > About ChromeOS > Developers > Linux development environment > Remove**.
3. Re-enable the Linux development environment under **Settings > About ChromeOS > Developers > Linux development environment**. On ChromeOS version 147 and later, the **Set up** button provisions a fresh Debian 13 Baguette VM automatically.

After the new environment finishes setting up, open the Terminal app. You’ll see a message about the new Linux environment. It mentions ChromeOS version 143 because Baguette first shipped for new environments then. Version 147 made it the default:

```text
__output__NOTICE:
__output__To simplify system architecture and maintenance, Crostini has switched
__output__by default to a containerless design for new environments starting in
__output__ChromeOS version 143 and newer.
__output__
__output__If you experience unexpected issues with the new design, please report
__output__them using the instructions available at
__output__https://www.chromium.org/chromium-os/developer-library/guides/bugs/platform-public-tracker/.
__output__
__output__If you would like to revert to the previous system architecture, you may
__output__visit chrome://flags#containerless-crostini in your Chrome browser and set
__output__the flag to "Disabled", then restart your device, and un- and reinstall
__output__Crostini.
```

Re-run the `cat /etc/os-release` command and confirm `VERSION_CODENAME=trixie`.

## Install Podman and Distrobox

On the Debian 13 Baguette host, update package lists and install Podman and `curl`:

```bash
sudo apt update && sudo apt install -y podman curl
```

Install Distrobox using the official install script:

```bash
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh
```

Confirm that both Podman and Distrobox are available on your host.

Print the Podman version:

```bash
podman --version
```

The output is similar to:

```text
__output__podman version 5.4.2
```

Print the Distrobox version:

```bash
distrobox version
```

The output is similar to:

```text
__output__distrobox: 1.8.2.5
```

## Create and enter an Ubuntu 26.04 container

Create a new rootless Ubuntu 26.04 LTS container named `u26`:

```bash
distrobox create --yes --name u26 --image docker.io/library/ubuntu:26.04
```

**Note**

You can substitute another Ubuntu release tag, such as `docker.io/library/ubuntu:24.04`, if you want a different version.

Enter the Ubuntu container. On first entry, Distrobox installs its integration packages inside the container and mirrors your host user account:

```bash
distrobox enter u26
```

Verify that you’re running Ubuntu 26.04 on Arm (`aarch64`):

```bash
cat /etc/os-release | grep PRETTY_NAME && uname -m
```

The expected output is:

```text
__output__PRETTY_NAME="Ubuntu 26.04 LTS"
__output__aarch64
```

## Set up Ubuntu for development

Distrobox automatically mirrors your Debian host username, home directory (`~/`), and `sudo` access inside the Ubuntu container, so you don’t need to create a separate non-root user.

Update the Ubuntu package index and upgrade installed packages:

```bash
sudo apt update && sudo apt upgrade -y
```

Install starter development and networking tools:

```bash
sudo apt install -y gcc net-tools
```

**Note**

These packages are examples. Install any compilers, runtimes, or utilities your development workflow needs.

### Customize the container shell prompt

Distrobox shares both your host hostname (default is penguin) and your `~/.bashrc` file with Ubuntu. As a result, the default shell prompt (`user@penguin:~$`) looks identical on the Debian host and inside the Ubuntu container.

Inside any Distrobox container, Distrobox sets the `CONTAINER_ID` environment variable to the container name (`u26`). You can use `CONTAINER_ID` to show a `user@u26` prompt in Ubuntu while keeping `user@penguin` on Debian.

From inside your Ubuntu shell, append a prompt check to `~/.bashrc`:

```bash
cat << 'EOF' >> ~/.bashrc

# Show the Distrobox container name in the prompt
if [ -n "$CONTAINER_ID" ]; then
    PS1="${PS1//\\h/$CONTAINER_ID}"
fi
EOF
```

When `CONTAINER_ID` is set, this check replaces the `\h` hostname placeholder in `PS1` with the container name while keeping your existing prompt colors and terminal title. On the Debian host, `CONTAINER_ID` isn’t set, so your prompt remains unchanged.

Reload `~/.bashrc` to apply the change in your current session:

```bash
source ~/.bashrc
```

Your prompt updates to `user@u26:~$`, where `user` is your ChromeOS Linux username. When you run `exit` to return to the Debian 13 Baguette host, your prompt shows `user@penguin:~$` again. Because this snippet uses `CONTAINER_ID`, it works automatically for any other Distrobox containers you create later.

## What you’ve accomplished

You verified that your Chromebook runs the Debian 13 Baguette VM, installed rootless Podman and Distrobox, and launched an `aarch64` Ubuntu 26.04 development container. Next, you’ll configure ChromeOS and Google Drive folder sharing and verify two-way file access from Ubuntu.
