Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465Ab2JURvP (ORCPT ); Sun, 21 Oct 2012 13:51:15 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:42914 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932398Ab2JURvO (ORCPT ); Sun, 21 Oct 2012 13:51:14 -0400 Date: Sun, 21 Oct 2012 19:51:08 +0200 From: Ingo Molnar To: Markus Trippelsdorf Cc: Borislav Petkov , richard -rw- weinberger , Christoph Hellwig , Dave Airlie , Stephen Rothwell , Pekka Enberg , Linus Torvalds , Andrew Morton , Avi Kivity , linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Linux KVM tool for v3.7-rc0 Message-ID: <20121021175108.GA3820@gmail.com> References: <20121020180436.c42b7325431fe87104b008fa@canb.auug.org.au> <20121020181425.GA11191@liondog.tnic> <20121021110329.GA7024@infradead.org> <20121021125933.GC19535@gmail.com> <20121021150305.GA26108@gmail.com> <20121021171543.GC20642@liondog.tnic> <20121021174041.GA240@x4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121021174041.GA240@x4> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1765 Lines: 45 * Markus Trippelsdorf wrote: > On 2012.10.21 at 19:15 +0200, Borislav Petkov wrote: > > On Sun, Oct 21, 2012 at 05:03:05PM +0200, Ingo Molnar wrote: > > > The best way to compare them would be a script that gives exactly the > > > same test environment that 'vm run' / 'vm sandbox' does out of box, > > > but using qemu. > > > > > > If such a script is available then that would certainly be a useful > > > testing option to kernel developers. > > > > Right, > > > > I gotta say, I've mucked around with qemu/kvm net options as a novice > > user and haven't always been successfu. If you get host networking > > straight away in lkvm then that's another clear point for tools/kvm. > > > > Same holds true for copying data back and forth between host and guest. > > I'm agnostic about lkvm, but the following command does all the above: > > qemu-system-x86_64 -enable-kvm -net nic,vlan=0,model=virtio > -net user -fsdev > local,security_model=passthrough,id=root,path=/ -device > virtio-9p-pci,id=root,fsdev=root,mount_tag=/dev/root -m 512 > -smp 2 -kernel /usr/src/linux/arch/x86/boot/bzImage -nographic > -append "init=/bin/zsh root=/dev/root console=ttyS0 > kgdboc=ttyS0 rootflags=rw,trans=virtio rootfstype=9p ip=dhcp" > > If you want your host root-fs to be mounted rw (to copy data > back and forth) you need to run to above as root and add "rw" > to the kernel options. Why does it have to run as root? I run 'vm' unprivileged (other than /dev/kvm access). Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/