Skip to content

Conversation

@warhodes-dev
Copy link
Contributor

This example script is guaranteed to fail on modern Ubuntu releases due to outdated configuration. These changes allow the script to pass on at least Noble:

  • Fixes container.create arguments to request Noble image instead of Xenial, as Xenial images are no longer available

  • Changes cgroups key strings to use cgroups v2 nomenclature (max instead of limit_in_bytes, peak instead of max_usage_in_bytes)


The Xenial image issue manifests as:

Downloading the image index
ERROR: Couldn't find a matching image

The cgroups issue (which, admittedly, will only occur on systems running cgroups v2) will manifest as KeyError: invalid cgroup entry. I propose this change simply because cgroups v2 is default on modern Ubuntu releases.

This example script is guaranteed to fail on modern Ubuntu releases due to outdated configuration. These changes allow the script to pass:

- Fixes container.create arguments to request Noble image instead of Xenial, as Xenial images are no longer available

- Changes cgroups key strings to use cgroups v2 nomenclature ('max' instead of 'limit_in_bytes', 'peak' instead of 'max_usage_in_bytes')

Signed-off-by: Austin Rhodes <[email protected]>
@stgraber stgraber merged commit 8559ce0 into lxc:main Dec 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants