-
Notifications
You must be signed in to change notification settings - Fork 2
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
tree: various tweaks #1
Conversation
Just writing this here for now (let's adapt the README with that info): with this + coreos/coreos-assembler#3644 + coreos/coreos-assembler#3645, we can directly pass the iPXE config and we don't need to set up a bridge anymore. So the setup procedure is now:
The metal image needs to actually be expanded to some reasonable size, e.g.
|
And testing mounting within the VM (manually in the emergency shell for now):
|
These are tweaks we worked on together to get iSCSI booting working. I didn't reflect the changes back in the main README. Will let you do that. :) For posterity, notes on some of the things we changed: - delete `saveconfig.json`; we recreate the config imperatively from scratch each time for more clarity - put `targetcli_script` in `/usr/local/bin`; we can't write files directly in `/` - drop the virtiofs mount unit; we rely on cosa to do that (this assumes then that we're running this from a cosa workdir, likely we'll want to make this more generic in the future) - order against `target.service`, not `target.container`; the latter is just an input file to the quadlet generator and is foreign to systemd - add `ConditionFirstBoot=true` since we only need to set up the iSCSI target on first boot - move `network-online.target` ordering to `[Unit]` section - make all the `targetcli` commands run in the same `podman exec` invocation - cargo-cult a bunch more ACL-related targetcli settings
These are tweaks we worked on together to get iSCSI booting working.
I didn't reflect the changes back in the main README. Will let you do that. :)
For posterity, notes on some of the things we changed:
saveconfig.json
; we recreate the config imperatively from scratch each time for more claritytargetcli_script
in/usr/local/bin
; we can't write files directly in/
target.service
, nottarget.container
; the latter is just an input file to the quadlet generator and is foreign to systemdConditionFirstBoot=true
since we only need to set up the iSCSI target on first bootnetwork-online.target
ordering to[Unit]
sectiontargetcli
commands run in the samepodman exec
invocation