Skip navigation
VMware

This Question is Answered (go to answer)

1 "helpful" answer available (6 pts)
2,336 Views 7 Replies Last post: May 31, 2007 12:51 PM by moberle RSS
dinny Expert 461 posts since
Sep 20, 2006
Currently Being Moderated

May 8, 2007 7:57 AM

PXE build of ESX server on a NIC/port configured for 801.2q vlan tagging

Hiya,

 

I have spent some time recently trying to put together a PXE boot environment to build ESX servers.

 

This was helped no end with the release last week of the Universal Deployment Appliance:

 

http://www.rtfm-ed.co.uk/?page_id=366

 

If I do the build on a standard network patch configured with a single VLAN, connected to the ESX hardware it works perfectly.

 

Unfortunately my ESX server network connections use VLAN tagging to provide standby capabilities for the SC and Vmotion.

 

I have two physical network patches with 802.1q trunking set at the Cisco end which provide VLAN tagging for two VLANs. One for the SC and one for vmotion.

Once the ESX server is built I then have a portgroup for each VLAN - this all works fine.

 

Unfortunately if I try to PXE boot the ESX server off a network patch with 802.1q tagging set at the Cisco end, then it fails to find a DHCP server.

I am guessing that this is because the PXE boot agent on the NIC can not deal with the 802.1q trunking?

 

Can anyone confirm if my suspicions are correct? - or even better does anyone know of a way of getting it to work in this config?

 

I appreciate I have some other options:

 

a) I could remove the 802.1q trunking during the build process (but that is another team's responsibility - so they would not be too happy to keep having to reconfigure the cisco ports for me)

 

b) I could just use a CD or USB mem stick to boot from instead of a PXE server. I will revert to this option if necessary.

 

Cheers

 

Dinny

Chris Lynch Enthusiast 119 posts since
Dec 27, 2003
Currently Being Moderated
1. May 8, 2007 9:32 AM in response to: dinny
Re: PXE build of ESX server on a NIC/port configured for 801.2q vlan taggin

In your switch config, you should have a Native VLAN.  On this VLAN, I would use this for your build network, which would have DHCP, PXE and your deployment host.

 

You could also use the Default VLAN config.  This is used when the interface is no longer participating in an 802.1q trunk.

 

The following is an example config:

 

Re: PXE build of ESX server on a NIC/port configured for 801.2q vlan taggininterface <interface-id>

switchport mode trunk

switchport access vlan <vlan-id>

switchport trunk native vlan <vlan-id>

switchport trunk allowed vlan add <vlan-list>[/i]

Chris Lynch Enthusiast 119 posts since
Dec 27, 2003
Currently Being Moderated
4. May 9, 2007 7:42 AM in response to: dinny
Re: PXE build of ESX server on a NIC/port configured for 801.2q vlan taggin

Only if you tell your network team to apply the same config to another port that will service VM's.  You do not want VM's to have access to the CoS network/VLAN.

moberle Enthusiast 49 posts since
May 31, 2007
Currently Being Moderated
7. May 31, 2007 12:51 PM in response to: dinny
Re: PXE build of ESX server on a NIC/port configured for 801.2q vlan tagging

Could someone please help with the DHCP/PXE configuration issues.  I have to same problem with the PXE client not receiving the DHCP Offer from the DHCP server.  We have run a sniff on the network and determined that the DHCP server receives the request and replies with an Offer.   The packets never get back to the PXE client.   

 

I am trying to install ESX 3.0.1 using a PXE boot to a MS DHCP/PXE server.  The ESX server (Dell 1955 blade) is connected to the network via a switch port on a 6509.  The DHCP/PXE server is a Windows 2003 server running in a VM on another ESX host on the same subnet and vlan (Native) as the PXE client.

 

The cisco port configuration of the ESX server containing the DHCP server VM is as follows:

 

interface GigabitEthernet3/39

switchport

switchport trunk encapsulation dot1q

switchport trunk native vlan 322

switchport trunk allowed vlan 2-4094

switchport mode trunk

switchport nonegotiate

no ip address

no cdp enable

spanning-tree portfast

spanning-tree bpduguard enable

spanning-tree guard root

end

 

The cisco port configuration of PXE client machine is as follows:

 

interface GigabitEthernet3/42

switchport

switchport trunk encapsulation dot1q

switchport trunk native vlan 322

switchport trunk allowed vlan 2-4094

switchport mode trunk

switchport nonegotiate

no ip address

no cdp enable

spanning-tree portfast

spanning-tree bpduguard enable

spanning-tree guard root

end

 

 

We have the Virtual Switch on the ESX host that the DHCP VM is running on, set up with a pxe vlan defined with 322 (the vlan defined as native) to allow the Virtual Switch to see the native vlan. and a mgmt (vlan 310) vlan defined to allow tagged vlan traffic to go through to our subnet.

 

We have 2 vNICs defined in the DHCP VM  one using the pxe vlan and one using the mgmt vlan to allow RDP and other network type connections to work across the tagged vlans.  

 

I have tried disconnecting the mgmt vlan connected vNIC to make sure there was not conflict there.   (Both Nics have IP addresses on the same subnet   I KNOW I KNOW If someone can tell me how to add a second vlan to the one vNIC i would appreciate that as well.)  DHCP is setup to only service the vNIC using the the pxe vlan.  With this setup the RDP traffic fails and the DHCP Offer is still outbound and not received by the PXE client.

 

If anyone can please point me to some documentation with the complete configurations needed  to setup the Cisco ports and the vSwitches and vNICs  or can help me with this directly  I would greatly appreciated it.

Bookmarked By (0)

Share This Page

Communities