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

[RFE] Flatcar should support DRM and Virtio GPU #1304

Closed
retpolanne opened this issue Dec 21, 2023 · 7 comments
Closed

[RFE] Flatcar should support DRM and Virtio GPU #1304

retpolanne opened this issue Dec 21, 2023 · 7 comments
Labels
kind/feature A feature request

Comments

@retpolanne
Copy link

Current situation

I'm currently using Flatcar on QEMU for Aarch64 on Packer. Packer sends boot commands through a VNC connection and it doesn't know how to send data to the VM somehow else. In order to change the password so we can access SSH, we need to send boot commands to the machine, even if we're trying to use ignition. [1]

The virt machine on QEMU doesn't implement graphics, so it's not possible to use boot commands, unless we use the option -device virtio-gpu on QEMU - grub shows up but once kernel is booted we get no display due to CONFIG_DRM and CONFIG_DRM_VIRTIO_GPU not being set on the kernel.

Impact

Can't use Flatcar with Packer on QEMU aarch64.

Ideal future situation

Be able to use Flatcar with Packer on QEMU aarch64.

Implementation options

Add these configs CONFIG_DRM and CONFIG_DRM_VIRTIO_GPU to the kernel for the qemu ARM 64 image build.

Additional information

[1] https://github.com/flatcar/flatcar-packer-qemu/blob/f710f2fbfa0b67076f63e550e003a0188cd2e0e5/flatcar-linux.json#L29

@retpolanne retpolanne added the kind/feature A feature request label Dec 21, 2023
@pothos
Copy link
Member

pothos commented Dec 21, 2023

To solve your problem I would rather recommend to use an Ignition config that sets up SSH, or have a step that mounts the image and prepares it with the given SSH key by copying it over.

But anyway I would recommend you to look for alternatives: Using Packer creates state in the image that is hard to get rid off and can be a source of bugs. More to read here: https://www.flatcar.org/docs/latest/installing/customizing-the-image/customize-the-image/

@ader1990
Copy link

ader1990 commented Jan 9, 2024

Hello,

This issue has already been addressed by #1030 and fixed by flatcar/scripts@c76e969.

This patch has landed first in alpha-3637.0.0, maybe we should backport it to stable too?

Current stable is 3602.2.3.

@retpolanne what version are you now using?

Thank you.

@retpolanne
Copy link
Author

Hey @ader1990, I was using flatcar current stable.

@ader1990
Copy link

ader1990 commented Jan 9, 2024

@retpolanne beta or alpha should already have the required patch, but the flatcar current stable does not have it.

@ader1990
Copy link

ader1990 commented Jan 9, 2024

Update: according to the release planning, the new stable that is going to be released in a few days from now, is going to be: 3760.2.0, which should contain the fix.

https://github.com/orgs/flatcar/projects/7/views/8?pane=issue&itemId=47547563

@ader1990
Copy link

Hello @retpolanne,

The stable version which was upated last week contains the necessary fix (3760.2.0).

Thank you,
Adrian

@retpolanne
Copy link
Author

@ader1990 yay! It worked :) Don't forget -device virtio-gpu -device virtio-keyboard on qemu or packer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A feature request
Projects
None yet
Development

No branches or pull requests

3 participants