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

Convert libvirtd to use make-disk-image #1187

Closed
wants to merge 1 commit into from

Conversation

clefru
Copy link
Contributor

@clefru clefru commented Jul 30, 2019

This fixes #931 by reusing the
image builder of <nixpkgs/nixos/lib/make-disk-image.nix>. This image
builder produces nixos.qcow2 instead of disk.qcow2. This image is now
"baseless", so it obsoletes "qemu-img rebase". We can also remove our
special-case image builder libvirtd-image.nix as a whole.

This fixes NixOS#931 by reusing the
image builder of <nixpkgs/nixos/lib/make-disk-image.nix>. This image
builder produces nixos.qcow2 instead of disk.qcow2. This image is now
"baseless", so it obsoletes "qemu-img rebase". We can also remove our
special-case image builder libvirtd-image.nix as a whole.
@teto
Copy link
Member

teto commented Aug 6, 2019

thanks for fixing this. The PR looks sound. I have a few trouble with my nixops setup at the moment but I will try to give it a run next week !

I am concerned abouyt the removal of nix/libvirtd-image.nix . I have pending changes that make use of qemuGuest in libvirtd-image.nix . If this gets removed, where am I supposed to move the declaration

@clefru
Copy link
Contributor Author

clefru commented Aug 7, 2019

@teto Can you show me your modifications? I couldn't find them in your pull requests or in github.com/teto/nixops.

@teto
Copy link
Member

teto commented Aug 8, 2019

for instance this line is new (the filename has changed but it's the same : https://github.com/teto/nixops/blob/ad4c1866b88075bd6b28d2c9f4e39d74a8ca2027/nix/libvirtd/image.nix#L22).
It would be nice to keep having some libvirtd specific configuration ? even though this might be a bad example as it's useful outside libvirt, as soon as we use qemu in fact.

@clefru
Copy link
Contributor Author

clefru commented Aug 8, 2019

We have libvirtd specific options also with the new image builder. Just stick "services.qemuGuest.enable = true;" to the bottom of the file in libvirtd.nix inside the config set. The image builder will pick that up, because the "config" option passed into the function call as "config = config" is derived from the config specified on the bottom of the file (it comes back in via a funciton argument at the top of the file, at least that's my understanding.)

@teto
Copy link
Member

teto commented Aug 30, 2019

this looks good, can we merge ?

@clefru
Copy link
Contributor Author

clefru commented Aug 30, 2019

From my point of view, yes :)

@teto
Copy link
Member

teto commented Sep 9, 2019

Now that nixops backends are implemented as plugins, you should reopen the PR against https://github.com/nix-community/nixops-libvirtd (I believe).

@clefru
Copy link
Contributor Author

clefru commented Sep 9, 2019

Meh, sorry. I don't feel like testing this again. I'll drop the PR entirely and keep nixops as is locally.

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.

permissions problems
2 participants