I have added software to my guest to the point that it is > 5.8 GB. I went and removed lots of bloated software (3 GB worth), cleaned out recycle bin, ran check disk, defragmented the guest and the guest vdi still says 5.8 GB. What do I have to do to get the vdi down to the size of the OS without the bloat ware?
Thanks
Boz
[Solved] Reducing Size of guest uninstalling software
-
gboswellsac
- Posts: 16
- Joined: 8. Sep 2008, 06:11
Re: Reducing Size of guest uninstalling software
Read the all about VDI's tutorial via the FAQ.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
gboswellsac
- Posts: 16
- Joined: 8. Sep 2008, 06:11
Re: Reducing Size of guest uninstalling software
Thanks, the FAQ was great , RTFM works. I was successful in using sdelete -c C: and rebooting with check disk active. (I had already defraged before starting all this). Running the VboxManage ... yeilded the following what am I missing?
BozMac-2:/Users/gboswell/Library/VirtualBox/VDI root# VBoxManage modifyvdi "XP Pro".vdi compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/var/root/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:/Users/gboswell/Library/VirtualBox/VDI root#
BozMac-2:/Users/gboswell/Library/VirtualBox/VDI root# VBoxManage modifyvdi "XP Pro".vdi compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/var/root/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:/Users/gboswell/Library/VirtualBox/VDI root#
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: Reducing Size of guest uninstalling software
Run it as yourself. Not root.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
-
gboswellsac
- Posts: 16
- Joined: 8. Sep 2008, 06:11
Re: Reducing Size of guest uninstalling software
As Myself same results:
BozMac-2:~/Library/VirtualBox/VDI gboswell$ VBoxManage modifyvdi "XP Pro".vdi compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/Users/gboswell/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:~/Library/VirtualBox/VDI gboswell$ ll
total 39643216
-rw-r--r-- 1 gboswell gboswell 6264226816 Feb 4 2009 Fedora 8.vdi
-rw-r--r-- 1 gboswell gboswell 2508988578 Aug 21 15:49 Fedora 8.vdi.zip
-rw------- 1 gboswell gboswell 28377600 Aug 21 20:12 NewHardDisk1.vdi
-rw-r--r-- 1 gboswell gboswell 7010820608 Aug 21 20:12 XP Pro.vdi
-rw-r--r-- 1 gboswell gboswell 4484896449 Aug 21 15:43 XP Pro.vdi.zip
BozMac-2:~/Library/VirtualBox/VDI gboswell$
BozMac-2:~/Library/VirtualBox/VDI gboswell$ VBoxManage modifyvdi "XP Pro".vdi compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/Users/gboswell/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:~/Library/VirtualBox/VDI gboswell$ ll
total 39643216
-rw-r--r-- 1 gboswell gboswell 6264226816 Feb 4 2009 Fedora 8.vdi
-rw-r--r-- 1 gboswell gboswell 2508988578 Aug 21 15:49 Fedora 8.vdi.zip
-rw------- 1 gboswell gboswell 28377600 Aug 21 20:12 NewHardDisk1.vdi
-rw-r--r-- 1 gboswell gboswell 7010820608 Aug 21 20:12 XP Pro.vdi
-rw-r--r-- 1 gboswell gboswell 4484896449 Aug 21 15:43 XP Pro.vdi.zip
BozMac-2:~/Library/VirtualBox/VDI gboswell$
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Reducing Size of guest uninstalling software
"XP Pro".vdi compact should be "XP Pro.vdi" compact
Notice the placement of the last "
Notice the placement of the last "
-
gboswellsac
- Posts: 16
- Joined: 8. Sep 2008, 06:11
Re: Reducing Size of guest uninstalling software
I had tried that before but never know might work but didn't
BozMac-2:~/Library/VirtualBox/VDI gboswell$ VBoxManage modifyvdi "XP Pro.vdi" compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/Users/gboswell/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:~/Library/VirtualBox/VDI gboswell$
Here is the content of the VirtualBox.xml"
Go ahead tell me I'm doing something stupid or whatever .....
Mod Edit: Please use code blocks for long or log files.
BozMac-2:~/Library/VirtualBox/VDI gboswell$ VBoxManage modifyvdi "XP Pro.vdi" compact
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a hard disk with location 'XP Pro.vdi' in the media registry ('/Users/gboswell/Library/VirtualBox/VirtualBox.xml')
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindHardDisk(Bstr(FilenameOrUuid), hardDisk.asOutParam())" at line 415 of file VBoxManageDisk.cpp
BozMac-2:~/Library/VirtualBox/VDI gboswell$
Here is the content of the VirtualBox.xml"
Code: Select all
<?xml version="1.0"?>
<!-- Automatically converted from version '1.6-macosx' -->
<!-- Automatically converted from version '1.5-macosx' -->
<!-- Automatically converted from version '1.4-macosx' -->
<!-- Automatically converted from version '1.3-macosx' -->
<!-- Sun xVM VirtualBox Global Configuration -->
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.7-macosx">
<Global>
<ExtraData>
<ExtraDataItem name="GUI/RegistrationData" value="0047006c0065006e006e00200042006f007300770065006c006c007c00670062006f007300770065006c006c0073006100630040007900610068006f006f002e0063006f006d007c006e006f19c5c3ca"/>
<ExtraDataItem name="GUI/SuppressMessages" value="confirmInputCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,confirmGoingFullscreen"/>
<ExtraDataItem name="GUI/LastWindowPostion" value="52,210,770,550"/>
<ExtraDataItem name="GUI/UpdateCheckCount" value="49"/>
<ExtraDataItem name="GUI/UpdateDate" value="1 d, 2009-08-25"/>
<ExtraDataItem name="GUI/LastVMSelected" value="{77ca4367-cbe9-4ba3-95d5-c67646f1d6fc}"/>
</ExtraData>
<MachineRegistry>
<MachineEntry uuid="{53f3874a-715e-47d4-8aa8-62215c7acae2}" src="Machines/Fedora 8/Fedora 8.xml"/>
<MachineEntry uuid="{77ca4367-cbe9-4ba3-95d5-c67646f1d6fc}" src="Machines/XP Pro/XP Pro.xml"/>
</MachineRegistry>
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{8a0c7b52-28a7-4c4d-a3d3-1b898c107926}" location="/Users/gboswell/Library/VirtualBox/VDI/Fedora 8.vdi" format="VDI" type="Normal">
<HardDisk uuid="{d2ea23f2-ccef-422c-97af-af8756360f8e}" location="/Users/gboswell/Library/VirtualBox/Machines/Fedora 8/Snapshots/{d2ea23f2-ccef-422c-97af-af8756360f8e}.vdi" format="VDI"/>
</HardDisk>
<HardDisk uuid="{457ccf2a-8447-44d3-a493-6be27e425827}" location="/Users/gboswell/Library/VirtualBox/VDI/XP Pro.vdi" format="VDI" type="Normal">
<HardDisk uuid="{92603016-3e6e-4b06-9465-3eadf7689d5a}" location="/Users/gboswell/Library/VirtualBox/Machines/XP Pro/Snapshots/{92603016-3e6e-4b06-9465-3eadf7689d5a}.vdi" format="VDI"/>
</HardDisk>
<HardDisk uuid="{9b036641-3c56-43e7-a206-01ad40099716}" location="VDI/NewHardDisk1.vdi" format="VDI" type="Normal">
<HardDisk uuid="{d7fb2d0f-c951-433f-94a6-b27524883a22}" location="/Users/gboswell/Library/VirtualBox/Machines/XP Pro/Snapshots/{d7fb2d0f-c951-433f-94a6-b27524883a22}.vdi" format="VDI"/>
</HardDisk>
</HardDisks>
<DVDImages>
<Image uuid="{a8d0648c-6a3b-4097-bc2d-a5cb7473211a}" location="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso"/>
</DVDImages>
<FloppyImages/>
</MediaRegistry>
<NetserviceRegistry>
<DHCPServers>
<DHCPServer networkName="HostInterfaceNetworking-vboxnet0" IPAddress="192.168.56.2" networkMask="255.255.255.0" lowerIP="192.168.56.3" upperIP="192.168.56.255" enabled="1"/>
</DHCPServers>
</NetserviceRegistry>
<USBDeviceFilters/>
<SystemProperties defaultMachineFolder="Machines" defaultHardDiskFolder="HardDisks" defaultHardDiskFormat="VDI" remoteDisplayAuthLibrary="VRDPAuth" webServiceAuthLibrary="VRDPAuth" HWVirtExEnabled="false" LogHistoryCount="3"/>
</Global>
</VirtualBox>Mod Edit: Please use code blocks for long or log files.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Reducing Size of guest uninstalling software
Nope nothing stupid, just sometimes you may need to give it the full and complete path to the file. Not that sure about MAC, but sometimes it must be complete.
"/Users/gboswell/Library/VirtualBox/VDI/XP Pro.vdi"
"/Users/gboswell/Library/VirtualBox/VDI/XP Pro.vdi"
-
gboswellsac
- Posts: 16
- Joined: 8. Sep 2008, 06:11
Re: Reducing Size of guest uninstalling software
You are the MAN/Person/Guru, the program went through 0%...10%....100% no errors. The size of the vdi is unchanged but I'm going to start all over again and if doesn't work I will install a new XP. Thank You Thank You for the help, yes and it was stupid, I should have tried the absolute path from looking at the error message. At least I can live with stupid for the moment, but next time I'm prepared. Thanks Again.
Boz
Boz