All of lore.kernel.org
 help / color / mirror / Atom feed
From: walimis <walimisdev@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>, Ingo Molnar <mingo@elte.hu>,
	Sasha Levin <levinsasha928@gmail.com>,
	Prasad Joshi <prasadjoshi124@gmail.com>,
	Asias He <asias.hejun@gmail.com>,
	kvm@vger.kernel.org
Subject: Re: [PATCH 2/2] kvm tools: handle failure of command
Date: Wed, 10 Aug 2011 14:12:52 +0800	[thread overview]
Message-ID: <20110810061252.GD16258@walimis-desktop> (raw)
In-Reply-To: <CAOJsxLFMGMP94EwgjKD4RuWNK=xGnyO0KiFZqz1xfjVLgqMxNw@mail.gmail.com>

On Wed, Aug 10, 2011 at 08:53:53AM +0300, Pekka Enberg wrote:
>On Wed, Aug 10, 2011 at 8:33 AM, walimis <walimisdev@gmail.com> wrote:
>>>>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.
>>>
>>>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:
>> 燜atal, 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:
  Warning: Config tap device error. Are you root?

So how do you use tap interface in your environment?

walimis
>
>> So I use sudo to execute "kvm run".
>>>>BTW, do you always login as "root" user?
>>>
>>>Depends on which image you're using.
>> I don't refer to the guest image. I mean that in your host PC, which user
>> you login and operate as.
>
>Heh, I never login as 'root' to the host machine. :-)
>
>                        Pekka

  reply	other threads:[~2011-08-10  6:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  2:44 [PATCH 1/2] kvm tools: convert callback to int and deal with the return value Liming Wang
2011-08-10  2:44 ` [PATCH 2/2] kvm tools: handle failure of command Liming Wang
2011-08-10  5:02   ` Pekka Enberg
2011-08-10  5:03     ` walimis
2011-08-10  5:30       ` Pekka Enberg
2011-08-10  5:33         ` walimis
2011-08-10  5:53           ` Pekka Enberg
2011-08-10  6:12             ` walimis [this message]
2011-08-10  6:35               ` Pekka Enberg
2011-08-10  6:32                 ` walimis
2011-08-10  6:49                   ` Pekka Enberg
2011-08-10  9:28                     ` Asias He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110810061252.GD16258@walimis-desktop \
    --to=walimisdev@gmail.com \
    --cc=asias.hejun@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=levinsasha928@gmail.com \
    --cc=mingo@elte.hu \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.