All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stuart Sheldon <stu@actusa.net>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: PXE Boot Timeout Issue...
Date: Fri, 23 Apr 2010 09:14:32 -0700	[thread overview]
Message-ID: <4BD1C768.3050403@actusa.net> (raw)
In-Reply-To: <i2nfbd9d3991004230127gbf50dd82r235e6b60fc1b5b18@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Stefan Hajnoczi wrote:
> On Fri, Apr 23, 2010 at 1:45 AM, Stuart Sheldon <stu@actusa.net> wrote:
>> Just upgraded to 12.3 user space tools from 11.0, and now when I attempt
>> to netboot a guest, it appears that the pxe rom is timing out on dhcp
>> before the bridge has enough time to come up.
>>
>> Is there a command line switch to set the dhcp timeout, or a build
>> option that can be changed to set the timeout to a longer value, or
>> disable it entirely?
> 
> The bridge shouldn't need significant amounts of time to come up.  Can
> you describe the networking setup?  Are you using libvirt and with
> what network config?
> 
> If you have a bridge configured, can you show the output of:
> 
> $ sudo brctl showstp $bridge_name

The network is fairly straight forward. PC with single NIC directly
attached to switch with a local DHCP server.

We do not use libvirt, we are using qemu with command switches.

Interestingly it appears that the -option-rom command switch doesn't do
anything any longer. It is using gPXE by default only.

Here is our current command line we are testing with:

export QEMU_AUDIO_DRV=alsa
qemu-system-x86_64 \
        -m 1024 \
        -soundhw es1370 \
        -name 'Net Boot Disk' \
        -net nic,macaddr=52:54:00:12:31:06,model=virtio \
        -net tap,ifname=tap6,script=/etc/kvm/kvm-ifup-br0 \
        -option-rom /usr/local/share/qemu/pxe-virtio.bin \
        -boot n \
        -daemonize


Here is the exact chain of events:

1) Start guest from command line
2) tap adapter is added to br0 and enters learning state on host while
gPXE starts DHCP request on guest.
3) after about 15 seconds, tap device enters promiscuous mode on host,
and at same time, gPXE reports "No bootable device." on guest
4) Drop to guest console and signal a system_reset, guest gets DHCP
address and netboots normally.

Here is the info you requested, both before and after guest startup.

Before guest startup:

linus:~# brctl show br0
bridge name	bridge id		STP enabled	interfaces
br0		8000.001cc092ba91	no		eth0

linus:~# brctl showstp br0
br0
 bridge id		8000.001cc092ba91
 designated root	8000.001cc092ba91
 root port		   0			path cost		   0
 max age		  20.00			bridge max age		  20.00
 hello time		   2.00			bridge hello time	   2.00
 forward delay		  15.00			bridge forward delay	  15.00
 ageing time		 300.00
 hello timer		   1.87			tcn timer		   0.00
 topology change timer	   0.00			gc timer		   8.87
 flags			


eth0 (1)
 port id		8001			state		     forwarding
 designated root	8000.001cc092ba91	path cost		  19
 designated bridge	8000.001cc092ba91	message age timer	   0.00
 designated port	8001			forward delay timer	   0.00
 designated cost	   0			hold timer		   0.87
 flags			

After guest startup:

linus:~# brctl show br0
bridge name	bridge id		STP enabled	interfaces
br0		8000.001cc092ba91	no		eth0
							tap6
linus:~# brctl showstp br0
br0
 bridge id		8000.001cc092ba91
 designated root	8000.001cc092ba91
 root port		   0			path cost		   0
 max age		  20.00			bridge max age		  20.00
 hello time		   2.00			bridge hello time	   2.00
 forward delay		  15.00			bridge forward delay	  15.00
 ageing time		 300.00
 hello timer		   1.00			tcn timer		   0.00
 topology change timer	   0.00			gc timer		   2.00
 flags			


eth0 (1)
 port id		8001			state		     forwarding
 designated root	8000.001cc092ba91	path cost		  19
 designated bridge	8000.001cc092ba91	message age timer	   0.00
 designated port	8001			forward delay timer	   0.00
 designated cost	   0			hold timer		   0.00
 flags			

tap6 (2)
 port id		8002			state		     forwarding
 designated root	8000.001cc092ba91	path cost		 100
 designated bridge	8000.001cc092ba91	message age timer	   0.00
 designated port	8002			forward delay timer	   0.00
 designated cost	   0			hold timer		   0.00
 flags			

Let me know if you need anything else...

Stu


- --
Well I've always had a deep respect, And I mean that most sincerely.
The band is just fantastic, that is really what I think.
Oh by the way, which one's Pink?
               -- Pink Floyd - "Have a Cigar Lyrics"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJL0cdkAAoJEFKVLITDJSGSRvsQAIErw0N4aCETAxeEq27Z5cgR
0V3jLcHfRurMr0LSXVxJ4hijOCOVblYHaplMHh4M5qFh9DvKg+ZsJrQagUCaxOeT
lk3xQBDWQ5g23CTbgVmyaGVCfeiEVBurGvDT/z7X5bs+w4aaSMbQrlEp6KrnehQW
xcUj1m6Q1/rnjvVaoXUSQbxmIoIxCn7CWC+bVN2ufXes73rWIK076qRmtbHEzaHr
ImxxQVNnOPGXVW/HtOgRhP/lky2kXAgjvCifs2ul5Gs9iiHZp8LepVcaHLpxk9FQ
BgvnT0ayTa8AmgzZwIolrRvZ6FHLJ2UHgCVnUh8vFQhBSls0XJZPpOZC50xK04lX
Q5vzVLon8klCEDUkrASQFQ3WrBjRoXiqK6Vz2p2aUE3svLP6Z9WAPOj/c17SdLgb
iH5Q8qjj1cEpmsrpUkFhOH51MWoYmlJWATI+QSxaa9ksrKO73Nr6WEmPLHtrKm40
ahXKZddbG0hU3Bqp31emEmGLuYowdOwE9DGG5M+6vW0NUNEXBoBf/6Nn9w2uxKj9
oYxMcAQt7yKgvJl7QNxs6pGIHHnay59jUPePyeu235EwYNBYjXIc2I8wI9+ua42j
yTszPnh+NLrCpmNfhcSQJN8NeNp9c6J11Nct+RJZ8TkQjiY9X2dWc/bU/65naoSP
s49qoa4OQdBRxvkyR52n
=YLw4
-----END PGP SIGNATURE-----

  reply	other threads:[~2010-04-23 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-23  0:45 PXE Boot Timeout Issue Stuart Sheldon
2010-04-23  8:27 ` Stefan Hajnoczi
2010-04-23 16:14   ` Stuart Sheldon [this message]
2010-04-23 17:22     ` Jim Paris
2010-04-23 17:29       ` Stuart Sheldon
2010-04-23 19:23         ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BD1C768.3050403@actusa.net \
    --to=stu@actusa.net \
    --cc=kvm@vger.kernel.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.