Code Monkey home page Code Monkey logo

Comments (10)

dustymabe avatar dustymabe commented on August 14, 2024 1

Would there be some detection that the QEMU monitor is running before dropping the message?

with coreos-assembler run it is using qemu so we don't have to do any detection. The auto login on serial conolse with coreos-assembler run only happens because we drop in a unit to make it happen so this is very much specific to run. I think with your work we can just also tell ignition to drop in another file and it will give a nice message to the user telling him/her how to break out.

from coreos-assembler.

jlebon avatar jlebon commented on August 14, 2024 1

Though maybe it would be better to change run to work more like Vagrant and inject a ssh key and then use ssh. Would fix tty corruption issues I think.

OTOH, there's something really nice and clean about just wrapping qemu-kvm for this. The way I've been using run is just for quick tests, with anything more "permanent" using my regular libvirt scripts.

from coreos-assembler.

dustymabe avatar dustymabe commented on August 14, 2024 1

Just tried this out! Looks great!

Fedora 29 (CoreOS preview)
Kernel 4.19.6-300.fc29.x86_64 on an x86_64 (ttyS0)

coreos login: core (automatic login)

Fedora CoreOS (preview)
https://github.com/coreos/fedora-coreos-tracker
WARNING: All aspects subject to change, highly experimental
---

To exit, press Ctrl-A and then X.

from coreos-assembler.

dustymabe avatar dustymabe commented on August 14, 2024

@rfairley - do you know how easy this would be to do? I imagine it would involve us writing a file using ingnition similar to what we do for creating the systemd unit to autologin:

"systemd": {
"units": [
{
"name": "[email protected]",
"dropins": [
{
"name": "autologin-core.conf",
"contents": "[Service]\\nTTYVTDisallocate=no\\nExecStart=\\nExecStart=-/usr/sbin/agetty --autologin core --noclear %I \$TERM\\n"
}
]
}
${ign_var_srv_mount}
]

from coreos-assembler.

rfairley avatar rfairley commented on August 14, 2024

@dustymabe Creating a systemd dropin unit passed through Ignition seems clean. Would there be some detection that the QEMU monitor is running before dropping the message? If it is detected that the QEMU monitor is running, then the dropin unit would drop a file mentioning Ctrl-A in /run/motd.d/ at startup so sshd can show it. If it is not detected, then no file is dropped.

from coreos-assembler.

rfairley avatar rfairley commented on August 14, 2024

Will also give run a go, as I have not tried that out yet. I'll try building an system with the PAM changes and look look into how the detection ^ might work.

from coreos-assembler.

cgwalters avatar cgwalters commented on August 14, 2024

Though maybe it would be better to change run to work more like Vagrant and inject a ssh key and then use ssh. Would fix tty corruption issues I think.

(The question there would be...do we retain the "lifecycle binding" where closing ssh would kill the machine?)

from coreos-assembler.

dustymabe avatar dustymabe commented on August 14, 2024

Though maybe it would be better to change run to work more like Vagrant and inject a ssh key and then use ssh. Would fix tty corruption issues I think.

yeah that could be something we do in the future

(The question there would be...do we retain the "lifecycle binding" where closing ssh would kill the machine?)

I do like the lifecycle binding :)

from coreos-assembler.

rfairley avatar rfairley commented on August 14, 2024

Ahh, understood. I'm thinking the file could be dropped in the same [email protected] unit here - it would just be another line of script that the unit runs. Makes sense to go into /run/motd.d/ with it being generated at runtime (vs. /etc/motd.d/).

from coreos-assembler.

rfairley avatar rfairley commented on August 14, 2024

thanks @dustymabe for trying it!

from coreos-assembler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.