VMware Communities
zonkerman
Contributor
Contributor
Jump to solution

Is It Safe To Do A Defrag In A Guest Operating System?

Is it safe to do a defrag in a Windows XP or Windows 7 guest operating system? I have a vm that reports it needs to be defragged but I'm not sure if it is safe to do withing the XP vm.

0 Kudos
1 Solution

Accepted Solutions
WoodyZ
Immortal
Immortal
Jump to solution

Have a look at "Defragment Virtual Disks" on page 239 and then "Compact a Virtual Disk" on page 240 of the Workstation User's Manual

View solution in original post

0 Kudos
6 Replies
WoodyZ
Immortal
Immortal
Jump to solution

Yes it is safe to do and then afterward you should shrink the disk. BTW I say this with the assumption that it has no snapshots.

0 Kudos
continuum
Immortal
Immortal
Jump to solution

do NOT defrag using the tools inside the guest - use this function






___________________________________

VMX-parameters- Workstation FAQ -[ MOA-liveCD|http://sanbarrow.com/moa241.html] - VM-Sickbay


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
zonkerman
Contributor
Contributor
Jump to solution

What if I do have a snapshot? If I clone the vm will the clone be defragged and compressed?

0 Kudos
zonkerman
Contributor
Contributor
Jump to solution

I ran that defrah you showed. ran for about 5 seconds then said it was successfully done. I logged into the guest vm (windows xp) and checked the windows explorer properties for c:\ then the defrag tool and it still says the drive needs to be defragged. I cloned the vm but did not fix anything. In fact the clone is just as fragmented as the original. At this point I'm going to use the Windows xp defrag tool from within the clone to see if that works.

0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

Have a look at "Defragment Virtual Disks" on page 239 and then "Compact a Virtual Disk" on page 240 of the Workstation User's Manual

0 Kudos
continuum
Immortal
Immortal
Jump to solution

Next time you should mention who says that the VM needs to be defragged - I assumed that it was a VMware message.

If you mentioned that before my answer would have been different 😉




___________________________________

VMX-parameters- Workstation FAQ -[ MOA-liveCD|http://sanbarrow.com/moa241.html] - VM-Sickbay


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos