Skip to content
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

When using --vm-test aborted: ssh-host must be set occurs #375

Closed
ahayzen opened this issue Sep 10, 2024 · 0 comments · Fixed by #382
Closed

When using --vm-test aborted: ssh-host must be set occurs #375

ahayzen opened this issue Sep 10, 2024 · 0 comments · Fixed by #382

Comments

@ahayzen
Copy link

ahayzen commented Sep 10, 2024

It appears that in recent commits ( 55b239c ) a ssh-host was made mandatory.

In https://github.com/nix-community/nixos-anywhere/blob/main/docs/reference.md the usage is now Usage: nixos-anywhere [options] <ssh-host> which makes sense for deploying to a ssh-host.

But when you are running a --vm-test as described here https://github.com/nix-community/nixos-anywhere/blob/main/docs/quickstart.md#7-optional-test-your-nixos-and-disko-configuration with eg nix run github:nix-community/nixos-anywhere -- --flake <path to configuration>#<configuration name> --vm-test. I still get aborted: ssh-host must be set.

Now number 5 in https://github.com/nix-community/nixos-anywhere/blob/main/docs/reference.md#explanation-of-known-error-messages describes that <ip_address> has not been supplied.

My question is what should be set when using --vm-test as this is not being deployed to a real ip address? Should it just be localhost or a dummy value and should this be added to the quickstart ? Or is this a bug with the recent changes that aren't considering the --vm-test option ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant