From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNoB4-0001lV-H1 for qemu-devel@nongnu.org; Tue, 08 Nov 2011 11:05:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNoAv-0008Ph-R0 for qemu-devel@nongnu.org; Tue, 08 Nov 2011 11:05:34 -0500 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:38102 helo=bombadil.infradead.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNoAv-0008Pd-OI for qemu-devel@nongnu.org; Tue, 08 Nov 2011 11:05:25 -0500 Date: Tue, 8 Nov 2011 09:52:57 -0500 From: Christoph Hellwig Message-ID: <20111108145257.GA10846@infradead.org> References: <1320543320-32728-1-git-send-email-agraf@suse.de> <4EB93FA4.8020800@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EB93FA4.8020800@redhat.com> Subject: Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Blue Swirl , "kvm@vger.kernel.org list" , "linux-kernel@vger.kernel.org List" , qemu-devel Developers , Alexander Graf , Pekka Enberg , Am?rico Wang , Ingo Molnar , Linus Torvalds On Tue, Nov 08, 2011 at 04:41:40PM +0200, Avi Kivity wrote: > On 11/06/2011 03:35 AM, Alexander Graf wrote: > > To quickly get going, just execute the following as user: > > > > $ ./Documentation/run-qemu.sh -r / -a init=/bin/bash > > > > This will drop you into a shell on your rootfs. > > > > Doesn't work on Fedora 15. F15's qemu-kvm doesn't have -machine or > -virtfs. Even qemu.git on F15 won't build virtfs since xattr.h > detection is broken (patch posted). Nevermind that running virtfs as a rootfs is a really dumb idea. You do now want to run a VM that has a rootfs that gets changed all the time behind your back. Running qemu -snapshot on the actual root block device is the only safe way to reuse the host installation, although it gets a bit complicated if people have multiple devices mounted into the namespace.