Making a smaller virtual XP machine disk

The problem

As you use your virtual machine, it will continue to grow in size. I have my virtual XP machine to maximum of 10GB. All I really need it for is testing sites in IE6 (ick) and connecting to a SQL Server (ew). After installing a few things, running all Windows Updates... my vanilla XP is using 8GB. Wha? All I have installed is WinAmp, Cisco VNC Client, and SQL Manager. Whats going on?

"Well, when Windows deletes a file, it doesn’t actually delete the data in the disk; it just deletes the references/pointers in the file allocation table. So when ESX is exporting a VMDK and is looking at the raw disk, it’s seeing values that aren’t empty (non-zero), and exports them as such. The result is more disk space is used and takes longer to export the disk."
http://www.rtfm-ed.co.uk/?p=40


The solution

What we want to do is remove all unneccesary files. Caches, installer temps, restore points, and useless software. Then use VMware's Shrink utility to reclaim the disk space. Other virtualization vendors will have similar solutions which may vary. But the build up to the final 'shrink' is the same. All steps are carried out in the guest Windows XP virtual machine.


Results and Benefits

  • Smaller guest OS footprint (mine went from 8GB to 3GB)
  • Smaller virtual disk on the host
  • When zipped, the virtual disc is smaller again (mine is 1.4GB) - making it much more portable
  • With a cleaner guest OS, it runs much faster
  • Suspend/Resume is close to instant

» Continue Reading »

Control iTunes from a DragThing dock

While working, I use iTunes. But I find that the controller gets obscured by other windows. Or it just plain clutters my desktop. So I wanted to get  rid of the controller but still use iTunes.

There are many utilities that will control iTunes. But I didn't want to load another program on my development machine. However I do run DragThing on my system. I consider it as part of the OS.

If you have an iTunes icon in a dock, you can right click to show the menu and control iTunes right from there. But I didn't like the extra step. So I came up with another solution.

Using three AppleScripts, I made it so you can controll iTunes from within a dock without any menus. All you have to do is expand the draw and click play (or next/previous). Check out the movie:


Full Size Movie : 705x312 | 2.5MB

I left the iTunes conteler up to demonstrate the functions of the buttons in DragThing. Being that everything works, you can close the iTunes controller - which does not quit iTunes or interrupt the music in any way. You're left with a clean desktop, and quick access to iTunes from a DragThing dock. Sweet.

How To...

» Continue Reading »

BlogCFC was created by Raymond Camden. This blog is running version 5.6.001.