-
Notifications
You must be signed in to change notification settings - Fork 50
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
OEM: Provide Proxmox images #1783
Conversation
8b6f5ae
to
4bdeec5
Compare
4bdeec5
to
9ef9191
Compare
9ef9191
to
709fca5
Compare
Build action triggered: https://github.com/flatcar/scripts/actions/runs/11834695974 |
Hello, there is an existing Igntion PR that should work at coreos/ignition#1790. Could you include the Ignition PR into this one so we can do further testing? |
This needs to be reworked first and we have to drop the afterburn integration in Flatcar as the afterburn PR relies on cloud-init userdata and because Flatcar will run coreos-cloudinit anyway if it doesn't see Ignition user-data we would have it processed twice. For the network config that can be quite confusing because the afterburn network unit would only support a subset. |
64b0e74
to
7c833ba
Compare
Triggered a new build with the Ignition PR included |
@pothos hey, it looks like the build never started, can you take a look please ? (cc @plgueugnon) |
@arcln hey, pothos is AFK for now. I'll take over this PR. A CI build has been triggered :) |
7c833ba
to
a52c30b
Compare
@arcln here's the proxmox image if you want to try it: http://bincache.flatcar-linux.net/images/amd64/9999.0.101+kai-proxmox-support/flatcar_production_proxmoxve_image.img.bz2 |
Thank you, I tried the image and it didn't work because of a problem in the ignition PR (see coreos/ignition#1790 (comment)). Can you please run a new build when the PR is fixed ? Thanks |
a52c30b
to
456e9bb
Compare
456e9bb
to
c1ce858
Compare
@arcln ah I see, I already got this issue once. I started a new build with an updated patch: https://github.com/flatcar/scripts/pull/1783/files#diff-c65e2140094c80c4b4ce5c7c8494b6e4e72b78ef0692d236ffee1fb3932e11c5R157 |
great. it seems that the build needs approval once again @tormath1 |
@arcln it builds directly on our Jenkins (github actions only build for qemu targets) - I'll let you know once it's done. |
@fhemberger @mcbenjemaa many thanks for trying again Flatcar on Proxmox! I started a discussion to avoid spamming and distracting the PR review. You can continue the discussion here if you need: flatcar/Flatcar#1573 |
@pothos Could you please add the following change to your PR: --- coreos-metadata.service 2024-10-25 16:14:39.499357398 +0200
+++ coreos-metadata.service-proxmoxve 2024-10-25 16:14:55.180153512 +0200
@@ -25,6 +25,8 @@
ConditionKernelCommandLine=|flatcar.oem.id=akamai
+ConditionKernelCommandLine=|flatcar.oem.id=proxmoxve
+
Description=Flatcar Metadata Agent
[Service] |
2bdf792
to
48e1b35
Compare
Hi @tormath1 , i've tested your build on Proxmox using the cloud-init configuration and it works well (at least for network configuration and SSH keys). By the way, the hostname configuration process strips any FQDN: if you set 'test.vm-1', only 'test' will be retained as the hostname. Will continue testing the ignition part. |
Now available here: http://bincache.flatcar-linux.net/images/amd64/9999.9.101+kai-proxmox-support/flatcar_production_proxmoxve_image.img.bz2 |
@tormath1 Works fine for me, |
I was able to sucessfully configure a proxmox VM using ignition including user creation, file creation, custom sysext deployment, systemd unit 🎉 |
Thanks everyone involved in the testing of the image, that's truly appreciated ❤️ There is one last thing to sort out: flatcar/Flatcar#1573 (reply in thread) before going ahead. |
Hi, we got an extra test with @donch if you do not mind : complete configuration via terraform (upload of snippets and |
@abuisine I used Terraform provider
But this is an issue with the provider, starting the VM and everything after worked as expected. |
Hi @tormath1 , i was able to create a VM using Terraform with these providers :
All is working fine 👌 |
@donch Did you run into the resize issue as well? If not, it would be great if you could share your snippet for |
@fhemberger no issue on my side. You may have a disk smaller than the image size ? That's why you get the "shrinking" issue i guess. Here are my snippets:
|
Alright so it seems ok except the default behavior while no configuration is provided. |
Hi, it's not only a default behavior: the instance does not boot if no configuration is provided. I'm currently checking this. We aim for a Flatcar release by the end of the week, if it's not solved by this time I will merge this PR. It's ok to have this support in Alpha, even incomplete, we will get more feedback on it. EDIT: Upstream issue: coreos/afterburn#1126 |
7c42743
to
70d77e6
Compare
70d77e6
to
6df2ad8
Compare
Co-authored-by: Kai Lüke <[email protected]> Signed-off-by: Mathieu Tortuyaux <[email protected]>
Without configdrive the instance is failing to boot - this patch is currently under review on PR#1128 (coreos/afterburn) Signed-off-by: Mathieu Tortuyaux <[email protected]>
6df2ad8
to
c1cd336
Compare
waiting for seeing on Proxmox |
@deependhulla it's available here: https://www.flatcar.org/releases#release-4152.0.0 / documentation: flatcar/flatcar-website#337 |
This pulls in flatcar/bootengine#91
and flatcar/init#115 to run afterburn for
hostname, network, SSH key, and metadata attribute setup. The afterburn
support for the SSH key and hostname parses the user-data when it's
cloud-init. The coreos-cloudinit support is not there but can be added
in addition: We need to add a new provider that varies from the existing
config drive support because the file is called user-data and not
user_data, and it needs to look for a filesystem label cidata and not
config-2.
Related to: flatcar/Flatcar#1040
How to use
Follow-up: fix coreos-cloudinit as mentioned above, and better don't make it work through the mount unit trigger but explicitly
Testing done
Jenkins
changelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.