LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-24-2009, 11:25 AM   #1
drschloss
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
DHCP not handing IP to KVM in PXE boot


Hello,

I've been battling this issue for a couple days and figure I'd check in the forums to see if anyone has encountered this problem. My setup is as follows:

I have a server with 2 NIC ports. One is attached to the network I connect and manage the linux box from and the other is attached to a network that has a working DHCP running on it. I have verified the DHCP is setup correctly and does handout IPs to other boxes and the server receives an IP as well. I am running Fedora 11 i686 (2.6.29.6-217.2.8). I followed the instructions on the following site to setup a bridge on the port attached to my DHCP (http://www.linux-kvm.com/content/usi...g-virt-manager).

The bridge does show up in my list of Shared physical devices, and I have it added to my VM. I still do no receive an IP address on boot.

Any help or suggestions would be most appreciated. Also if you need any further information I would be happy to provide it.

-Dave
 
Old 08-28-2009, 10:39 AM   #2
drschloss
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I've done some troubleshooting with Wireshark. I put Wireshark on the Fedora 11 physical machine running Qemu. When I activate the VM the following is the packet capture on the NIC port that the VM is bridged to: (sorry for the format, but it was the most readable I could export from Wireshark. The on the DHCP packets the first IP is the Source and the second is the Destination)

<packet>
<section>13</section>
<section>23.851330</section>
<section>0.0.0.0</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP Discover - Transaction ID 0x89cfee</section>
</packet>

<packet>
<section>14</section>
<section>23.851906</section>
<section>10.51.13.1</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP Offer - Transaction ID 0x89cfee</section>
</packet>

<packet>
<section>15</section>
<section>24.036300</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>16</section>
<section>26.040940</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>17</section>
<section>28.042352</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>18</section>
<section>30.045431</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>19</section>
<section>32.051334</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>20</section>
<section>34.054197</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>21</section>
<section>35.610415</section>
<section>Cisco_c3:28:0d</section>
<section>CDP/VTP/DTP/PAgP/UDLD</section>
<section>CDP</section>
<section>Device ID: R24Switch1 Port ID: FastEthernet0/13 </section>
</packet>

<packet>
<section>22</section>
<section>36.056490</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>23</section>
<section>38.058492</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>24</section>
<section>40.060486</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>25</section>
<section>40.647446</section>
<section>10.51.13.3</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP Request - Transaction ID 0x89cfee</section>
</packet>

<packet>
<section>26</section>
<section>40.662462</section>
<section>10.51.13.1</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP ACK - Transaction ID 0x89cfee</section>
</packet>

<packet>
<section>27</section>
<section>42.063500</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>28</section>
<section>44.066533</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>29</section>
<section>46.069544</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>30</section>
<section>48.072575</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>31</section>
<section>50.075590</section>
<section>Cisco_c3:28:0d</section>
<section>Spanning-tree-(for-bridges)_00</section>
<section>STP</section>
<section>Conf. Root = 32768/0/00:d0:58:c3:28:0c Cost = 0 Port = 0x801a</section>
</packet>

<packet>
<section>32</section>
<section>50.807838</section>
<section>10.51.13.3</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP Request - Transaction ID 0x89cfee</section>
</packet>

<packet>
<section>33</section>
<section>50.808703</section>
<section>10.51.13.1</section>
<section>255.255.255.255</section>
<section>DHCP</section>
<section>DHCP ACK - Transaction ID 0x89cfee</section>
</packet>


So as you can see in the packet capture, the DHCP does seem to deliver an IP address, but the VM does not show it in the prompt. It will continue to idle, seemingly waiting for the IP assignment. I ran a packet capture on the DHCP/PXE server when it ran the PXE boot on a physical machine and right after the IP address is assigned, there is a TFTP read request packet send out from the client to the PXE server. This read request never occurs on the VM as you can see in the packet capture.

Any help with this issue would be very much appreciated.

-Dave
 
Old 09-03-2010, 06:31 PM   #3
oneodd1
LQ Newbie
 
Registered: Oct 2003
Location: Toledo, OH
Distribution: RHEL 3,4,5, OEL 4,5 Fedora Core 10
Posts: 3

Rep: Reputation: 0
did you ever get an answer?

I've been researching the same thing or something very similar. On non-pxe booting systems it assigns IPs just fine but I never see a dhcprequest on the pxe boots. This happens both with VMs and physical machines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp - PXE booting icedude Linux - Enterprise 10 09-28-2010 06:36 AM
DHCP, OSCAR cluster installation, VMware server and PXE-boot problem. Azazwa Linux - Newbie 3 03-31-2009 11:52 AM
DHCP server / PXE boot freeindy Linux - Networking 2 03-04-2008 03:31 AM
DHCP handing out the wrong dns servers PCC Linux - Networking 2 05-17-2007 08:25 PM
DHCP vs PXE woes :S kevingpo Linux - Networking 2 11-05-2005 02:02 PM


All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration