- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Dear Team!
I use in Databricks a Cluster with Runtime 18 LTS.
In Azure, I see that the VMs have a different Ubuntu Version:
Why?
- Labels:
-
Workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago - last edited 7 hours ago
HI @a_user12
This is expected. The two Ubuntu versions describe two different layers.
Why they differ
- Azure portal (Ubuntu 22.04) shows the host VM's operating system. This is the base image Databricks uses for the virtual machines it provisions in your managed resource group.
- Databricks Runtime "System environment" (Ubuntu 24.04.4 LTS) describes the runtime image your Spark driver and workers actually run in. The runtime is deployed as a container on top of the host VM. It ships its own Ubuntu userland (libraries, system packages, Java, Python, R and so on), independent of the host's distribution.
A container shares the host's kernel but brings its own userland, so the two can legitimately report different Ubuntu releases. This also lets Databricks upgrade the runtime's OS and library stack without waiting for a change to the VM host image.
How to verify on your cluster
In a notebook cell:
%sh
cat /etc/os-release # shows the container userland (Ubuntu 24.04)
uname -r # shows the kernel, which comes from the host VMYou should see Ubuntu 24.04 in os-release, while the kernel version comes from the host VM.
Curiosity starts it, community finishes it.
Let's light up the Databricks Community! 🚀
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
The System environment page in the Databricks UI is generated live inside the runtime image on the driver, so it reports the true guest OS and Databricks Runtime 16.0 and above is built on Ubuntu 24.04 LTS, which matches the rest of the stack (Python 3.12.3, Scala 2.13.16 etc). The Azure field is usually static metadata rendered from the VM's image reference / marketplace plan and Databricks provisions classic compute VMs from its own curated images and may not match always. It's mostly a stale image label and not an actual OS version mismatch on the VM.
Databricks fully manages the OS image and its patching. If you want more details (security reviews) query the guest directly and trust that over any portal label.
# Run in a notebook attached to the cluster
import subprocess, shutil
print(shutil.which("cat") and subprocess.check_output(["cat", "/etc/os-release"]).decode())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago - last edited 6 hours ago
Hi , this is normal.
The Ubuntu version you see in Azure belongs to the VM itself, the host machine. Databricks manages and updates that VM image separately, and it doesn't need to match your runtime.
Databricks Runtime 18 runs in its own environment on top of that VM. That environment is the one that uses Ubuntu 24.04.3 LTS, as listed in the release notes, and it's where your code runs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Why they differ: on classic compute, Databricks runs the Databricks Runtime as a container on a Databricks-managed host VM. The Azure portal shows the host VM's OS (Ubuntu 22.04). The runtime release notes describe the OS inside the container (Ubuntu 24.04). The two layers are built and updated separately. This lets a runtime ship a newer userland and libraries without rebuilding the host image, and lets the host be patched without changing the runtime. A mismatch is expected and doesn't mean anything is misconfigured.
Here's output from a DBR 18 LTS cluster (standard access mode, %sh on the driver) that confirms both layers:
%sh
cat /etc/os-release # PRETTY_NAME="Ubuntu 24.04.5 LTS"
uname -r # 6.8.0-1070-azure
cat /proc/versionWhat this shows
- Runtime container: Ubuntu 24.04.5 (Noble). This is newer than the 24.04.4 in the release notes, so read the version from the cluster rather than relying on the docs.
- Host VM: the kernel 6.8.0-1070-azure was built for Ubuntu 22.04 (~22.04.1-Ubuntu, compiled with 22.04's gcc-11). It's a backported (HWE) kernel on a 22.04 host, so the Azure portal value is accurate, not a stale label.
- The container brings its own 24.04 userland and shares the host's kernel.
Note: on standard access mode, Python UDFs run in an isolated sandbox. A UDF reported a virtualised kernel (4.4.0), while %sh on the driver showed the real host kernel above. Use %sh on the driver to inspect the host.
Takeaway: 24.04 is the runtime image and 22.04 is the host VM with a 6.8 HWE kernel. They don't need to match, and each layer is patched on its own schedule.