List Info

Thread: QEMU with network boot




QEMU with network boot
user name
2008-05-06 22:22:31
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
edwinmavetju.org    |              Weblog: http://www.mavetju.org
/weblog/
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: QEMU with network boot
user name
2008-05-06 22:43:12
On Wed, May 07, 2008 at 01:22:31PM +1000, Edwin Groothuis
wrote:
> 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:

http://pxe.dev.aboveaverageurl.com/index.php/PXE_Booting
 gave the
hint: I needed a next-server statement.

It's now through to its TFTP phase. Sorry about the noise!

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwinmavetju.org    |              Weblog: http://www.mavetju.org
/weblog/
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: QEMU with network boot
user name
2008-05-07 01:01:19
On Wed, May 07, 2008 at 01:43:12PM +1000, Edwin Groothuis
wrote:
> On Wed, May 07, 2008 at 01:22:31PM +1000, Edwin
Groothuis wrote:
> > 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:
> 
> http://pxe.dev.aboveaverageurl.com/index.php/PXE_Booting
 gave the
> hint: I needed a next-server statement.

I'll submit a PR for the manpage of pxeboot for this,
because the
behaviour of the ISC-DHCP has changed with version 3.0.3
about this
(See http://
www.mavetju.org/weblog/html/00110.html, I knew I had
seen this before)

> It's now through to its TFTP phase. Sorry about the
noise!

I have moved the file /boot/pxeboot to my tftpboot
directory, it
gets loaded but then QEMU complains about:

    ......TFTP download complete, but Unable to load file.

And restarts. Not sure what goes wrong...

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwinmavetju.org    |              Weblog: http://www.mavetju.org
/weblog/
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: QEMU with network boot
user name
2008-05-07 06:50:11
    0n Wed, May 07, 2008 at 01:22:31PM +1000, Edwin
Groothuis wrote: 

    >   
------------------------------------------------------------
---------------
    >      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           ...
    >   
------------------------------------------------------------
---------------

Edwin, I'm curious, what tool did you use to gather this
output ?

 -aW

IMPORTANT: This email remains the property of the Australian
Defence Organisation and is subject to the jurisdiction of
section 70 of the CRIMES ACT 1914.  If you have received
this email in error, you are requested to contact the sender
and delete the email.


_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )