Hello,

No, I can't ping any machine on the same subnet. The kernel should be ok,
it is the same kernel I usually use for starting xen domains. Since it's a
xen kernel, I assume, that the network modules and the drivers for the xen
interface cards are already built into the kernel. Atm, I have nothing but
the busybox binary and a custom init in the initramfs. I can ping the lo
interface, but once starting udhcpc on eth0, it gets stuck at "Sending
discover...". Udevd is running, but dmesg dosn't show anything network
related.

Are you using paravirtualization or full virtualization?
How does your xen config looks like? What kind of networking do you
use to communicate from guest to host? Can you upload a dmesg from
the busybox system? How do you start the kernel from xen dom0?

I use a paravirtualized environment. Communication between dom0 and domUs goes through the xen bridge. With a normal setup (kernel + disk image containing a linux distribution) everything works fine - so xen networking works without problems. In the current setup, I boot into a custom initramfs, which atm does only contain the statically linked busybox binary and an init starting an ash and doing some initialization. And at that stage I need a running network setup - that's where I'm stuck.
The dmesg output is in the attachement.
I start the kernel with help of the xen-tool's xm command (xm create) and pass the kernel, the ramfs image, hostname, vif, etc. via commandline.

K. Haselhorst
Reserving virtual address space above 0xf5800000
Linux version 2.6.32-xen (ka...@tutux) (gcc version 4.4.3 (GCC) ) #1 SMP Mon 
Mar 15 13:57:51 CET 2010
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  NSC Geode by NSC
  Cyrix CyrixInstead
  Centaur CentaurHauls
  Transmeta GenuineTMx86
  Transmeta TransmetaCPU
  UMC UMC UMC UMC
ACPI in unprivileged domain disabled
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 00000000000a0000 (usable)
 Xen: 00000000000a0000 - 0000000000100000 (reserved)
 Xen: 0000000000100000 - 0000000008000000 (usable)
DMI not present or invalid.
last_pfn = 0x8000 max_arch_pfn = 0x1000000
e820 update range: 0000000000002000 - 0000000000006000 (usable) ==> (reserved)
Scanning 1 areas for low memory corruption
modified physical RAM map:
 modified: 0000000000000000 - 0000000000002000 (usable)
 modified: 0000000000002000 - 0000000000006000 (reserved)
 modified: 0000000000006000 - 00000000000a0000 (usable)
 modified: 00000000000a0000 - 0000000000100000 (reserved)
 modified: 0000000000100000 - 0000000008000000 (usable)
initial memory mapped : 0 - 027ff000
init_memory_mapping: 0000000000000000-0000000008000000
NX (Execute Disable) protection: active
 0000000000 - 0008000000 page 4k
kernel direct mapping tables up to 8000000 @ 7000-4b000
RAMDISK: 01671000 - 01bc8000
128MB LOWMEM available.
  mapped low ram: 0 - 08000000
  low ram: 0 - 08000000
  node 0 low ram: 00000000 - 08000000
  node 0 bootmap 00034000 - 00035000
(9 early reservations) ==> bootmem [0000000000 - 0008000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0001beb000 - 0001bfd000]   XEN PAGETABLES ==> [0001beb000 - 0001bfd000]
  #2 [0000001000 - 0000002000]    EX TRAMPOLINE ==> [0000001000 - 0000002000]
  #3 [0000006000 - 0000007000]       TRAMPOLINE ==> [0000006000 - 0000007000]
  #4 [0001000000 - 000154bc84]    TEXT DATA BSS ==> [0001000000 - 000154bc84]
  #5 [0001671000 - 0001bc8000]          RAMDISK ==> [0001671000 - 0001bc8000]
  #6 [0001bc8000 - 0001beb000]   XEN START INFO ==> [0001bc8000 - 0001beb000]
  #7 [0000007000 - 0000034000]          PGTABLE ==> [0000007000 - 0000034000]
  #8 [0000034000 - 0000035000]          BOOTMAP ==> [0000034000 - 0000035000]
Zone PFN ranges:
  DMA      0x00000000 -> 0x00001000
  Normal   0x00001000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000000 -> 0x00000002
    0: 0x00000006 -> 0x000000a0
    0: 0x00000100 -> 0x00008000
On node 0 totalpages: 32668
free_area_init_node: node 0, pgdat c13eda80, node_mem_map c154c000
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 3964 pages, LIFO batch:0
  Normal zone: 224 pages used for memmap
  Normal zone: 28448 pages, LIFO batch:7
Using APIC driver default
SFI: Simple Firmware Interface v0.7 http://simplefirmware.org
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Local APIC disabled by BIOS -- you can enable it with "lapic"
APIC: disable apic facility
nr_irqs_gsi: 16
PM: Registered nosave memory: 0000000000002000 - 0000000000006000
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
Allocating PCI resources starting at 8000000 (gap: 8000000:f8000000)
Booting paravirtualized kernel on Xen
Xen version: 3.4.2 (preserve-AD)
NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 15 pages/cpu @c164f000 s38072 r0 d23368 u65536
pcpu-alloc: s38072 r0 d23368 u65536 alloc=16*4096
pcpu-alloc: [0] 0 
trying to map vcpu_info 0 at c1650020, mfn 9c52, offset 32
cpu 0 using vcpu_info at c1650020
Xen: using vcpu_info placement
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32412
Kernel command line: ip=:127.0.255.255::::eth0:dhcp 
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
Memory: 118004k/131072k available (2828k kernel code, 12504k reserved, 1224k 
data, 424k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xf571e000 - 0xf57ff000   ( 900 kB)
    vmalloc : 0xc8800000 - 0xf571c000   ( 719 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
      .init : 0xc13f6000 - 0xc1460000   ( 424 kB)
      .data : 0xc12c3190 - 0xc13f5208   (1224 kB)
      .text : 0xc1000000 - 0xc12c3190   (2828 kB)
SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
Xen: using vcpuop timer interface
installing Xen timer for CPU 0
Detected 2001.004 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 
4003.75 BogoMIPS (lpj=6670013)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Unsupported number of siblings 2
Performance Events: unsupported p6 CPU model 15 no PMU driver, software events 
only.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
Brought up 1 CPUs
CPU0 attaching NULL sched-domain.
Grant table initialized
NET: Registered protocol family 16
PCI: Fatal: No config space access function found
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
xen_balloon: Initialising balloon driver.
vgaarb: loaded
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource xen
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 5468k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
apm: BIOS not found.
Scanning for low memory corruption every 60 seconds
audit: initializing netlink socket (disabled)
type=2000 audit(1272134796.539:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 241
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
isapnp: Write Data Register 0xa79 already used
Event-channel device installed.
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
input: Macintosh mouse button emulation as /devices/virtual/input/input0
Initialising Xen virtual ethernet driver.
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
NET: Registered protocol family 17
Using IPI No-Shortcut mode
PM: Resume from disk failed.
registered taskstats version 1
vif vif-0: 2 parsing device/vif/0/mac
XENBUS: Device with no driver: device/console/0
Initalizing network drop monitor service
Freeing unused kernel memory: 424k freed
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to