I am trying to run nixos in an openstack nova cluster. I am using nixos-generator to produce an image and push it to the cloud.
has anyone succeeded in doing so?
My understanding is that the SSH key should be stored automagically by the openstack ec2-like endpoint using cloud-init. But … I can only login if I force the ssh key in the image configuration
It’s a bit sad, but I don’t know if the proble comes from the openstack cluster or nixos.
Currently I see a lot of posts about AWS and GCP, unfortunately (or maybe not), these are not the only one out there, and more info for other technologies would be great
The openstack image doesn’t use cloud-init but a shell script using curl instead (mainly to reduce the closure size)!
Once you are logged with your ssh key, do you see any error in the openstack-init systemd service?
Also, are you sure your openstack cloud provides metadata via http and not via a config drive?
I suspect a problem with the registered ssh public key, starting all over was good.
Then, I converted my configuration to a flake (flake lover spotted), and it ended up with quite a big update… so I will need to have a closer look to the “channel” used by nixos-generators
Hi @freezeboy, do you mind sharing a repository where you have your source for building the openstack image with cloud-init support.
I am fairly new to nixos, and that is my goal.