From: Edward D D. <ed...@us...> - 2008-04-22 16:05:23
|
Oops, I hit "send" before I finished my note. The problem is that my guest only seems to show the loopback device: root:~> 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) How can I get eth working in my guest? Thanks for your help ... /************************************************** * Edward D. Doan * Power Architecture Application Engineer * Systems & Technology Group * IBM Corporation * 512.838.4936 * ed...@us... *************************************************/ __________________ Here's what I have for .config: [edoan@ps3ydl kvmppc.hg]$ grep VIRTIO .config CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO=y CONFIG_VIRTIO_RING=y CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_BALLOON=y I created /dev/net/tap via mknod /dev/net/tap c 10 200. I also copied brctl into /sbin/. I launch the guest on my ppc440 Sequoia board: bash-3.00# ./qemu-system-ppcemb -nographic -M bamboo -kernel uImage -append "console=ttyS0,115200" -L . -net nic,model=virtio,macaddr=00:00:00:00:00:AA -net tap test for existing bridge br0 port no mac addr is local? ageing timer 1 00:10:ec:80:ee:84 yes 0.00 ok - bridge br0 already available bamboo_init: START <snip> I don't have lspci in my guest. Output of dmesg: root:~> dmesg Using Bamboo machine description Linux version 2.6.25-rc9 (jerone@thinkpadL) (gcc version 3.4.5) #31 Mon Apr 21 16:15:03 CDT 2008 Found legacy serial port 0 for /plb/opb/serial@ef600300 mem=ef600300, taddr=ef600300, irq=0, clk=11059200, speed=115200 Found legacy serial port 1 for /plb/opb/serial@ef600400 mem=ef600400, taddr=ef600400, irq=0, clk=11059200, speed=0 console [udbg0] enabled Entering add_active_range(0, 0, 36864) 0 entries of 256 used Top of RAM: 0x9000000, Total RAM: 0x9000000 Memory hole size: 0MB Zone PFN ranges: DMA 0 -> 36864 Normal 36864 -> 36864 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 36864 On node 0 totalpages: 36864 DMA zone: 288 pages used for memmap DMA zone: 0 pages reserved DMA zone: 36576 pages, LIFO batch:7 Normal zone: 0 pages used for memmap Movable zone: 0 pages used for memmap Built 1 zonelists in Zone order, mobility grouping on. Total pages: 36576 Kernel command line: console=ttyS0,115200 UIC0 (32 IRQ sources) at DCR 0xc0 PID hash table entries: 1024 (order: 10, 4096 bytes) time_init: decrementer frequency = 666.666660 MHz time_init: processor frequency = 666.666660 MHz clocksource: timebase mult[600000] shift[22] registered clockevent: decrementer mult[aaaa] shift[16] cpu[0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 141824k/147456k available (3872k kernel code, 5492k reserved, 100k data, 125k bss, 1500k init) SLUB: Genslabs=10, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1 Calibrating delay loop... 2490.36 BogoMIPS (lpj=4980736) Mount-cache hash table entries: 512 net_namespace: 152 bytes NET: Registered protocol family 16 PCI host bridge /plb/pci@ec000000 (primary) ranges: MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000 IO 0x00000000e8000000..0x00000000e800ffff -> 0x0000000000000000 4xx PCI DMA offset set to 0x00000000 PCI: Probing PCI hardware PCI: Hiding 4xx host bridge resources 0000:00:00.0 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250.0: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16450 console handover: boot [udbg0] -> real [ttyS0] ef600300.serial: ttyS0 at MMIO 0xef600300 (irq = 16) is a 16450 brd: module loaded PPC 4xx OCP EMAC driver, version 3.54 ZMII /plb/opb/emac-zmii@ef600d00 initialized PCI: Enabling device 0000:00:01.0 (0000 -> 0001) TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. Freeing unused kernel memory: 1500k init /************************************************** * Edward D. Doan * Power Architecture Application Engineer * Systems & Technology Group * IBM Corporation * 512.838.4936 * ed...@us... *************************************************/ From: Anthony Liguori <an...@co...> To: jy...@li... Cc: kvm-devel <kvm...@li...>, Edward D Doan/Austin/IBM@IBMUS Date: 04/22/08 08:35 AM Subject: Re: [kvm-devel] What kernel options do I need to properly enable virtio net driver Jerone Young wrote: > What I am asking is do I have all the proper options in my kernel config > set to use it? > Yes. You just need CONFIG_VIRTIO_NET and CONFIG_VIRTIO_PCI. The remaining options will be automatically selected. Regards, Anthony Liguori > On Mon, 2008-04-21 at 17:13 -0500, Anthony Liguori wrote: > >> Jerone Young wrote: >> >>> virtio net device does not appear to show itself in the guest. I'm >>> curious of what options I may be missing. Here is my config >>> >> You'll have to be more specific about what "does not appear to show >> itself" means. What's the output of lspci? >> >> Regards, >> >> Anthony Liguori >> >> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> kvm-devel mailing list >>> kvm...@li... >>> https://lists.sourceforge.net/lists/listinfo/kvm-devel >>> > > |