From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH 5/7] kvm tools: Add help and info messages to 'kvm setup' Date: Fri, 14 Oct 2011 08:51:44 +0200 Message-ID: <20111014065144.GA20587@elte.hu> References: <1318498366-7824-1-git-send-email-levinsasha928@gmail.com> <1318498366-7824-5-git-send-email-levinsasha928@gmail.com> <20111013100046.GA13651@elte.hu> <20111013165233.GB30861@elte.hu> <4E978A3B.5070608@gmail.com> <20111014060851.GA19874@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Asias He , Sasha Levin , kvm@vger.kernel.org, gorcunov@gmail.com To: Pekka Enberg Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:47389 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752034Ab1JNGxU (ORCPT ); Fri, 14 Oct 2011 02:53:20 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: * Pekka Enberg wrote: > On Fri, Oct 14, 2011 at 9:08 AM, Ingo Molnar wrote: > > The canonical extension of that would be to create .kvmtool/ in $CWD > > and to union-mount the files in the current directory on top of the > > .kvmtool 'binary environment' - or such. > > Union mount is off the table for now because neither overlayfs nor > union mounts are in Linus' tree. > > > Or, an approximation of that would be to simply mount $CWD as /home > > of the guest environment. > > > > Thus $CWD/.kvmtool/default/ would be the default root fs (multiple > > instances can be created), and $CWD would be the default /home or > > /host filesystem. > > I like it! > > Should we also introduce KVMTOOLDIR environment variable (much like > GIT_DIR) that can override the default $CWD? Per KISS i'd suggest to only implement it on request - but allow an option to point to whatever explicit combination of rootfs and hostfs. Thanks, Ingo