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

Add disks option to libvirt backend. Similar to VirtualBox option. #387

Closed
wants to merge 1 commit into from
Closed

Add disks option to libvirt backend. Similar to VirtualBox option. #387

wants to merge 1 commit into from

Conversation

coreyoconnor
Copy link
Contributor

This uses nix/generate-ext4-image to generate an appropriately sized ext4 image.
Unless a baseImage path is provided as part of the network.
This is performed during create by the libvirtd backend python code.
libvirtd-image.nix was renamed libvirtd-root-image to clarify the image build
performed is only for the root filesystem with the base nix install.

This uses nix/generate-ext4-image to generate an appropriately sized ext4 image.
Unless a baseImage path is provided as part of the network.
This is performed during create by the libvirtd backend python code.
libvirtd-image.nix was renamed libvirtd-root-image to clarify the image build
performed is only for the root filesystem with the base nix install.
@domenkozar
Copy link
Member

In general I think it's a good step forward, but the code is too fragmented. Both of the FS generation images should use <nixpkgs/nixos/lib/make-disk-image.nix>

@coreyoconnor
Copy link
Contributor Author

The root file system definitely should use make-disk-image. Any reason the original disk image code did not? I don't see anything obvious.

The alternate disks should be images without content. The make-disk-image function installs a nixos configuration onto the generated disk image. Is that appropriate in this case?

I'll change the root filesystem disk image generation. Let me know about the alternate disks. Any other aspect need revision?

@coreyoconnor
Copy link
Contributor Author

clearing old PRs. I'm no longer developing on nixops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants