Can not resize VDI.

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Jazz1
Posts: 41
Joined: 19. Jan 2019, 00:30

Can not resize VDI.

Post by Jazz1 »

Hi and thanks in advance for any help.
I am having a problem trying to resize a VDI.
I am using ver 6.1 on Win10
using the Virtual media manager, I can not resize a Parrot Security VDI, I get the error in the attached pic.
VDI resize error.JPG
VDI resize error.JPG (34.02 KiB) Viewed 4148 times
I have plenty of hard drive space, other VDI's have resized without issue.
I have tried both dragging the cursor and typing in the new size. Neither work, same error.
Any suggestions?

TIA
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Can not resize VDI.

Post by mpack »

Either it's not a VDI (which seems unlikely assuming this was a working VM), or you made it a fixed size VDI when you created the VM (VBoxManage won't change the size of a fixed size drive).

If your problem is the latter then run the VDI through CloneVDI. Select "Keep UUID", "Compact", "Resize", and enter the new size. You can select "Increase partition size" if you want. If not then you'll have to use guest tools to move and resize partitions to fill the disk.
Jazz1
Posts: 41
Joined: 19. Jan 2019, 00:30

Re: Can not resize VDI.

Post by Jazz1 »

Thank you,
That mostly worked. automatically resize partition did not, I had to do that manually.
Does this mean that it is no longer a fixed size?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Can not resize VDI.

Post by mpack »

Jazz1 wrote: Does this mean that it is no longer a fixed size?
Every VDI created by CloneVDI is dynamically sized. If you aren't implementing a headless server with high uptime then is is no good reason to use fixed size VDI. There are some idiotic myths going around that fixed size is faster, despite having exactly the same format as a normal VDI - the only difference being they're fully allocated from day 1 and so can't grow. Thus (a) wasting a lot of host space, and (b) probably underperforming later due to congestion because the user invariably makes them too small due to (a).

CloneVDI partition resize only fully works with FAT and NTFS. It does still help with Linux though, by moving aside swap partitions etc, making it easier to grow the main partition. These operations are best done during cloning as they would take a lot longer to do in place later. Compaction works for FAT, NTFS and EXTx.
Post Reply