Skip to content

Comments

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

Closed
coreyoconnor wants to merge 1 commit intoNixOS:masterfrom
coreyoconnor:add-disks-to-libvirtd
Closed

Add disks option to libvirt backend. Similar to VirtualBox option.#387
coreyoconnor wants to merge 1 commit intoNixOS:masterfrom
coreyoconnor:add-disks-to-libvirtd

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.

2 participants