qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Setting up tun/tap network doesn't work
@ 2005-10-14 21:14 Alexander Skwar
  2005-10-14 22:28 ` Marco Matthies
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Skwar @ 2005-10-14 21:14 UTC (permalink / raw)
  To: qemu-devel

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

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

end of thread, other threads:[~2005-10-17 14:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 21:14 [Qemu-devel] Setting up tun/tap network doesn't work Alexander Skwar
2005-10-14 22:28 ` Marco Matthies
2005-10-14 22:54 ` Jim C. Brown
2005-10-15  6:24   ` Alexander Skwar
2005-10-16 21:10 ` Henrik Nordstrom
2005-10-17 14:13   ` Alexander Skwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).