From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QK4dX-0001jX-85 for qemu-devel@nongnu.org; Wed, 11 May 2011 04:19:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QK4dW-0006VD-6y for qemu-devel@nongnu.org; Wed, 11 May 2011 04:19:15 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:47682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QK4dW-0006V3-2X for qemu-devel@nongnu.org; Wed, 11 May 2011 04:19:14 -0400 Received: by fxm2 with SMTP id 2so202829fxm.4 for ; Wed, 11 May 2011 01:19:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110510115630.GA1811@amd.home.annexia.org> References: <20110510115630.GA1811@amd.home.annexia.org> Date: Wed, 11 May 2011 10:19:12 +0200 Message-ID: From: Juerg Haefliger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [virt-tools-list] Virt Tools Survey: What to do about virt-clone List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: virt-tools-list@redhat.com Cc: virt@lists.fedoraproject.org, qemu-devel@nongnu.org, Cole Robinson > (a) Is cloning guests useful for you or not? =A0Often or infrequently? I don't 'clone' in the strict sense of the word. I create a base raw OS image and provide that image to other users as a common starting point for them to setup their guests. I don't care about the XML definition, just the raw image file. Hopefully I won't have to do that too often once the base image is stable/mature. But it needs to be done every time I'll have to support a new OS variant. > (b) Do you currently use virt-clone to clone guests? Nope. Don't know what it does, never looked into it. > (c) Do you have a homebrew method to clone guests? =A0What does it do? Plain 'cp' to 'clone' the image. > (e) When you clone a guest, do you "sysprep" it or would you like to? > (Using the term "sysprep" generically here, I mean any sort of > reinitialization for Linux or Windows guests). Before making the image available to potential users, I 'sanitize' (what you call 'sysprep') the image. Currently, I only support SL6 and all this step accomplishes is purging the persistent-net udev rule and removing the MACADDR from ifcfg-eth0 so that eth0 comes up when the image is used in a new KVM instance. This is done by loading a little script into the guest, running it and then removing it again, using libguestfs. > (f) How do you feel about a multi-step process? > > =A0virt-clone -> virt-sysprep -> virt-resize (for example) Sounds fine to me as long as there is sufficient control over what each step is doing and as long as it can be automated without the need for a fancy GUI. ...Juerg