I'd like to set up three virtualized server on one box running Ubuntu KVM. I'd also like to have a second machine mirroring the above mentioned on a cluster so that if the first machine physically goes down, this one would take over.

Is this setup possible and if so, does anyone have a link to a articles or walkthroughs on this?


Yes, you can do it. I don't have any articles to hand, but we're using DRBD, heartbeat, some simple shell scripts, and Puppet to automatically provision, replicate, failover and maintain our VMs.


depends on how exactly you want things to failover. if you mean the scenario where if one host fails, all VMs are restarted on another - RHEV can do that easily. if you're looking for 0 downtime - you want vmware FT, which costs an arm and a leg


Maybe the new Cloud Computing Solution from Ubuntu (which is based on KVM) is worth a look. http://www.ubuntu.com/cloud/private

I have no real experience but maybe it's a modern approach to your problem. :-)


Instead of Ubuntu you can use Fedora or CentOS because I don't know much about Ubuntu

  1. Both nodes identical with software
  2. Setup host name on both test1.example.com & test2.example.com
  3. At /etc/grub.conf: kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet acpi=off
  4. /etc/sysconfig/network at line for GATEWAY=xx.xx.xx.xx
  5. If you are using CentOS 5.4 or Fedora 11 or 12 /etc/sysctl.conf net.ipv4.ip_forward = 1 change from 0 to 1
  6. In your case I don't know where the storage is. (I have created NFS on a SAN box for all the guest are using a SAN partition)
  7. yum install ricci luci -y in on test1
  8. yum install ricci -y on test2
  9. service ricci start and chkconfig ricci on both nodes
  10. luci_admin init, then enter the password for your luci admin on test1
  11. Browse to https://<ipaddress>:8084/
  12. Select the cluster tab
  13. Add a new cluster

Then install using cluster server all the guests!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy