From: Javier Guerra Subject: Re: how to manage KVM guests with libvirt ? Date: Mon, 1 Jun 2009 10:01:59 -0500 Message-ID: <90eb1dc70906010801x6d31b339i5334db51c5fe95ff@mail.gmail.com> References: <4A23E8AD.7000600@cnaf.infn.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Riccardo Veraldi Return-path: Received: from ey-out-2122.google.com ([74.125.78.24]:10381 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbZFAPB7 (ORCPT ); Mon, 1 Jun 2009 11:01:59 -0400 Received: by ey-out-2122.google.com with SMTP id 22so481643eye.37 for ; Mon, 01 Jun 2009 08:02:00 -0700 (PDT) In-Reply-To: <4A23E8AD.7000600@cnaf.infn.it> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Jun 1, 2009 at 9:41 AM, Riccardo Veraldi wrote: > Hello, > I have always created my guests by hand with qemu-kvm syntax. > Is there a way to control and manage KVM guests with libvirt without being > forced to create the guest with virtmanager or with virtsh ? i'm doing this, after seeing the managment tools available with libvirt. the easiest way is to write an XML that describes what you already know how to do with command line. there are still a couple of missing options (most notably cache=none, and getting to the command console); but you should be able to get it to work. virt-install is a nice hack for installing well-behaved linux distros; but for windows (where you have to pick exactly which features to expose at different steps of the install), it's easier to do on the command line and write the needed XML after that. one tip, if you choose to allow libvirt to manage an LVM storage pool, it's better not to create/destroy LVs manually. use virsh for that or just don't tell libvirt about your LVM. i had a couple of host crashes when the libvirt view of the storage got inconsistent with reality. -- Javier