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

Select IP of resulting machine #21

Open
typetetris opened this issue Nov 16, 2020 · 1 comment
Open

Select IP of resulting machine #21

typetetris opened this issue Nov 16, 2020 · 1 comment

Comments

@typetetris
Copy link

Can I somehow select the IP a machine will have later?

networking.privateIPv4 seems to have no effect.

@sorki
Copy link

sorki commented Jan 28, 2021

This used to work by means of nixops filling networking.extraHosts so you could refer to other hosts in the network by their names.

Currently the output is just

networking = {
        extraHosts = "\n";
};

due to hosts in https://github.com/NixOS/nixops/blob/master/nixops/deployment.py#L655 not being populated, the function that should do this creates empty dict at https://github.com/NixOS/nixops/blob/master/nixops/deployment.py#L713

I don't get how this is supposed to work with the new plugin system - should nixops-libvirtd somehow provide IPs from its state?

Also I think that networking.privateIPv4 has no effect at all when looking at impl and it seems to be ignored even for guest IP queries (and for VM image creation).

This was quite useful feature of older nixops, which allowed to toy with clustered setups without any IPs or DNS servers.

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

No branches or pull requests

2 participants