Merged
Conversation
27ea7f4 to
622bdcf
Compare
pothos
reviewed
Apr 29, 2024
pothos
reviewed
Apr 29, 2024
...container/src/third_party/coreos-overlay/coreos-base/afterburn/files/coreos-metadata.service
Show resolved
Hide resolved
Contributor
Author
|
Tested locally on my Kubevirt Environment and the image works as expected. Workflow:
virtctl image-upload pvc flatcar-kubevirt-pvc --size=10Gi --image-path flatcar_production_kubevirt_image.qcow2
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
generation: 1
labels:
kubevirt.io/os: linux
name: vm-flatcar
spec:
running: true
template:
metadata:
creationTimestamp: null
labels:
kubevirt.io/domain: vm-flatcar
spec:
architecture: amd64
nodeSelector:
kubernetes.io/arch: amd64
domain:
cpu:
cores: 2
devices:
disks:
- disk:
bus: virtio
name: disk0
- cdrom:
bus: sata
readonly: true
name: cloudinitdisk
machine:
type: q35
resources:
requests:
memory: 1024M
volumes:
- name: disk0
persistentVolumeClaim:
claimName: flatcar-kubevirt-pvc
- cloudInitConfigDrive:
userData: |
{"ignition":{"version":"3.3.0"},"kernelArguments":{"shouldExist":["flatcar.autologin"]},"passwd":{"users":[{"name":"core","passwordHash":"$6$sn3ZSJJJln5JkAZb$VDTKzLpCyjlEe7Kh0DKjOnEawkkOoi0tOKVbcCv0FIWSf3u9Y1p1I5YdJJ5L8uDmmMvO2CBlmJZNdxFuekjjE1"}]}}
name: cloudinitdisk
|
|
Build action triggered: https://github.com/flatcar/scripts/actions/runs/8890177334 |
622bdcf to
79bc25a
Compare
Contributor
Author
|
@pothos thank you for the comments. I have created the PR to enable hostname set using the metadata from the config drive: |
Contributor
Author
|
I will also start a documentation PR with the discussion resume on how Ignition or coreos-cloudinit works and in what scenarios, plus the above examples / steps to run Flatcar with KubeVirt. |
79bc25a to
886e948
Compare
Contributor
Author
|
Tested locally on KubeVirt using Ignition and Bash userdata, and all works as expected. |
As Ignition supports KubeVirt, add a custom oem for it and also the required parts to be able to build an image in .qcow2 format that is already using internal .qcow2 gzip compression. Fixes: flatcar/Flatcar#1358 Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
886e948 to
6efe345
Compare
pothos
approved these changes
Apr 30, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As Ignition supports KubeVirt, add a custom oem for it and also the required parts to be able to build an image in .qcow2 format and .gz compression.
Fixes: flatcar/Flatcar#1358