Skip to content

Conversation

onixie
Copy link

@onixie onixie commented Mar 2, 2020

Similar like the PR nix-community/nixops-vbox#2 for virtualbox backend, the changes here are to extend network capabalities for libvirt backend following the idea I proposed at NixOS/nixops#1223.

Though the implementation is quite different from virtualbox backend, I tried to keep the name as well as the layout of nix module options consistent between the two backends. I also add some libvirt specific options such as various modes for macvtap device, virtualport for bridge device such as Open vSwitch, etc.

I have done some simple tests with commands like deploy (and redeploy), start, stop and destroy.
I also tried to keep the backward compatibilities though I don't know if my tests could cover all such cases.

Glad to have you review and maybe more tests and trials.
Thanks.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/pr-to-support-network-resources-for-virtualbox-backend-in-nixops/6066/2

It fails deploying to a remote libvirtd if the primary network is
limited to be a NAT or isolated network. Also in order to keep
backward compatibility, it is better to keep the first interface
as primary.
@onixie onixie force-pushed the network-resource-support branch from 4047f36 to 1178e08 Compare March 10, 2020 05:15
@grahamc
Copy link
Member

grahamc commented Jun 3, 2020

Hi there, would you mind rebasing on top of master? There have been some substantial changes to make it work with NixOps master / the upcoming NixOps 2.0.

@onixie
Copy link
Author

onixie commented Jun 9, 2020

Hi @grahamc
Oh definitely yes. I'll work on it and let you know later.

@onixie onixie force-pushed the network-resource-support branch from d670b60 to 5084482 Compare July 2, 2020 06:26
@onixie onixie force-pushed the network-resource-support branch from 5084482 to cfee923 Compare July 2, 2020 06:32
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 this pull request may close these issues.

3 participants