Open dfordivam opened 5 years ago
This was encountered in #49317 as well.
@matthewbauer I have this workaround #60246 to add an extra disk.
Does the extra disk not hit the 64gb limit?
No, the limit is only because of the bug in cptofs
, and I do not use this tool. The extra disk is empty with only a filesystem.
@dfordivam could you open a bug upstream about cptofs being broken with images > 64GB? I doubt that's a nix-specific thing…
Why is cptofs
being used here (specifically in make-disk-image
)? It's anyway running in runInLinuxVM
so couldn't we just mount the filesystem and cp
?
Oh I see cptofs
is part of preVM
which is done before the VM is started. But couldn't it be avoided by sharing $root via 9P and copying the contents inside the VM?
Maybe, but cptofs shouldn’t have a 64G limit, right?
cptofs shouldn't just burn CPU when working on >64G volumes, so we definitely should open a bug about that upstream.
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
This is definitely important to me. Trying to encode sensible defaults into virtual appliances we plan on provisioning, and would love to see this fixed vs implementing more hacky workarounds than we already have regarding ESXi compatibility...
I marked this as stale due to inactivity. → More info
Still important though I’m not sure it makes sense to have this issue open if we’re just waiting on https://github.com/lkl/linux/issues/466.
I marked this as stale due to inactivity. → More info
Still quite important, but blocked on upstream
Issue description
The standard way to create a nixos virtual box .ova files (
config.system.build.virtualBoxOVA
) does not work if thebaseImageSize
is more than 64gb.Steps to reproduce
Specify baseImageSize more than 64gb
Technical details
The VM creation hangs with this output
This is the
strace
fromcptofs
which does 100% cpu usage and does not finish.Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the results."x86_64-linux"
Linux 4.14.104, NixOS, 19.09pre171786.34aa254f9eb (Loris)
yes
yes
nix-env (Nix) 2.2
"nixos-19.09pre171786.34aa254f9eb"
/nix/var/nix/profiles/per-user/root/channels/nixos