Creating a Virtual Farm of VMs
Of course, setting up a variety of VMs with different sets of developer tools and services can take a lot of time - and a lot of disk space too. Unless you make smart use of differencing disks, that is. I found a great solution courtesy Andrew Connell - and if you have to spin up VMs every once in a while, it ought to work for you too. There's a little more work up-front, but a lot less later.
Read his full article here: HOWTO: Use Virtual PC's Differencing Disks to your Advantage.
Of course - this is a reference for me, and I can find this post easier than finding his...
Part I: Make a "Base" VHD
- Start up a fresh VM, install an OS on it, and whatever "standard" apps/tools you'll want on ALL of your images of that OS.
- Defragment the VM filesystem inside the VM.
- Mount the Virtual Disk Precompactor ISO inside the VM to zero out the now-consolidated empty space.
- Shut down the VM and compact the VHD
- Delete the VMC/VMCX file for this VM, and mark the VHD read-only.
- Create a new VM, but don't create a new disk, or use an existing disk - tell Virtual PC to create a differencing disk from your "base" VHD.
- Fire up the VM, make any changes you want!
Thanks Andrew!
No comments:
Post a Comment