VHD constantly growing in size

LuiLui77
LuiLui77 used Ask the Experts™
on
Hello,

I am currently running a Windows 7 virtual machine on my Windows Server 2008. The VHD resides in a LUN.

I have not performed any snapshots on this virtual machine. The VHD for the machine is constantly growing in size until the virtual machine turns into a critical state. I am constantly increasing the volume size to resolve this.

Is there a way to control this vhd from growing more?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018
Commented:
In anything but the smallest test labs, you'd want to make the VHD a fixed size and larger than the sum of the partitions you defined in the VM. Then the VHD won't grow *at all.*  Dynamic VHDs are really only useful in test labs or in very very large datacenters where large SANs can dedup, defrag, and do other things that make thin provisioning make more sense.
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
Are you saying that when you look at the XP VM it's hard drive says it's using x GB but the the VHD is MUCH larger than that?
noxchoIT Product Manager
Top Expert 2009

Commented:
Check if you have Volume Shadow Copies enabled inside the virtual machine. Another possible reason could be Windows updates. How quick and in which amounts does it grow?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial