Re: PXE Boot Timeout Issue...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Stefan Hajnoczi wrote:
> On Fri, Apr 23, 2010 at 1:45 AM, Stuart Sheldon <stu@xxxxxxxxxx> 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-----
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux