[ipxe-devel] Problem with iPXE in VirtualBox

Mircea Vutcovici mirceavutcovici at gmail.com
Fri May 6 01:34:54 UTC 2011


Hi Michael,

Thank you for your answer. I've tested with static IP and I can not
It seems that iPXE inside VirtualBox is not receiving the packets even
if I can see the packets on the host machine.

>From the OpenWRT after I've set the IP:
root at MiniMot:~# ping 192.168.1.116
PING 192.168.1.116 (192.168.1.116): 56 data bytes
^C
--- 192.168.1.116 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
root at MiniMot:~# arp|egrep '192.168.1.116|IP'
IP address       HW type     Flags       HW address            Mask     Device
192.168.1.116    0x1         0x0         08:00:27:b0:ff:0f     *        br-lan
root at MiniMot:~#


The capture is done from the OpenWRT router (that has the dnsmasq with
TFTP and DHCP server) with the following command:
tcpdump -w iPXE-DHCP-problem-2.cap ether host 08:00:27:b0:ff:0f


On Thu, May 5, 2011 at 1:45 PM, Michael Brown <mbrown at fensystems.co.uk> wrote:
> On Thursday 05 May 2011 04:09:36 Mircea Vutcovici wrote:
>> I am trying to use iPXE in a VM running in VirtualBox. The problem is
>> that iPXE can not get DHCP.
>> I am using the latest version of iPXE
>>  (b6cad3c0eb72e99d8ae5e6944ec8e9b7c5acecfa) VirtualBox 4.0.6 r71344
>> Ubuntu 11.4 64bit
>> The DHCP/tftp server is OpenWRT Backfire (10.03.1-rc4, r24045)
>> dnsmasq --version
>> Dnsmasq version 2.55  Copyright (c) 2000-2010 Simon Kelley
>> Compile time options IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
>>
>> Here is the dnsmasq configuration (I've removed dhcp-host entries):
>> /usr/sbin/dnsmasq -K -D -f -y -Z -b -E --enable-tftp -s lan -S /lan/
>> -l /tmp/dhcp.leases -r /tmp/resolv.conf.auto --tftp-root /tftproot
>> --dhcp-boot undionly.kkpxe --stop-dns-rebind
>> --dhcp-range=lan,192.168.1.100,192.168.1.250,255.255.255.0,12h -2
>> 'eth1'
>>
>> Attached is the capture made with:
>> tshark -w /tmp/iPXE-DHCP-problem.cap -pi eth1 port bootpc or port tftp
>>
>> If I boot from a physical computer, I have no problems. I do not
>> understand why iPXE is not receiving the DHCP responses.
>
> I can tell from the packet trace that iPXE's DHCP client believes that it
> hasn't received any DHCPOFFERs, since bits 0 and 1 of the "secs" field are
> always zero.  (Inspired by this, I've also just added code that will enable me
> to tell from a packet trace whether or not iPXE has received any packets at
> all.)
>
> There are some helpful hints (some of which are new) on the relevant error
> page:
>
>  http://ipxe.org/4c106035
>
> What does "ifstat" show after the failed DHCP attempt?
>
> What happens if you try a static IP address?
>
> Michael
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-PXE [Running] - Oracle VM VirtualBox.png
Type: image/png
Size: 30355 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20110505/1f618cd8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iPXE-DHCP-problem-2.cap
Type: application/x-extension-cap
Size: 4498 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20110505/1f618cd8/attachment.bin>


More information about the ipxe-devel mailing list