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

Network resource support for libvirt backend #9

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

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.
@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.

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