From: Alexander Skwar <listen@alexander.skwar.name>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Setting up tun/tap network doesn't work
Date: Fri, 14 Oct 2005 23:14:29 +0200 [thread overview]
Message-ID: <43501FB5.5020303@mid.email-server.info> (raw)
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
next reply other threads:[~2005-10-14 21:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 21:14 Alexander Skwar [this message]
2005-10-14 22:28 ` [Qemu-devel] Setting up tun/tap network doesn't work 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43501FB5.5020303@mid.email-server.info \
--to=listen@alexander.skwar.name \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).