Hi All
I am attempting to reduce the amount of HD space that my XP VM takes up on my Mac.
I followed the instructions re: defragging, and using sdelete, and so far, so good. When I go to my VM, (Clone of Windows XP 5-0.vdi), which is located on my Mac desktop, I keep getting errors:
~ eyeman27$ VBoxManage modifyhd "/Users/eyeman27/Desktop/Clone_of_Windows_XP_5-0.vdi" --compact
VBoxManage: error: Could not find file for the medium '/Users/eyeman27/Desktop/Clone_of_Windows_XP_5-0.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, pMedium.asOutParam())" at line 209 of file VBoxManageDisk.cpp
An identical situation arises if I use the uuid instead of the file name
Any ideas?
PS The vdi was created from a .vmdk using Mpac's Clone VDI with "compact" checked...will doing the modifyhd shrink my VM size any more?
using VBoxManage modifyhd
-
Martin
- Volunteer
- Posts: 2562
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: using VBoxManage modifyhd
Are you sure that you don't have a typing error in the name? In Linux the file and path names are case sensitive.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: using VBoxManage modifyhd
Mpack's CloneVDI does the same as VBoxManage modifyhd --compact, so don't bother.eyeman wrote:PS The vdi was created from a .vmdk using Mpac's Clone VDI with "compact" checked...will doing the modifyhd shrink my VM size any more?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
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: using VBoxManage modifyhd
If it has already been compacted (which means to eliminate all "disk free space" sectors from the host file), then the only way to get further reduction is to delete a whole lot of unwanted files, particularly big ones, then let CloneVDI compact it again.
Naturally, make sure you have a working backup before you start.
There are tools online which help you identify the biggest space hogs on a drive, deleting these have the biggest effect. There are also sites which tell you how to streamline Windows - by deleting patch download folders etc, which can help a lot too.
Naturally, make sure you have a working backup before you start.
There are tools online which help you identify the biggest space hogs on a drive, deleting these have the biggest effect. There are also sites which tell you how to streamline Windows - by deleting patch download folders etc, which can help a lot too.
-
eyeman
- Posts: 36
- Joined: 8. Apr 2011, 20:56
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: windows xp
Re: using VBoxManage modifyhd
A belated thanks for developing CloneVDI. I have a new MacBook Pro, and have been playing around with resizing my W7 Vbox VM, to take advantage of the new computer's faster processing and increased HD space. Your program (run in Wine) has been invaluable in making the task of cloning and resizing partitions a cinch. Thanks again
Todd
Todd