Hello,

> Hi,
> [email protected] wrote,
>
>> Hello,
>>
>> I would like to use busybox in a custom initramfs environment, where
>> some
>> networking tasks need to be done. This includes:
>> - requesting an ip address from a dhcp server
>> - resolving some hostnames (not necessarily through a nameserver - could
>> be statically via a hosts file)
>> - run some services
>> All should run within a xen domU.
>>
>> Can this be achieved with the busybox tools?
>> As far, I have built a complete busybox binary (statically linked) and
>> got
>> an ash running within the initramfs. I can assign a static address to my
>> eth0 interface,
>
> Can you then ping your DHCP server, after assigning a static IP?
>
> If yes, you might forgotten to configure your kernel with
> CONFIG_PACKET=y, which is needed to get DHCP working on your client.

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.

K. Haselhorst
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to