Comments (10)
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.
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.
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.
@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:
Lines 134 to 146 in b7c4555
from coreos-assembler.
@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.
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.
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.
Though maybe it would be better to change
run
to work more like Vagrant and inject a ssh key and then usessh
. 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.
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.
thanks @dustymabe for trying it!
from coreos-assembler.
Related Issues (20)
- How to build a PXE Image with Dockerfile layering HOT 1
- `coreos.unique.boot.failure` kola test fails on aarch64
- `coreos.ignition.failure` sometimes fails on RHCOS HOT 15
- Create disk failed due to incorrect option format on Fedora 39 HOT 1
- build-arch jobs failing with "Error: unmarshalling error into &errorhandling.ErrorModel"
- cosa build error: "cli: stat /var/tmp/mantle-qemu771203327/swtpm-sock: no such file or directory" HOT 4
- [RFE] kola should support to start previous build to do external tests HOT 4
- OSBuild without compression yields GRUB failures HOT 25
- what is the difference between dasd and metal4k on s390x? HOT 9
- Kola Custom Test HOT 10
- `buildextend-virtualbox` and `buildextend-vmware` improperly handle raw disks >=8GB HOT 6
- `kola testiso` tests should check for badness in console/journal output HOT 5
- rework iscsi tests architecture HOT 2
- osbuild should use a buildroot that matches the target system HOT 6
- kola qemuexec fails on PXE with `uefi-secure` qemu-firmware HOT 2
- cosa run should't expect an image when `--netboot` is present
- 4K UEFI PXE tests failing HOT 2
- Docs: Using the provided alias with `COREOS_ASSEMBLER_CONFIG_GIT` leave FS with dangling files HOT 2
- Check that there is console output / a login prompt to make sure getty works HOT 2
- Fail test on SELinux denials and export audit.log if any found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coreos-assembler.