* Running KVM without root privileges
@ 2007-08-19 12:38 Eugene Coetzee
[not found] ` <1187527111.10912.1.camel-w9fvoj/KL/s9qinSMKopcw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Eugene Coetzee @ 2007-08-19 12:38 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi .
I'm trying to run KVM on Feisty, 64 bit Intel with the "-net nic -net
tap" switches so I can use it in bridged network mode.
It refuses and I have to run it sudo which for security concerns I don't
want to do.
The error message is : "warning: could not configure /dev/net/tun: no
virtual network emulation
Could not initialize device 'tap''
I have googled everywhere on the net todo with debian/ubuntu and these
error messages and have tried every trick in the book: I have even
changed udev settings so that the permissions on /dev/net/tun are ok for
non-root users. Also tried all kind of tricks in sudoers. Nothing helps.
regards,
Eugene
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <1187527111.10912.1.camel-w9fvoj/KL/s9qinSMKopcw@public.gmane.org>]
* Re: Running KVM without root privileges [not found] ` <1187527111.10912.1.camel-w9fvoj/KL/s9qinSMKopcw@public.gmane.org> @ 2007-08-19 13:02 ` Luca [not found] ` <68676e00708190602p6b0ca91csc3a4550de162443a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Luca @ 2007-08-19 13:02 UTC (permalink / raw) To: eugene-ms3nWvnsWYxl57MIdRCFDg; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On 8/19/07, Eugene Coetzee <eugene-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> wrote: > Hi . > > I'm trying to run KVM on Feisty, 64 bit Intel with the "-net nic -net > tap" switches so I can use it in bridged network mode. > > It refuses and I have to run it sudo which for security concerns I don't > want to do. > > The error message is : "warning: could not configure /dev/net/tun: no > virtual network emulation > Could not initialize device 'tap'' You need CAP_NET_ADMIN to fiddle with TUN/TAP. Luca ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <68676e00708190602p6b0ca91csc3a4550de162443a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Running KVM without root privileges [not found] ` <68676e00708190602p6b0ca91csc3a4550de162443a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-08-19 13:59 ` Eugene Coetzee [not found] ` <46C84CB1.5070202-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Eugene Coetzee @ 2007-08-19 13:59 UTC (permalink / raw) To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Luca wrote: >On 8/19/07, Eugene Coetzee <eugene-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> wrote: > > >>Hi . >> >>I'm trying to run KVM on Feisty, 64 bit Intel with the "-net nic -net >>tap" switches so I can use it in bridged network mode. >> >>It refuses and I have to run it sudo which for security concerns I don't >>want to do. >> >> >You need CAP_NET_ADMIN to fiddle with TUN/TAP. > > Thanks for the reply. I'm a little confused about the interaction between KVM and qemu. Which binary requires CAP_NET_ADMIN capability - KVM or qemu ? (see http://www.friedhoff.org/fscaps.html#Qemu ) regards, ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <46C84CB1.5070202-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org>]
* Re: Running KVM without root privileges [not found] ` <46C84CB1.5070202-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> @ 2007-08-19 15:00 ` Luca [not found] ` <68676e00708190800u66b8039p2be2cdd344e87805-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Luca @ 2007-08-19 15:00 UTC (permalink / raw) To: Eugene Coetzee; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On 8/19/07, Eugene Coetzee <eugene-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> wrote: > Luca wrote: > >On 8/19/07, Eugene Coetzee <eugene-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org> wrote: > >>Hi . > >> > >>I'm trying to run KVM on Feisty, 64 bit Intel with the "-net nic -net > >>tap" switches so I can use it in bridged network mode. > >> > >>It refuses and I have to run it sudo which for security concerns I don't > >>want to do. > >> > >> > >You need CAP_NET_ADMIN to fiddle with TUN/TAP. > > > > > Thanks for the reply. I'm a little confused about the interaction > between KVM and qemu. Which binary requires CAP_NET_ADMIN capability - > KVM or qemu ? In the upstream package 'kvm' is just a script wrapper that invokes the right qemu executable (the userspace component of KVM is a modified QEMU). The exact naming depends on your distro, e.g. Debian package puts the executable in /usr/bin/kvm. Luca ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <68676e00708190800u66b8039p2be2cdd344e87805-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Running KVM without root privileges [not found] ` <68676e00708190800u66b8039p2be2cdd344e87805-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2007-08-21 15:49 ` Eugene Coetzee 0 siblings, 0 replies; 5+ messages in thread From: Eugene Coetzee @ 2007-08-21 15:49 UTC (permalink / raw) To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Luca wrote: >>Thanks for the reply. I'm a little confused about the interaction >>between KVM and qemu. Which binary requires CAP_NET_ADMIN capability - >>KVM or qemu ? >> >> > >In the upstream package 'kvm' is just a script wrapper that invokes >the right qemu executable (the userspace component of KVM is a >modified QEMU). The exact naming depends on your distro, e.g. Debian >package puts the executable in /usr/bin/kvm. > >Luca > > > > Thanks for the advice. I have posted the solution to the problem on Ubuntu Feisty at: http://www.linuxforums.org/forum/ubuntu-help/101274-running-kvm-without-root-privileges.html#post499980 kind regards, Eugene Coetzee -- -- =============================================== Reedflute Software Solutions Telephone -> +27 18 293 3236 General information -> info-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org Project information -> projects-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org Web -> www.reedflute.com =============================================== ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-21 15:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 12:38 Running KVM without root privileges Eugene Coetzee
[not found] ` <1187527111.10912.1.camel-w9fvoj/KL/s9qinSMKopcw@public.gmane.org>
2007-08-19 13:02 ` Luca
[not found] ` <68676e00708190602p6b0ca91csc3a4550de162443a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-19 13:59 ` Eugene Coetzee
[not found] ` <46C84CB1.5070202-ms3nWvnsWYxl57MIdRCFDg@public.gmane.org>
2007-08-19 15:00 ` Luca
[not found] ` <68676e00708190800u66b8039p2be2cdd344e87805-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-21 15:49 ` Eugene Coetzee
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox