nixos/virtualbox-image: increase disk to 50G #49317
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Follow-up to #46649 and #48151
The official demo VM needs to offer more space for practical usage.
This PR extends the max possible disk size from 10GB to 50GB.
The generated OVA size does not change and since the VM has dynamic provisioning it still takes the same size (around 4GB) the first time the VM is imported and launched.
100GB breaks cptofs but 50GB is fine and benchmarks shows it takes the same time as building the demo VBox VM with a 10GB disk. See below.
Also done:
/cc @brainrape @bjornfor @matthewbauer
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)I've run many OVA builds over the last days using
time nix-build -I nixpkgs=. -A ova '<nixpkgs/nixos/release.nix>' --option max-silent-time 7200
for some basic benchmarking.TL;DR; --> with 10GB / 25GB / 50GB all builds took around 16minutes on my machine.
I did one try with 100GB and I had to abort the build after more than one hour...
cptofs
was taking 100% of one core but was not going anywhere... I'm not able to troubleshoot cptofs so let's stick to 50GB for now. 馃樇