public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Are root privileges really needed to run kvm?
@ 2007-06-11 13:19 Dimitry Golubovsky
       [not found] ` <bcba51a0706110619q661628b6lfd6b6968ad893c59-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Dimitry Golubovsky @ 2007-06-11 13:19 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

I am trying to find a way to run kvm (qemu_system) without sudo, at
user's privileges.

So far, I saw two things where root privileges were needed:

1. Adjusting RTC - can be done once
2. Access to /dev/kvm: I created a group named "vm", chowned /dev/kvm
to root.vm, and added the user to the vm group.

Now qemu_system does not complain and runs the virtual machine under
user's privileges. The qemu_system executable is not even suid-root  I
use kvm-17 with 2.6.21 kernel from ArchLinux distro.

Am I missing anything else root privileges might be needed for? There
was a discussion about qemu itself not capable to set up tun/tap (I
haven't tested the networking yet), but there was some solution
proposed to use the capabilities mechanism, or to pre-create the
tuntap device:

http://www.kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions
http://www.friedhoff.org/fscaps.html#Qemu

I intend running kvm for users that remotely login on the kvm host,
and ability to get rid of any sudo stuff would be much desired.

Thanks.

-- 
Dimitry Golubovsky

Anywhere on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-06-13 15:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 13:19 Are root privileges really needed to run kvm? Dimitry Golubovsky
     [not found] ` <bcba51a0706110619q661628b6lfd6b6968ad893c59-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13  8:30   ` Avi Kivity
     [not found]     ` <466FAB08.5050902-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 14:28       ` Anthony Liguori
     [not found]         ` <466FFF13.8000102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-06-13 14:34           ` Avi Kivity
2007-06-13 15:01           ` Dimitry Golubovsky
     [not found]             ` <bcba51a0706130801r79a77751m31d46aac630c3e80-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:08               ` Avi Kivity
     [not found]                 ` <46700887.30009-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 15:26                   ` Dimitry Golubovsky
     [not found]                     ` <bcba51a0706130826r60175d04r3e8a402f2c8f6271-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:33                       ` Avi Kivity
     [not found]                         ` <46700E4A.50906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 15:39                           ` Dimitry Golubovsky
     [not found]                             ` <bcba51a0706130839l143bb209pfc4ee664ce20f300-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 15:54                               ` Avi Kivity
2007-06-13 15:10               ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox