From: walimis Subject: Re: [PATCH 2/2] kvm tools: handle failure of command Date: Wed, 10 Aug 2011 14:32:26 +0800 Message-ID: <20110810063225.GE16258@walimis-desktop> References: <1312944249-4946-1-git-send-email-walimisdev@gmail.com> <1312944249-4946-2-git-send-email-walimisdev@gmail.com> <20110810050340.GB16258@walimis-desktop> <4E42176B.7000701@kernel.org> <20110810053304.GC16258@walimis-desktop> <20110810061252.GD16258@walimis-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , Asias He , kvm@vger.kernel.org To: Pekka Enberg Return-path: Received: from mail-qy0-f181.google.com ([209.85.216.181]:50689 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814Ab1HJGsj (ORCPT ); Wed, 10 Aug 2011 02:48:39 -0400 Received: by qyk34 with SMTP id 34so444342qyk.19 for ; Tue, 09 Aug 2011 23:48:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Aug 10, 2011 at 09:35:12AM +0300, Pekka Enberg wrote: >On Wed, Aug 10, 2011 at 9:12 AM, walimis wrote: >> On Wed, Aug 10, 2011 at 08:53:53AM +0300, Pekka Enberg wrote: >>>On Wed, Aug 10, 2011 at 8:33 AM, walimis wrot= e: >>>>>>Yes. Because I'm using ubuntu and if I don't use sudo to execute >>>>>>"kvm pause", pause command can't work and doesn't prompt anything= =2E >>>>> >>>>>That's odd. I don't use sudo with the tool either. Sasha? >>>> If I don't use sudo to run "kvm run", kvm prompt me: >>>> =E7=87=9Catal, could not open /dev/kvm: Permission denied >>> >>>You should probably just add yourself to the 'kvm' group: >>> >>>https://help.ubuntu.com/community/KVM/Installation >> OK, that works for me to access /dev/kvm without sudo. Thanks. >> But another sudo requirement is to use tap interface: >> =C2=A0Warning: Config tap device error. Are you root? >> >> So how do you use tap interface in your environment? > >I don't use it. We enable userspace networking by default so all you >need to do in the guest is to make sure dhcp is enabled and you should >have a working network setup. Does that not work for you? I used to use tap to enable network for guest os, so that I can mount=20 nfs rootfs. meanwhile, I can access the guest os from host os through t= he network. For kvm tools, I don't know how to do that through userspace=20 networking. Maybe we need a brief explanation in README. walimis > > Pekka