From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQWpT-0004a5-BM for qemu-devel@nongnu.org; Fri, 14 Oct 2005 17:11:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQWpR-0004ZW-IK for qemu-devel@nongnu.org; Fri, 14 Oct 2005 17:11:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQWpR-0004ZM-9D for qemu-devel@nongnu.org; Fri, 14 Oct 2005 17:11:01 -0400 Received: from [213.133.109.44] (helo=hetzner.email-server.info) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EQWpR-0007ne-2b for qemu-devel@nongnu.org; Fri, 14 Oct 2005 17:11:01 -0400 Received: from [192.168.1.11] (muedsl-82-207-250-127.citykom.de [82.207.250.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hetzner.email-server.info (Postfix) with ESMTP id 6C30D274007 for ; Fri, 14 Oct 2005 23:11:04 +0200 (CEST) Message-ID: <43501FB5.5020303@mid.email-server.info> Date: Fri, 14 Oct 2005 23:14:29 +0200 From: Alexander Skwar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Setting up tun/tap network doesn't work Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello. I'm trying to get qemu 0.7.2 on Gentoo Linux to work with tun/tap network - but fail to do so :/ I compiled the kernel (2.6.13-suspend2-r4) with tun/tap support and copied the "qemu-ifup" script from linux-test-0.5.1 to my /etc directory. I loaded the "tun" module. alexander@blatt ~/var/qemu $ ls -la /dev/net/tun crw-rw---- 1 root root 10, 200 14. Okt 22:56 /dev/net/tun When I start qemu (as root) with: sudo qemu -nographic -hda linux.img -kernel bzImage-2.4.21 -append "console=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe" I get as the first line of output: Connected to host network interface: tun0 and later on: QEMU Linux test distribution (based on Redhat 9) Type 'exit' to halt the system SIOCSIFADDR: No such device eth0: unknown interface: No such device sh-2.05b# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Thus, network isn't setup properly inside the qemu "guest". Rather obviously, I seem to be missing something. But what is it? Also, the documentation isn't that clear, as far as the network part is concerned... Also, I'm sorry to bother you on the devel list, but the "plain users" forum is down :( Thanks a lot for any help you can provide, Alexander Skwar