Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2008 13:22:31 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        emulation@freebsd.org
Subject:   QEMU with network boot
Message-ID:  <20080507032231.GA29548@k7.mavetju>

next in thread | raw e-mail | index | archive | help
Hello,

First time user with QEMU, trying to get things up and running...

I got routing working, I can reach the internet from my emulated
FreeBSD 6.3 OS. Thanks to nox on #bsdports for that.

When I start the qemu host with "-boot n", I see the DHCP requests
and answers going over the wire (... tap device ...) but the NIC
keeps saying that it can't get an IP address. This is the network
output of it:

    ---------------------------------------------------------------------------
      TIME: 13:18:21.306194
	IP: > (52:54:00:12:34:56) >  (ff:ff:ff:ff:ff:ff)
	OP: 1 (BOOTPREQUEST)
     HTYPE: 1 (Ethernet)
      HLEN: 6
      HOPS: 0
       XID: 00157da3
      SECS: 0
     FLAGS: 0
    CIADDR: 0.0.0.0
    YIADDR: 0.0.0.0
    SIADDR: 0.0.0.0
    GIADDR: 0.0.0.0
    CHADDR: 52:54:00:12:34:56:00:00:00:00:00:00:00:00:00:00
     SNAME: .
     FNAME: .
    OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
    OPTION:  57 (  2) Maximum DHCP message size 1500
    OPTION:  60 ( 13) Vendor class identifier   Etherboot-5.4
    OPTION:  55 (  4) Parameter Request List      1 (Subnet mask)
						  3 (Routers)
						 12 (Host name)
						 43 (Vendor specific info)
						
    OPTION: 150 ( 11) ???                       af050110ec8139b1 ......9.
						020300           ...
    ---------------------------------------------------------------------------
      TIME: 13:18:22.003805
	IP: > (00:bd:5c:dc:5d:00) >  (52:54:00:12:34:56)
	OP: 2 (BOOTPREPLY)
     HTYPE: 1 (Ethernet)
      HLEN: 6
      HOPS: 0
       XID: 00157da3
      SECS: 0
     FLAGS: 0
    CIADDR: 0.0.0.0
    YIADDR: 192.168.253.24
    SIADDR: 0.0.0.0
    GIADDR: 0.0.0.0
    CHADDR: 52:54:00:12:34:56:00:00:00:00:00:00:00:00:00:00
     SNAME: .
     FNAME: pxeboot.
    OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
    OPTION:  54 (  4) Server identifier         192.168.253.1
    OPTION:  51 (  4) IP address leasetime      600 (10m)
    OPTION:   1 (  4) Subnet mask               255.255.255.0
    OPTION:   3 (  4) Routers                   192.168.253.1
    OPTION:  12 (  8) Host name                 qemu63-1
    ---------------------------------------------------------------------------

It is giving option 150, which I don't really know what for.
And it is asking for vendor specific information, which I don't
really know which one that is neither.

Has anybody managed to get this working? How did the relevant part
of your dhcp.conf look like?

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080507032231.GA29548>