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

QEMU images should have flatcar.autologin set as kernel parameter #71

Closed
pothos opened this issue Apr 3, 2020 · 0 comments · Fixed by flatcar-archive/coreos-overlay#636 or flatcar/scripts#99
Labels
kind/feature A feature request

Comments

@pothos
Copy link
Member

pothos commented Apr 3, 2020

Current situation

The graphical/serial console for QEMU images requires the user to log in with a password. Normally, no passwords are set because SSH keys are used for login.
To use the graphical/serial console the user needs to reboot the machine and manually append flatcar.autologin to the kernel command line parameters in GRUB.

Impact
A reboot is needed (assumed people actually know about that kernel parameter!) or a password needs to be configured via Ignition.

Ideal future situation
flatcar.autologin is always part of the kernel command line for QEMU images. This is no security problem because a user with console access can add it in GRUB if wanted when the machine reboots.

Implementation options
A OEM package is created for QEMU, so that image_to_vm.sh --format=qemu (or =qemu_uefi or =qemu_uefi_secure) creates an OEM partition with the following contents.

grub.cfg:

set oem_id="qemu"
set linux_append="flatcar.autologin"

oem-release:

ID=qemu
VERSION_ID=x.y.z
NAME="qemu"
HOME_URL="https://www.qemu.org/"
BUG_REPORT_URL="https://issues.flatcar-linux.org"

(Where x.y.z is the built Flatcar CL version.)

Additional information

flatcar.autologin is also the default for the out-of-band console on, e.g., Packet.

@pothos pothos added the kind/feature A feature request label Apr 3, 2020
sayanchowdhury added a commit to flatcar-archive/coreos-overlay that referenced this issue Oct 8, 2020
Fix flatcar/Flatcar#71

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
sayanchowdhury added a commit to flatcar-archive/coreos-overlay that referenced this issue Oct 8, 2020
Fix flatcar/Flatcar#71

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
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
1 participant