From: Rik Theys Subject: best practices for kvm setup? Date: Tue, 15 Jul 2008 07:51:12 +0200 Message-ID: <487C3AD0.3080402@esat.kuleuven.be> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from cavuit02.kulnet.kuleuven.be ([134.58.240.44]:52126 "EHLO cavuit02.kulnet.kuleuven.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754494AbYGOGZx (ORCPT ); Tue, 15 Jul 2008 02:25:53 -0400 Received: from smtps01.kuleuven.be (smtpshost01.kulnet.kuleuven.be [134.58.240.74]) by cavuit02.kulnet.kuleuven.be (Postfix) with ESMTP id 17BC251CC66 for ; Tue, 15 Jul 2008 07:51:13 +0200 (CEST) Received: from smtps01.kuleuven.be (localhost [127.0.0.1]) by smtps01.kuleuven.be (Postfix) with ESMTP id E50B231E703 for ; Tue, 15 Jul 2008 07:51:12 +0200 (CEST) Received: from nijl.esat.kuleuven.be (nijl.esat.kuleuven.be [134.58.56.153]) by smtps01.kuleuven.be (Postfix) with ESMTP id CF64631E702 for ; Tue, 15 Jul 2008 07:51:12 +0200 (CEST) Received: from [10.33.138.9] (lucifer.esat.kuleuven.be [10.33.138.9]) by nijl.esat.kuleuven.be (8.14.3/8.14.3) with ESMTP id m6F5pCRM020234 for ; Tue, 15 Jul 2008 07:51:12 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hi, I'm looking into virtualizing some of our servers onto two (or more) physical nodes with either KVM or Xen. What are the 'best practices' for running virtual _servers_ with KVM? Any good/bad experiences with running KVM for virtual servers that have to run for months on end? I've installed ubuntu 8.04 because it should have KVM as the default virtualization tool and is the only 'enterprise' distribution with kvm right now. I used one host to act as an iSCSI target and installed ubuntu with KVM on two other nodes. I can create a virtual server with virt-manager, but it seems live migration is not (yet) supported by libvirt/virsh? So how are other people running their KVM virtual servers? Do you create a script for each virtual server and invoke kvm directly? How do you do the live migration then? Launch the script with an 'incoming' parameter on the target host, and run the migrate command manually? Or is there an other (automated) way? I once tried the live migration on a test host and if I recall correctly, the kvm process kept on running on the source host even after the server was migrated to the target? Is that the expected behaviour? What type of shared storage is best used with KVM (or Xen for that matter)? Our physical servers will be connected to a SAN. Should I create volumes on my san and export them to my physical servers where I can then use them as /dev/by-id/xxx disk in my KVM configs? Of should I configure my two servers into a GFS cluster and use files as backend for my KVM virtual machines? What are you using as shared storage? Regards, Rik Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm