From: Riccardo Veraldi Subject: Re: how to manage KVM guests with libvirt ? Date: Mon, 01 Jun 2009 18:02:28 +0200 Message-ID: <4A23FB94.6090302@cnaf.infn.it> References: <4A23E8AD.7000600@cnaf.infn.it> <90eb1dc70906010801x6d31b339i5334db51c5fe95ff@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Javier Guerra Return-path: Received: from iris.cnaf.infn.it ([131.154.3.7]:59816 "EHLO iris.cnaf.infn.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbZFAQCl (ORCPT ); Mon, 1 Jun 2009 12:02:41 -0400 In-Reply-To: <90eb1dc70906010801x6d31b339i5334db51c5fe95ff@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: thank you very much. How do I know all the XML tag options ?? how to convert from comand line quemu options into XML tags ? and here to put XML file ? about the console I used to start qemu-kvm under SCREEN program. is ther another better way to have serial console ? thank you Rick Javier Guerra wrote: > 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. > > >