Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - Compacting a virtual machine

Reply
 
Old 04-17-2009   #1 (permalink)
John


 
 

Compacting a virtual machine

I'm using MS Virtual PC v5.3.582.27 with several virtual machines. I
have noticed that if I install a large program on the virtual machine,
the size of the file increases as expected, but if I then remove the
same program the file size doesn't decrease. When this happens, is there
a way to compact the virtual machine file to get rid of the unused
space? Thanks!

John
--
Please reply in this newsgroup. I never post my true
email address to prevent spam. Thank you.

My System SpecsSystem Spec
Old 04-17-2009   #2 (permalink)
Steve Jain [MVP]


 
 

Re: Compacting a virtual machine

On Fri, 17 Apr 2009 12:46:37 -0500, John <notme@xxxxxx> wrote:
Quote:

>I'm using MS Virtual PC v5.3.582.27 with several virtual machines. I
>have noticed that if I install a large program on the virtual machine,
>the size of the file increases as expected, but if I then remove the
>same program the file size doesn't decrease. When this happens, is there
>a way to compact the virtual machine file to get rid of the unused
>space? Thanks!
>
>John
Yes, you would use the tools provided with VPC to compact your VHD.
:-)

1. defrag the VM's hd (inside VM)
2. mount the precompactor ISO and run inside the VM(precompactor.exe),
ISO is in the C:\Program Files (x86)\Microsoft Virtual PC\Virtual
Machine Additions
3. shutdown the VM and on the host use the virtual disk wizard to
compact the disk

--
Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
My System SpecsSystem Spec
Old 04-22-2009   #3 (permalink)
John


 
 

Re: Compacting a virtual machine

Steve Jain [MVP] wrote:
Quote:

> On Fri, 17 Apr 2009 12:46:37 -0500, John <notme@xxxxxx> wrote:
>
Quote:

>> I'm using MS Virtual PC v5.3.582.27 with several virtual machines. I
>> have noticed that if I install a large program on the virtual machine,
>> the size of the file increases as expected, but if I then remove the
>> same program the file size doesn't decrease. When this happens, is there
>> a way to compact the virtual machine file to get rid of the unused
>> space? Thanks!
>>
>> John
>
> Yes, you would use the tools provided with VPC to compact your VHD.
> :-)
>
> 1. defrag the VM's hd (inside VM)
> 2. mount the precompactor ISO and run inside the VM(precompactor.exe),
> ISO is in the C:\Program Files (x86)\Microsoft Virtual PC\Virtual
> Machine Additions
> 3. shutdown the VM and on the host use the virtual disk wizard to
> compact the disk
>
When I get to step 3, the virtual disk wizard gives me this warning:
"Before you compact this virtual hard disk, you must zero out free space
on it with a third-party tool that you install on the guest operating
system."
Is this what the precompactor did? If not, what is the third-party tool
it is referring to? Thanks!

John
--
Please reply in this newsgroup. I never post my true
email address to prevent spam. Thank you.
My System SpecsSystem Spec
Old 04-22-2009   #4 (permalink)
Robert Comer


 
 

Re: Compacting a virtual machine

>When I get to step 3, the virtual disk wizard gives me this warning:
Quote:

>"Before you compact this virtual hard disk, you must zero out free space
>on it with a third-party tool that you install on the guest operating
>system."
>Is this what the precompactor did? If not, what is the third-party tool
>it is referring to? Thanks!
Yep, that's exactly what the precompactor does.

--
Bob Comer


On Wed, 22 Apr 2009 09:39:41 -0500, John <notme@xxxxxx> wrote:
Quote:

>Steve Jain [MVP] wrote:
Quote:

>> On Fri, 17 Apr 2009 12:46:37 -0500, John <notme@xxxxxx> wrote:
>>
Quote:

>>> I'm using MS Virtual PC v5.3.582.27 with several virtual machines. I
>>> have noticed that if I install a large program on the virtual machine,
>>> the size of the file increases as expected, but if I then remove the
>>> same program the file size doesn't decrease. When this happens, is there
>>> a way to compact the virtual machine file to get rid of the unused
>>> space? Thanks!
>>>
>>> John
>>
>> Yes, you would use the tools provided with VPC to compact your VHD.
>> :-)
>>
>> 1. defrag the VM's hd (inside VM)
>> 2. mount the precompactor ISO and run inside the VM(precompactor.exe),
>> ISO is in the C:\Program Files (x86)\Microsoft Virtual PC\Virtual
>> Machine Additions
>> 3. shutdown the VM and on the host use the virtual disk wizard to
>> compact the disk
>>
>When I get to step 3, the virtual disk wizard gives me this warning:
>"Before you compact this virtual hard disk, you must zero out free space
>on it with a third-party tool that you install on the guest operating
>system."
>Is this what the precompactor did? If not, what is the third-party tool
>it is referring to? Thanks!
>
>John
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
error: Virtual PC could not open the Virtual Machine Network Servicesdriver Virtual PC
Virtual PC 2004 upgrade to 2007 Add an existing virtual machine Virtual PC
Re: WSUS 3.0 SP1 Running as a Virtual Machine in Virtual Server 2005 Virtual Server
Unable to install Virtual Guest Services on virtual machine Virtual Server
Moving Virtual Machine from Hyper-v to Virtual Server 2005 Virtual Server


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46