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
Conversation
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.
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 |
@teto Can you show me your modifications? I couldn't find them in your pull requests or in github.com/teto/nixops. |
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). |
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.) |
this looks good, can we merge ? |
From my point of view, yes :) |
Now that nixops backends are implemented as plugins, you should reopen the PR against https://github.com/nix-community/nixops-libvirtd (I believe). |
Meh, sorry. I don't feel like testing this again. I'll drop the PR entirely and keep nixops as is locally. |
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.