Developing in the virtual machine era

What can you get for $700 these days?   Quite a lot, as I just did with the Systemax Beast IV.  $699 for an AMD Quad Penom 9550 with 8gig ram and a terabyte hard drive running Vista 64.   The “dream” in this system is that it is a power system that was priced like a low end commodity computer.   Sure, there are no premium components but this machine has launched me into the “virtual computing” arena.

I’ve been using VMWare player and server for the last couple years to play around with linux.   It’s so much nicer than installing dual boot or setting up an old computer just to play with linux.

I’ve also used VMWare converter to make virtual machines out of my existing computers when I first get a new one.   While I always welcome a new computer, it’s a real pain to not be able to get any work done while I spend days reinstalling and reconfiguring my software.   With VMWare converter (a free download) I make a virtual machine that’s an exact copy of my old computer.   I copy the vm to the new computer and I can run my old machine complete with all the software already installed and setup.   I can get my work done and take my time installing and configuring the new system.

My dual core machines with 2 gig of ram are more than powerful enough to get decent performance running a single windows or linux virtual machine — but when you want 2gig for your base windows, and then you want to run windows virtual machines and give them 2gigs — you get constrained real fast.   That’s where my new “Beast” comes in.   At the $700 — it’s a great price with plenty of memory and cpu power to run mutiple virtual machines and have them all perform as well as if you were native on a regular computer.

I’m starting on a new project and we wanted to get going even before we had everything tied down.  We knew a good deal of the database was settled so I decided to get a head start.   While I await getting the real DBA’s involved in setting up our real dev/test/prod environments — I went ahead and setup an Oracle VM on my Beast.   Oracle has a free “Express Edition” that is limited only to 1 cpu and 4gig of data — plenty for my needs in development.   Plenty for a lot of small business and charitable uses as well.

I setup another virtual machine to install Eclipse/Jboss and my database development tools on.   It’s really a shock to be developing on such a clean system as these are the only apps installed on the virtual machines.  The performance is indistinguishable from what I’m used to with a dedicated machine.

The next step is to network them.   They really do behave just like real machines on the network.   If you are dealing with linux vm’s, you use Samba — and for windows, you do what you normally do.   Let me save you a hour or so and let you know you want to set the VM network to “Bridged” not “NAT” if you want the vm’s to behave as if they were separate computers.

Let’s say my next project is using sql server and not oracle.   No problem.  I can shut down the oracle vm and create a new Sql server vm.   No more having to put all this stuff on my computer and contending for resources.   No more suffering the poor performace of a computer where you’ve loaded and unloaded countless software programs.   I just ran one of those registry cleaning tools on my laptop and it found over 7,000 registry enteries that are no longer being used.   Developers have wiped and reinstalled windows for years in order to get that fresh restart to restore their systems performance.   By using VM’s — you get a fresh system whenever you need it.

There are two other very nice advantages.   I set up a nightly backup of my virtual machines.   If my computer suffers a failure, I can copy the vm’s to another machine and be up and running in no time.  All my software already installed and ready to go.   My backup drive is an external usb hard drive — which I can take with me when I travel to run all my VM’s from my laptop.

There are many other advantages and uses for vm’s and I’m sure I’ll write more about them in the future.   I’m so thrilled with the advantages of programming in virtual machines that I finally spent the money to buy VMWare Workstation.  You can use the free vmware server instead and I highly recommend taking it for a spin.

Leave a Reply