Windows tip: Running virtual machines from a compressed host drive

By Mitch Tulloch  Add a new comment

Compressing a hard drive will help you squeeze more space out of a hard drive, and if you use your laptop for demos using Virtual PC, Virtual Server or Hyper-V, this might seem like a good idea since virtual hard drive (.vhd) files tend to take up a lot of room. There are pros and cons you need to consider however before you do this:

Pros:

  • You gain extra disk space, sometimes up to double the available space. That means you can store more virtual machines on your laptop for more demos.
  • Your virtual machines will likely start up faster since it's faster to read a 10 GB file than a 20 GB one.
  • Virtual machines will often perform better as well for the same reason (faster disk reads).

Cons:

  • Reading from compressed drives adds processor overhead, so if your don't have a fast processor then your processor can become the bottleneck for virtual machine performance instead of your hard drive.
  • If your virtual machines are performing disk-intensive operations (lots of writes) then performance may degrade instead of improving.
  • Since compressed files are inherently subject to fragmentation, any performance boost you gain by compression may decrease over time as the virtual machines are used when demos are being performed.
  • I've also heard some anecdotal reports that virtual machines that have very large .vhd files running on compressed drives can crash during usage and result in corruption of the .vhd file, which would mean an abrupt end to your demo.

Conclusion:

My best guess concerning this matter is that if you're just going to do relatively simple (not disk-write intensive) demos with relatively small (under 20 GB) .vhd files on a laptop with a fast dual-core processor then go ahead and compress your host drive. But don't do it on a host machine running in a production environment.

Got comments concerning this tip? Want to share a tip of your own with ITworld readers? Email me

ITworld LIVE

WindowsWhite Papers & Webcasts

White Paper

Windows Server 2008 R2 Learning Guide

This expert e-guide uncovers the most common questions that have surfaced with Windows Server 2008 R2. Learn details about this Microsoft operating system and discover the direct cost saving benefits IT departments can experience when making the switch.

White Paper

Windows Server 2008 R2 Learning Guide

This expert e-guide uncovers the most common questions that have surfaced with Windows Server 2008 R2. Learn details about this Microsoft operating system and discover the direct cost saving benefits IT departments can experience when making the switch.

White Paper

Microsoft Volume Licensing Reference Guide

This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

White Paper

HP Software Licensing & Management Solutions for Microsoft

See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

White Paper

Microsoft Open Value Program Guide

In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

See more White Papers | Webcasts

Ask a question

Ask a Question