donotmerge: IBX changes
Some (trash, temporary) changes I had to perform on bootc to get IBX to work
./Containerfilebuilds a bootable image from an existing normal IBX seed./build_seed.shis just a helper script
To install on recipient:
sudo podman run --privileged -v $PWD/authkeys:/authkeys --env RUST_LOG=trace -v /var/tmp:/var/tmp -v /var/lib/containers/storage:/var/lib/containers/storage --pid=host -it quay.io/otuchfel/bootc:seed bootc install to-existing-root --acknowledge-destructive --stateroot omeroot --root-ssh-authorized-keys /authkeys --bound-images pull
This PR only exists to start discussions around concrete issues, it's not meant to be merged.
Current state:
- Installation of the seed image on new stateroot completes successfully
- Host reboots successfully and connects to the network
But...
- bootc only allows us to set authorized keys for the root user, not the
coreuser as we would expect from OCP - For some reason, I can't SSH even to the root user?
sshdis running,/root/.authorized_keysis populated with the key I expect... yet:
Even though I'm using ssh-ed25519, so it's rather strange... Will look into it once I come back from vacation
Future work:
- Fix SSH bug
- Integrate a PoC that uses lifecycle-agent and actually does a proper upgrade
While the install completes "successfully", SSHing after rebooting doesn't work
ssh -o IdentityFile=./bip-orchestrate-vm/ssh-key/key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected]
ssh: connect to host 192.168.126.10 port 22: Connection refused
make: *** [Makefile:425: ssh] Error 255
Host SSH keys were not created... Suspecting selinux?
EDIT: neither did the key I added with --root-ssh-authorized-keys
Force push because of rebase
Host SSH keys were not created... Suspecting selinux?
EDIT: neither did the key I added with
--root-ssh-authorized-keys
OK figured out it was because of /etc/ssh/sshd_config.d/40-rhcos-defaults.conf disabling root login completely, not just with password
OK figured out it was because of /etc/ssh/sshd_config.d/40-rhcos-defaults.conf disabling root login completely, not just with password
Ouch...maybe we should revisit that.