Hi all - I have a dynamically allocated VDI set to 100GB max space. As it turns out, this 100GB virtual drive is more than double the space actually needed so I'd like to compact the drive, then copy or clone into a new dynamically allocated VDI set to 45GB max space. I've read that CloneVDI may give this functionality, but I'm not seeing the option to reduce the size wthin CloneVDI. Could you provide some guidance on the steps needed to accomplish this? Here's some info on the existing disk:
Ubuntu Linux reported space used: 15G (using df -h in terminal) - this will grow to about 30 - 35 GB max in the future.
Windows Host file system reported space: 77 GB
Dynamically allocated virtual size: 100 GB
Desired dynamically allocated virtual size: 45GB (after compact and clone)
Reduce Virtual Disk Size
-
WhataWheasel
- Posts: 6
- Joined: 3. Mar 2013, 17:04
- Primary OS: MS Windows 8
- VBox Version: OSE other
- Guest OSses: Win 2012 Server, Win 8, Linux Ubuntu, Linux CentOS
-
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: Reduce Virtual Disk Size
The "Compact" option in CloneVDI is what shrinks the VDI. If you also select the "Keep UUID" option then the clone produced will be a "plug in" replacement for the original VDI.
There is no option in CloneVDI to reduce the maximum size of a disk. If you want to do that then the best way is to use Gparted to shrink the partition, and then use CloneVDI to compact the disk. There is no need to shrink the disk capacity - the guest filesystem cannot grow beyond the partition size.
There is no option in CloneVDI to reduce the maximum size of a disk. If you want to do that then the best way is to use Gparted to shrink the partition, and then use CloneVDI to compact the disk. There is no need to shrink the disk capacity - the guest filesystem cannot grow beyond the partition size.