Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Virtual PC / July 2006



Tip: Looking for answers? Try searching our database.

Precompactor + Virtual Disk Assistant haven't reduced the size of the virtual machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Petula - 11 Jul 2006 23:04 GMT
Configuration:
Win2000 in VPC6 in an iMac.
_________________________________________________

I followed Steve Jain's modified procedure (see ***, below) as closely as I
could in order to reduce the size of a virtual machine after defragging.
Nevertheless, the size of the virtual machine remained the same at 8.7 GB.
Worse still, after I used the "compacted" virtual machine, the size grew to
16 GB.

Below, I summarize what happened step by step (as Steve's procedure differs
a little from what happens in my system configuration):

1. As a backup, copy the virtual machine as found in the "Virtual PC List"
folder.
2. Download precompactor.zip from Steve Jain's website (www.essjae.com) and
extract it in the guest OS.
3. Defragment the guest OS hard drive.
4. Run precompactor in the guest OS.
5. Exit precompactor and shutdown the guest PC.
6. At this point the size of my virtual machine (in the Virtual PC List"
folder) is 8.71 GB - i.e. it is way too big.
7. Use Virtual Disk Assistant on the Mac to reclaim lost space. Start
VDA
8. Follow on screen steps
9. Select "Examine or modify existing disk image" and click right arrow
10. Select "Select a hard drive image attached to a PC" and click right
arrow
   I have only one disk image - so there are no options in this step
11. Select "Reclaim zeroed drive space
   Now the file characteristics are shown:
   - File Type:        Virtual PC Hard Disk Image
   - Disk Type:        Dynamically Expanding
   - Format Type:    FAT32
   - Disk Capacity:    16.0 GB
12. Click right arrow to start the process.
When finished, click Close.

Because the above procedure did not shrink the size of the virtual machine,
I started all over again, and this time in step #7 I selected "Convert to
fixed size drive".
However, the VDA did not ask me what size I wanted the new drive to be, and
the end result was the same as before, i.e. the size of the resulting
compacted virtual machine was 8.7 GB.

___________________________________________________
*** Here is Steve Jain's modified procedure:

"This is my original procedure modified for precompactor.exe

1. Backup any critical data in the guest OS.
2. Download precompactor.zip from my website and extract it the guest
OS. Alternative disk 'zeroing' software can also be used.
3. Defragment the guest OS hard drive.
4. Run precompactor in the guest OS.

steps 5-20 were detailed steps for configuring Eraser correctly

21. Exit precompactor and shutdown the guest PC.
22. Use Virtual Disk Assistant on the Mac to reclaim lost space. Start
VDA
23. Follow on screen steps
24. Select Examine or modify existing disk and click Next.
25. Click Browse to locate the disk image, double-click the image file
and click Next to continue.
26. Select Compact the Disk image and click Next.
27. Virtual PC allows the use of a secondary file to compact the disk.
It's a good idea to have the image file be compacted to a new file and
then verified to prevent data loss or corruption of the original image
file. Select New File, browse or enter a new location, click Next to
continue.
28. Click Finish to start the process.
When finished, click Close."
Steve Jain - 12 Jul 2006 01:27 GMT
Converting to a fixed disk does not change the size of your VHD, once
created, the virtual hard disk is always the same maximum size, so
converting it to fixed will increase it to it's maximum size.

How much space is Windows itself claiming to be using?  If it says
it's using 8GB, you can't compact the disk image anymore

>Configuration:
>Win2000 in VPC6 in an iMac.
[quoted text clipped - 69 lines]
>28. Click Finish to start the process.
>When finished, click Close."

Signature

Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
I do not work for Microsoft.

Petula - 12 Jul 2006 04:41 GMT
Here are the sizes of items in Windows:

WINNT                            1.79 GB
Program Files                    855 MB
My Shared Folder            250 MB
Documents and Settings   848 MB
All the rest                        5 MB max

and yet

Windows 2000[C]            15.9 GB Total Size;  12.0 GB Free Space

I remember when I compacted the disk before its size went down to about 4
GB; and I really haven't added anything significant since - in fact I
cleaned out a lot of unused items.

> Converting to a fixed disk does not change the size of your VHD, once
> created, the virtual hard disk is always the same maximum size, so
[quoted text clipped - 76 lines]
> >28. Click Finish to start the process.
> >When finished, click Close."
Paul Power - 12 Jul 2006 18:29 GMT
> Here are the sizes of items in Windows:
>
[quoted text clipped - 106 lines]
> > http://vpc.essjae.com/
> > I do not work for Microsoft.

Petula,

>From your figures, the actual 'used' space in your virtual machine is
about 3.75GB
The 15.9GB figure is the maximum capacity of the virtual machine. It
will grow dynamically until it reaches 15.9GB and then it will stop
responding (actually, it will start acting up around 14GB).

So, bottom line is: the virtual machine is the proper size and is not
actually using 15.9GB of space........there is no need to compact it at
this time.
Petula - 12 Jul 2006 21:24 GMT
Paul,

Thank you.
How is the 8.87 GB that's being used up on the Mac side (by the virtual
machine in the "Virtual PC List" folder) consistent with:

"......... the actual 'used' space in your virtual machine is about 3.75GB."
?

Petula

> > Here are the sizes of items in Windows:
> >
[quoted text clipped - 118 lines]
> actually using 15.9GB of space........there is no need to compact it at
> this time.
Paul Power - 12 Jul 2006 23:21 GMT
> Paul,
>
[quoted text clipped - 145 lines]
> > actually using 15.9GB of space........there is no need to compact it at
> > this time.

When you check the size of the virtual machine in the Virtual PC List
folder, is Windows shut down or in a saved state? If you did not shut
Windows down, the Mac side will report a different size than Windows
will (Windows does not know what a 'saved state' is).
Paul Power - 12 Jul 2006 23:29 GMT
> > Paul,
> >
[quoted text clipped - 150 lines]
> Windows down, the Mac side will report a different size than Windows
> will (Windows does not know what a 'saved state' is).

I just checked my Windows size.  Windows is reporting the size as
4.18GB. The Mac OS is reporting the size as 6.2GB. I assume that there
is some overhead with the 'packaging' that makes up the entire virtual
machine. I also know that there is some space that has not been
reclaimed. Now, I ran Precompactor on this VM just after Xmas and it
reduced from 6GB down to 3+GB. So, depending on what you use VPC for,
it can take quite a while to grow (I use it every day for 6-8 hrs per
day running a database)
Petula - 13 Jul 2006 02:34 GMT
The Mac side info says the VM is occupying 8.87 GB with Windows closed (i.e.
not in a saved state).

When I compacted last year the VM went down to about 4 GB (on the Mac side).
I have very few programs and data in Windows, and have accumulated very
little in the last year.

Doesn't it look that there's a large, unaccounted-for discrepancy (relative
to the 3.75 GB indicated in Windows)?

Is there a way to determine how small the VM should be after compaction?

> > > Paul,
> > >
[quoted text clipped - 159 lines]
> it can take quite a while to grow (I use it every day for 6-8 hrs per
> day running a database)
Paul Power - 13 Jul 2006 04:17 GMT
> The Mac side info says the VM is occupying 8.87 GB with Windows closed (i.e.
> not in a saved state).
[quoted text clipped - 204 lines]
> > it can take quite a while to grow (I use it every day for 6-8 hrs per
> > day running a database)

Unfortunately, no. The tools that we use are very limited in their
capabilities. The Precompactor program was extracted from VPC2004 for
Windows and the steps to get it to work in VPC were very laboriously
worked out to the point where we are today. The Eraser program is a
third party utility that Connectix started using to reduce the size of
a VM and MS$ inherited (correct me if I'm wrong Steve) that procedure
until we discovered Precompactor (MS$ does not support the use of
Precompactor in VPC for Mac). To my knowledge, there are no other
utilities that can be used to compact the VMs. The Eraser program is
very tedious and the results are always disappointing (to me, anyway).
The Precompactor is much more user friendly and I have always found the
results to be satisfactory.

I do agree with you. There seems to be a large block of space
unaccounted for. I would run the Precompactor again to see if it makes
a difference. If there is no change, I would say you have 2 options:
1. accept it and continue business as usual (as long as you have space
available on your HDD)
2. create a brand new virtual machine and start from scratch

Otherwise, you may drive yourself crazy trying to find lost disk space.
:-)
Petula - 18 Jul 2006 23:50 GMT
I found something interesting.

I created several copies of my drive, in order to experiment.
Then, I went through the whole process of compacting the resulting drives.

For the first several attempts at compacting the drives, the resulting size
of the compacted drives was still always excessive, at i.e. 8.47 GB.

However, finally I was successful.  The last two drives I compacted went
down to 4.01 GB !!!

From my experiments to date, I think the key ingredient for success may be:
abstinence from simultaneously doing anything else on the computer at
certain stages throughout the process.

I would have to experiment to find out which of the following several
processes is adversely affected by performing simultaneous other operations
on the computer:
   - defragmenting (using Disk Defragmenter)
   - precompacting (using precompact.exe)
   - reclaiming zeroed space (using Virtual Disk Assistant)

> > The Mac side info says the VM is occupying 8.87 GB with Windows closed (i.e.
> > not in a saved state).
[quoted text clipped - 227 lines]
> Otherwise, you may drive yourself crazy trying to find lost disk space.
> :-)
Paul Power - 19 Jul 2006 18:21 GMT
> I found something interesting.
>
[quoted text clipped - 279 lines]
> > Otherwise, you may drive yourself crazy trying to find lost disk space.
> > :-)

When doing ANY of these processes, I would suggest that you refrain
from any other activities on the computer. It may not have any effect
at all on the final outcome, but these processes are very processor
intensive and I would want to allocate as much as possible to
defragging, precompacting and running VDA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.