nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Can't find vbox image login for image used by nixops (trying to debug SSH issues) #12

Open ixmatus opened 8 years ago

ixmatus commented 8 years ago

Documentation doesn't mention the user or password for the image used by nixops and the one I did find (demo, demo) doesn't work.

domenkozar commented 8 years ago

What documentation did you follow?

ixmatus commented 8 years ago

I've been using this: https://nixos.org/nixops/manual/ and I found the (demo, demo) credentials mentioned here: https://nixos.org/nixos/download.html

domenkozar commented 8 years ago

@ixmatus there are no default credentials. nixops ssh uses internal private ssh keys. Otherwise it's whatever you put in .nix configuration

ixmatus commented 8 years ago

@domenkozar well, I'm still confused because root is passwordless on the nixos image? I finally have SSH working now but I still don't think this issue is resolved. If I ever have to "log in" by typing a username and password at the login screen on the virtualized terminal presented to me by Virtualbox (i.e, I have virtualbox.headless = false) I still don't know how to do that.

So the information is just missing unless I skipped something (which is certainly possible), if it's "fiddle with the configuration here to set the credentials you would want or use" then I would also be happy to add that to the docs for you guys and submit a PR.

domenkozar commented 8 years ago

root is passwordless on livecd. You're deploying an actual NixOS, which is locked down by default.

ixmatus commented 8 years ago

Huh, I tried with no password too and that didn't work.

Also (slightly off-topic, I can move to another ticket if you like), the SSH issue was because I had an interface named virtr0 up and nixops was, for some reason, deriving the image's IP address from that interface instead of vboxnet0, removing the interface fixed the issue. Would that also be useful for me to add to docs?

domenkozar commented 8 years ago

@ixmatus sure!