I am experimenting with a couple of technologies that I soon may have to use at work. So for now, I was thinking about duplicating the environment which I may have to create for my office at home so that I can save sometime. We're thinking of hosting our websites on our own little datacentre at work. While this is still under discussion, I think this provides an excellent opportunity for me to learn some cloud/virtualization technologies.So, I have 2 assembled PCs (2nd gen i5 processor, 4GB RAM each, 80GB HDD each) on which I plan to learn on. I'd like to recreate a hosting environment wherein I'd like to be able to host websites, have backups taken, incorporate Load balancing (if necessary). I was thinking along the lines of Openstack. The host OS that I was thinking of using was CentOS or Fedora.My questions are:Is it better to install Openstack on top of one of the afore mentioned OS or first have Virtualize the environment with ESxi/Xen and then install Openstack? (I am going to be using all of these technologies for the first time)Say there is a website which has a MySQL db, in a virtual environment, is it possible to have one VM as the frontend and another VM as the DB server? Does this affect the performance in anyway?I've downloaded all the necessary documentation from the websites and some tutorials as well and I also have the hardware ready. I'm waiting for some input from this community which might be helpful along the way or some advice from people who've tried this before.There're  a list of lists I've found concerning building your own environment but by far, I found this to be the most interesting.
Openstack for home cloud hosting
linux;virtual machine;webserver;openstack;hosting services
This is a big topic, but I'll try to keep it short.You could try DevStack, which will get you up and running with less configuration work. If you want to really understand the inner workings of the platform, and since you have the hardware, I would go ahead and install it from scratch on your distro of choice (CentOS and Fedora are fully supported according to the docs - I would suggest reading through them before beginning).You will be installing a Cloud Controller and at least one Compute Node. The Compute nodes should be physical machines, as the tenants in the cloud will run on the Compute nodes as virtual machines. The other machine can be the controller. Install Linux, then install OpenStack and its prerequisites via yum/other package mgr. You can download pre-configured CirrOS images to register on your cloud and test the cloud API. KVM is the default hypervisor for OpenStack, and it has worked well for me.It is a common practice to separate the database from the application front end, whether virtual or physical. In most cases, performance will increase due to the decreased activity on both machines (assuming LAN connection 100mb+).Building a production cloud isn't trivial, and you may even have to wipe your lab machines and start over more than once, but learning the technologies is exciting.