På Mon, 20 Aug 2018 15:18:05 +0200 "Erik P. Olsen" <[email protected]> skrev: > Unfortunately I have created too large a file to hold my virtual > Win10 system. I want to recover some of the surplus disk area from > the file. > > My host system is Fedora 28 and I thought I could export the virtual > machine, create a new and smaller file and import the VM into this > file. Is that doable or is there if possible a better method? > export and import doesn't change the VDI - it just copies it.
In general, it is a 2 step process to shrink a VDI. Vboxmanage has a command to do it, but usually do not shrink a lot, because vbox doesn't know, which parts of the VDI is actually free. To make Vbox know, you have to use some kind of util first, that will write 0's to all unused sectors on the VDI. I don't use Win, so someone else here might advise you about that. For my OS/2 VDI's I use DFSee - it can be used for Win too, but is not an easy tool to use. I know that dd can be used for nix guests. After you have found some way to 0 your freespace sectors, close the VM and run: vboxmanage modifymedium <path/filename.vdi> --compact it may use much diskspace ! Remember a backup copy of the VDI, before you try ;-) Allan. > I have tried to run an export process but I can't change the file in > which the export process puts the VM. The path to the file seems to > be hard coded and it doesn't resemble anything related to the VM it's > rather randomly picked of the many directories in my system. > > Any advice? > > -- > Regards, > Erik P. Olsen > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > VBox-users-community mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/vbox-users-community ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:[email protected]?subject=unsubscribe
