From: c.monty@web.de Subject: Using KVM in user mode with public bridge Date: Tue, 24 May 2011 15:44:38 +0200 (CEST) Message-ID: <990266201.721181.1306244678128.JavaMail.fmail@mwmweb027> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from fmmailgate05.web.de ([217.72.192.243]:39314 "EHLO fmmailgate05.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932235Ab1EXNoi convert rfc822-to-8bit (ORCPT ); Tue, 24 May 2011 09:44:38 -0400 Received: from mwmweb027 ( [172.20.18.36]) by fmmailgate05.web.de (Postfix) with ESMTP id 20A9E65363C1 for ; Tue, 24 May 2011 15:44:38 +0200 (CEST) Sender: kvm-owner@vger.kernel.org List-ID: Hello! I have installed KVM/QEMU on my LMDE (Linux Mint Debian Edition) system= =2E The guest should use a public bridge that I have set up with /etc/netwo= rk/interfaces. As you can see the bridge is configured to use a static = IP: =C2=A0s@pc1-lmde ~ $ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth1 iface eth1 inet manual auto br1 iface br1 inet static =C2=A0 =C2=A0 address 192.168.178.11=C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 netmask 255.255.255.0 =C2=A0 =C2=A0 gateway 192.168.178.1 =C2=A0 =C2=A0 bridge_ports eth1 =C2=A0 =C2=A0 bridge_stp off =C2=A0 =C2=A0 bridge_fd 0 =C2=A0 =C2=A0 bridge_maxwait 0 Starting a VM with kvm command returns this error: =C2=A0s@pc1-lmde ~ $ kvm -hda ~/.virtualmachines/aqemu/virtualdisk_conv= erted/vm2-windowsxp-HD01-15G.qcow -boot c -cdrom /dev/cdrom -m 1024 -sm= p 1 -net nic,macaddr=3D00:88:4e:ad:2d:61 -net tap kvm: -net tap: could not configure /dev/net/tun (tap%d): Operation not = permitted kvm: -net tap: Device 'tap' could not be initialized Checking the permissions of file /dev/net/tun: =C2=A0s@pc1-lmde ~ $ ls -l /dev/net/tun crw-rw-rw- 1 root root 10, 200 21. Mai 09:52 /dev/net/tun =C2=A0Starting kvm as root by means of using "sudo" works. Then all pro= cesses runs as root. Can you advice how to troubleshoot this problem? Why do I have to be ro= ot for starting KVM? I thought the group assignment is correct: =C2=A0s@pc1-lmde ~ $ groups sudo kvm libvirt I would prefer to run kvm in user mode, means not as root. I assume I have to initiate the TUN/TAP interface before the VM is star= ted. How can I do this using a script? Is there a Howto available providing = instructions? THX