From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 323DA138010 for ; Tue, 25 Sep 2012 22:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B42221C06F; Tue, 25 Sep 2012 22:43:21 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by pigeon.gentoo.org (Postfix) with ESMTP id 9502121C04A for ; Tue, 25 Sep 2012 22:41:41 +0000 (UTC) Received: by wiwc10 with SMTP id c10so2922120wiw.4 for ; Tue, 25 Sep 2012 15:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=2zSeyjCD/iHegZg7E4xOGDzHOp4CIRed7pBvWNA1cuI=; b=pcM0MbkzJZ0rmietfWUlvNkviuGSRg1Arz5DNZwbdGZ2DkspwZnQVx/RaYmbUA4kI4 EUrdyK/KsjyC16G0vjXjDOxYgQ7m9qcZ7bCzhuou8y3BqjAq+89DMmXxUptOxQGjzus/ nE063iqtcWlRa5z+CQvZbXFbD2/XGhnQpfDM6l7f3d3klhEr7ENhc58TIC+K5bY9LqHk OSCIFtnN/IIrsI63M1wMsbtkkFB0R6isPWF8mCeWzHpS4aCNUkR2yAHPVkJB3UVOG8sn w6KtR1izJF0pX/aKDLjhOas2unJHLdUpqS2UXxvKR3F94AzoH/tmyDNc7UY6XmDUWtKG V/oQ== Received: by 10.180.94.226 with SMTP id df2mr24776555wib.11.1348612900764; Tue, 25 Sep 2012 15:41:40 -0700 (PDT) Received: from khamul.example.com (196-215-203-191.dynamic.isadsl.co.za. [196.215.203.191]) by mx.google.com with ESMTPS id bn7sm3118527wib.8.2012.09.25.15.41.38 (version=SSLv3 cipher=OTHER); Tue, 25 Sep 2012 15:41:39 -0700 (PDT) Date: Wed, 26 Sep 2012 00:40:32 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Creating KVM image using existing gentoo partition Message-ID: <20120926004032.7998cba1@khamul.example.com> In-Reply-To: <20120925223325.GA27146@crowfix.com> References: <20120925223325.GA27146@crowfix.com> Organization: Internet Solutions X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.12; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 7a5a3a1b-c682-442e-93ba-1fd03e95e99d X-Archives-Hash: aaff8baeb21bc10cbe3feee5ba882514 On Tue, 25 Sep 2012 15:33:25 -0700 felix@crowfix.com wrote: > Got a new laptop at work,, running Linux instead of Mac, yay! > Unfortunately, it comes with Ubuntu installed, boo! But I split the > 500GB drive into two parts, began a gentoo install in the second > half, and now I am stalled. > > The main purpose of the laptop is to run Centos 6.2 in a KVM image so > it can simulate production as much as possible. As much as I dislike > Ubuntu, I really only use it for terminals, Emacs, and Firefox. I > ssh into the Centos image for all that stuff. I'd love to switch > Ubuntu to gentoo and set up my usual fvwm etc instead of that awful > Unity. > > Unfortunately, because I have to leave that Centos image running as > much as possible, I can't take the time to reboot into the gentoo > partition to finish the install, not even on weekends or evenings. > It was ok getting the initial gentoo install started, but that was > only an hour or two. I can't take the time for a real install, > there's work to do. If you ask me, there's your real problem right there. It reminds me of the old adage; "How come is there never enough time to do the job properly, but always enough time to do it over when it breaks?" Just bite the bullet, shut the machine down and do the install properly - you know you need to do it. I can't quite fathom why you think a laptop of all things must be on 24/7. if that were true, it would be a server in your data center surely? Are you real completely 100% certain that out of 168 hours a week you can't spare 2 to get your tools in order? > > So it occurred to me it would be great to create a new KVM image > using the gentoo partition as is for its file system, instead of > creating one out of a file as it did for the Centos image. But I > don't see any obvious options to do that. This is my first time with > KVM, and someone else set up the Centos image using some GUI wizard. > > > Here be my scurvy dog question(s): > > Is it possible to create a KVM image using an existing gentoo > partition (/dev/sda3) for the filesystem, such that once I get the > gentoo install finished, I can boot directly to the gentoo partition > and not have to purify it or sanitize it after KVM has meddled with > it? (and how do I do this? :-) > > If not, seems like the simplest workaround would be to create a KVM > image from scratch and do a complete install there, then use cp, tar, > cpio, or something similar to copy everything over to the real > partition. But that sounds ugly for some reason. > -- Alan McKinnon alan.mckinnon@gmail.com