-
Notifications
You must be signed in to change notification settings - Fork 660
Flatcar Container Linux support #1372
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
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
A switch to ignition is not needed, as Flatcar is still able to be configured via cloud config: It is only not anymore the main focus of development and only a subset of options is supported; but anyways the support is still there. |
Are you able to provide a YAML file, for the "stable" image ? https://www.flatcar.org/docs/latest/installing/vms/qemu/ Typically the cloud-config #cloud-config
# vim:syntax=yaml
growpart:
mode: auto
devices: ['/']
users:
- name: "anders"
uid: "1000"
homedir: "/home/anders.linux"
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: true
ssh-authorized-keys:
- ... keys go here ...
write_files:
- content: |
#!/bin/sh
set -eux
LIMA_CIDATA_MNT="/mnt/lima-cidata"
LIMA_CIDATA_DEV="/dev/disk/by-label/cidata"
mkdir -p -m 700 "${LIMA_CIDATA_MNT}"
mount -o ro,mode=0700,dmode=0700,overriderockperm,exec,uid=0 "${LIMA_CIDATA_DEV}" "${LIMA_CIDATA_MNT}"
export LIMA_CIDATA_MNT
exec "${LIMA_CIDATA_MNT}"/boot.sh
owner: root:root
path: /var/lib/cloud/scripts/per-boot/00-lima.boot.sh
permissions: '0755'
# This has no effect on systems using systemd-resolved, but is used
# on e.g. Alpine to set up /etc/resolv.conf on first boot.
manage_resolv_conf: true
resolv_conf:
nameservers:
- 192.168.5.3
ca-certs:
remove_defaults: false
trusted: Not sure how well the scripts work, on a read-only filesystem ? |
Currently there is no support for compressed images in Lima, so the .bz2 needs to be decompressed first. https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu_image.img.bz2 The image boots, but it doesn't set up the ssh login it seems. From the localhost login: core (automatic login)
Flatcar Container Linux by Kinvolk stable 3374.2.5 for QEMU
core@localhost ~ $ The Probably because
Otherwise there is a custom shell script, to set up the qemu cmd: https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_qemu.sh |
This comment was marked as outdated.
This comment was marked as outdated.
The issue was not the OEM, it was that the labels and paths for
Once Flatcar finds the cloud-init config, the user is created and the ssh keys are setup for But the rest of the instance configuration is failing. |
@afbjorklund Thanks for taking a look, it looks like these files need to be modified? |
Maybe they (the locations) can be configured during runtime somehow, env or cmdline ? But it seems that it only has a partial |
Apparently there is a special image for UEFI, noticed when looking at the arm64 variant. Debug setup: images:
- location: "https://stable.release.flatcar-linux.net/amd64-usr/3374.2.5/flatcar_production_qemu_uefi_image.img.bz2"
arch: "x86_64"
digest: "sha512:3fe0068f838f8055fbdc374e9d59ab6828d79f1d1d3c0b93fe6b89893ff06d1cbc4acdd19c0c6a54e7462cf86cdd29340eaa2ed6ad3fd114c552f43bce526718"
- location: "https://stable.release.flatcar-linux.net/arm64-usr/3374.2.5/flatcar_production_qemu_uefi_image.img.bz2"
arch: "aarch64"
digest: "sha512:0f4ee08e9a17ece104d477cbc1ab0eda6f410683aea0067779771587c3864df9f3527c1c647158064424b33918fd5bbabf6384e9d71ef4a98a672565d154aba8"
video:
display: "default"
|
Using Fedora CoreOS seemed to be slightly better documented, and it was used by Podman Desktop It also allows for installing various things in EDIT: Needed feature for installing into |
Flatcar doesn't have support for sshfs (or fuse), so it will have to use On a normal operating system you could install it, but that is not possible on an immutable OS. |
Not sure that we want to support this (using ignition and butane, instead of cloud-init) |
Any given reason? This seems interesting. |
No interest, duplication of the scripts?
The main user (of CoreOS) is Podman, but they are set on doing their own "machine"... |
I'm super interested in this, but I can understand why maintaining ignition.yaml is unappealing. |
Most of the cloud-init and ignition/butane is static, so it is actually the OS that is unappealing. I mean it being (mostly) read-only, and requiring a reboot for each (system) installation. Things like that? I'm sure there is some use case where it fits, I just don't like it much myself. |
Description
Flatcar Container Linux (https://www.flatcar.org/) is an interesting immutable Linux OS which suits well to run e.g. Kubernetes. Any change support for Flatcar Linux can be added to Lima as it does not seem to work "out-of-the-box" based on quick testing done.
The text was updated successfully, but these errors were encountered: