Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental: add built-in Incus sysext image #1655

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Feb 13, 2024

TBD

How to use

---
variant: flatcar
version: 1.1.0
storage:
  files:
    - path: /etc/flatcar/enabled-sysext.conf
      contents:
        inline: |
          incus
    - path: /etc/userdb/core:incus-admin.membership
      contents:
        inline: "\n"
    - path: /etc/subuid
      append:
        - inline: |
            root:1001000000:1000000
    - path: /etc/subgid
      append:
        - inline: |
            root:1001000000:1000000

Testing done

TBD

Related to: flatcar/Flatcar#1319

@tormath1
Copy link
Contributor Author

tormath1 commented Mar 13, 2024

First try:

# incus launch images:ubuntu/22.04 ubuntu-01
# incus start ubuntu-01
# incus exec ubuntu cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

NOTE:

  • Socket is not starting correctly because it can't find the group incus-admin
  • Same as podman, we need to generate subuid / subgid

Copy link

github-actions bot commented Mar 13, 2024

@pothos
Copy link
Member

pothos commented May 12, 2024

Same as podman, we need to generate subuid / subgid

Would be good to use the same approach as done there to make sure that the extensions don't conflict.

tormath1 and others added 7 commits August 1, 2024 12:18
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Incus build uses pkg-config support in Go to link against some library.
This needs the correct sysroot version of PKG_CONFIG to be exported.

Signed-off-by: Jeremi Piotrowski <[email protected]>
Co-Authored-By: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
this is required when loading the sysext image to dynamically load /
unload the groups provided by the image.

Signed-off-by: Mathieu Tortuyaux <[email protected]>
This requests the `incus.service` for the multi-user.target

Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants