My network interfaces never shows up in my guest computer.
I'm compiling a linux kernel (3.3 I think) from scratch with default settings +
Symbol: NE2K_PCI [=y] Type : tristate Prompt: PCI NE2000 and clones support (see help)
since I read somewhere that this is the default driver that qemu uses.
I'll then boot with:
qemu-system-x86_64 -kernel repo/linux/arch/x86/boot/bzImage -boot d -initrd rootfs.img.gz -append "root=/dev/ram rdinit=/sbin/init"
qemu-system-x86_64 -nographic -kernel repo/linux/arch/x86/boot/bzImage -boot d -initrd rootfs.img -append "root=/dev/ram rdinit=/sbin/init console=ttyS0"
The rootfs is simply busybox's
_install dir + /proc /dev and such and etc/init.d/rcS
#!/bin/sh mount -t proc none /proc mount -t sysfs none /sys /sbin/mdev -s
But I can't find the interface after boot.
ifconfig -a simply shows the loopback interface.
From http://www.tldp.org/HOWTO/Ethernet-HOWTO-2.html I understood that I should look at ??
System.map file for names like
ne_probe. But can't find anything about that really.
My boot output is: http://pastebin.com/C2SmKjQA
And cat /proc/ioports doesn't show anything about ne2k-pci, as it's expected to, according to http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html.