From: Ingo Molnar Subject: Re: [PATCH 5/7] kvm tools: Add help and info messages to 'kvm setup' Date: Thu, 13 Oct 2011 18:52:36 +0200 Message-ID: <20111013165233.GB30861@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sasha Levin , kvm@vger.kernel.org, asias.hejun@gmail.com, gorcunov@gmail.com To: Pekka Enberg Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:50449 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753292Ab1JMQyP (ORCPT ); Thu, 13 Oct 2011 12:54:15 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: * Pekka Enberg wrote: > On Thu, 13 Oct 2011, Ingo Molnar wrote: > >* Sasha Levin wrote: > > > >>+ r = do_setup(instance_name); > >>+ if (r == 0) > >>+ pr_info("Your new rootfs named %s has been created.\n" > >>+ "You can now start it by running 'kvm run -d %s'\n", > >>+ instance_name, instance_name); > > > >Btw., will 'kvm run' select the last-created rootfs by default? > > No, it runs rootfs that's named 'default'. We can change that but > I'm not completely convinced running that last-created rootfs is > the right thing to do here. Hmm. I'm not convinced either - just wanted to raise the issue. Also, i raised this in the other thread, why not use .kvmtool of the current directory? That way it's cwd local like Git and perf. A 'kvm run' (union?) mount the cwd or so - so this would be a natural equivalent to chroot. The $HOME/.kvmtool is a Qemu-ish global workflow. Thanks, Ingo