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
Increase Virtualbox disk image size #46649
Conversation
10G is not enough for a desktop installation, and resizing a Virtualbox disk image is a pain. Let's increase the default disk size to 100G. It does not require more storage space, since the empty bits are left out.
+1 on increasing the default demo VBox disk size! |
There is no drawback for having a larger virtual disk, the on-disk size does not increase noticeably. |
Ah, I missed the ongoing discussion here before filing #48149 It looks like 100GB is indeed untenable with the default timeouts. We can try some changes to the timeouts and a slightly smaller size, but it looks like the increase in time is not linear with the size increase, but way worse. |
(I also missed that the purpose was indeed to bump the demo image size, making the PR less ideal, but we do need to unblock the channel asap.) |
Reverted to get out of troubles first. Now: I'm not sure I understood why the build took much longer yet. |
Well, that's sad. I'll try to reproduce the timing issue, maybe submit another PR. |
I wonder if there might be a way to ship a VBox OVA with a native VDI disk... At least it would be easier to extend it afterwards. @obadz I think I understand the motivation behind commit 80660f8 but what do you think would be the consequences now of converting the raw disk to VDI given that the raw disk is later deleted? Or to put it in code : echo "creating VirtualBox pass-through disk wrapper (no copying invovled)..."
VBoxManage convertfromraw $diskImage disk.vdi --format VDI
[...]
rm -v $diskImage Using the native commands of VBox. |
You can set max-silent-time to reproduce this. For instance:
It actually looks like it is able to make the .vdmk file. It just fails somewhere else down the line. Perhaps there's a verbose option to one of these commands that will solve it? |
Is resizing an image really such a pain?
|
But we don't use a VDI or VHD image by default and VBox can only resize those. But #49317 pushed the VM disk to a max of 50GB without changing anything to the disk format so we found a middle ground solution to this problem. Thanks for replying, still. |
Sounds good. Sorry for delay. |
Motivation for this change
10G is not enough for a desktop installation, and resizing a disk image is a pain.
Let's increase the default disk size to 100G. It does not use more storage space.
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)