Monday, January 14, 2008

More on going virtual, more experience

As I told you in this blogpost I was thinking about moving my production environment into a virtual machine. I got some really great feedback on that post, thanks for that!

Executing on that thought, I made two VM's. Here is my experience so far:

My hosting Laptop
My laptop (Dell Inspiron 9300) is two years old with the following specifications:
- Windows XP pro
-Processor: Intel running at 1,86 Ghz (Don't know exact type)
-1,5 GB memory
-Max memory available for VM 512MB
I do most of my development on this laptop.

My hosting PC
-Window Vista Business
-Processor: Intel Duo Core
-2GB memory
-Max memory available for VM 1024MB

My Delphi VM (Windows XP pro)
I made a 'Delphi' VM with Delphi 7 (for older projects), BDS2006 (for Winforms development) and RAD Studio 2007.
Currently I am using Microsoft Virtual PC 2007 to make the virtual machine. Why? Simply because it is free and I am still in an experience state here, just making the big picture on going virtual. I believe VMWare has more options, and, as I found out, Virtual PC is no good for Linux distributions. (Use Virtual box for that).
I installed all that was necessary for Delphi, the IDE, third party components etcetera in the VM.
I use Visual SourceSafe for version control and keep the source files within the VM because I had some trouble keeping the shared folders alive. This was probably a low memory issue. So my source database is on my hosting laptop, which is backed up as usual.
Currently I 'synchronize' the sources through SourceSafe between the VM and the host. (I still develop on the host...)

Performance
On my hosting laptop (512MB) Delphi 7 works fine, but BDS2006 and RAD Studio 2007 are slow. Most annoying in BDS2006 and RAD Studio is the slow typing, which makes it kind of unworkable.
On my hosting PC, with twice the available memory RAD Studio performance is OK.

My Ubuntu VM (Ubuntu 7.1)
Well since we are going virtual it is easy to test some OS from the other side of the fence. Installing Ubuntu into Virtual PC did not work (black screen). So I used Virtual Box instead, as someone suggested in the feedback of the last post.
Installing Ubuntu is amazingly easy, did not expect that so I was suprised.
Kylix 3:
I tried to install Kylix 3, but with no luck so far. This has probably most to do with my (missing) Linux skills. ;-) (Have to investigate this further)
Lazarus:
I managed to install lazarus pretty easy. Cool I can make an application for Linux now. ;-)

Conclusion
At this moment I will not go virtual completely. First I will have to upgrade the internal memory of my laptop upto at least 2 GB. But more memory, of course, would be better. (4GB?)
However it is nice to know that if my laptop, or installation, crashes I now have a complete installed development environment as backup, making the downtime almost zero.
The choice for the right virtual machine software is depending on what you do within the VM. However you could use more than one product. Virtual Box is a great alternative for both Windows and Linux VM's.
Possible future scenario:
Buy a new laptop without a preinstalled Windows (Vista). Install Ubuntu (or another Linux distro) on that laptop and run Windows XP in a VM..........

9 comments:

Anonymous said...

Yes, the more memory the better. Having 2GB for the Host, and 2GB for the VM would be ideal.

XP Runs a lot better with 2GB ram, vs. 1 or 1.5 GB.

Lex Li said...

I tried to install Kylix too, but I failed. I guess it is impossible to install Kylix on latest Linux distributions any more.

Anonymous said...

4GB is a little to much on a 32 bit os: Coding Horror, 9. mars, 2007

Fernando Madruga said...

Step into VMWare! I started VirtualPC and then tried VMWare and never looked back! Performance-wise, it's a different world! Get the trial and I think there's some free conversion tools that you can use to import those VPC images.

More memory = better, be that in a single windows environment or even more so in a VM/Host combo. Get as much as you can as that's the main slowing factor. (Also, don't forget to install the native display/mouse drivers for the VM (VMTools for VMWare, don't know if there's any for VPC)).

Anonymous said...

There is also some free version of VMware available: VMware Server and VMware Player.

Alexander said...

My first experience with Delphi+VM was with VMWare 5 on my desktop Pentium4 2.8GHz with 1 Gb RAM. It was interesting. Last summer I bought Toshiba notebook CoreDuo 1.76GHz with 2 Gb RAM. Plus I made an upgrade to VMWare 6. I was wonderful. I loved it. Before Christmas I bought CoreQuad 2.66Ghz with 8 Gb RAM. Guys I have to say it is more than wonderful. I am absolutely VMDelphi fan.

Anonymous said...

--fernando
Sure will give VMWare a try! It really looks good. Also good to know they have a import tool for VPC.

Omar Cruz said...

I like this blog is fantastic, is really good written. Congratulation. Do you want to see something more? Read it...: Costa Rica is a country with a extremely sense of freedom. The landscapes are for much the most green in whole center america.The chances of investement are way to high, the average of Americans, European and people of the entire planet who is buying here is up in the sky !!!
Great investment opportunity in Costa Rica: condos, costa rica real estate, costa rica property. Visit us for more info at: http://www.jaco-bay.com/

Unknown said...
This comment has been removed by a blog administrator.

Use an image as your UIBarButtonItem

Using an image as your UIBarButtonItem in your navigationcontroller bar can only be achieved by using a common UIButton as the BarButtonItem...