Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Deploying VXLAN through Auto Deploy (2041972)
Purpose
Resolution
Requirements
Before proceeding, ensure that you have:
- An Auto Deploy infrastructure
- A VXLAN infrastructure (vCloud Networking and Security Manager and a DHCP server).
- A Windows host that has PowerCLI installed
- A copy of the ESXi offline depot, for example, VMware-ESXi-5.1.0-799733-depot.zip
- A copy of an additional vxlan offline depot, for example, vxlan.zip
You can download this by connecting to the vCloud Networking and Security manager at https://vsm-ip/bin/vdn/vibs/5.1/vxlan.zip.
Steps to include VXLAN as part of Auto Deploy
The procedure ot include VXLAN as a part of Auto Deploy includes these steps:
Creating a new image profile
To create a new image profile:
- Start PowerCLI and connect to vCenter Server using this command:
Connect-VIServer x.x.x.x –User user -Password password
- Import offline depots using these commands:
C:\Add-EsxSoftwareDepot C:\path\VMware-ESXi-5.1.0-799733-depot.zip
C:\Add-EsxSoftwareDepot C:\path\vxlan.zip
Note: Repeat these commands for all depots
- Run this command to list the default Image Profiles and note the name of profile to be cloned, for example, ESXi-5.1.0-799733-no-tools:
C:\Get-EsxImageProfile
- Run this command to create new Image Profile by cloning an existing image profile, such as ESXi-5.1.0-799733-no-tools:
C:\New-EsxImageProfile -Name NewImageProfile -CloneProfile ESXi-5.1.0-799733-no-tools VMware –AcceptanceLevel PartnerSupported
- Run this command to add VIBs to the new Image Profile, such as esx-vlan:
C:\Add-EsxSoftwarePackage -ImageProfile NewImageProfile -SoftwarePackage esx-vxlan
- Run this command to list all VIBs in the new Image Profile:
C:\Get-EsxImageProfile NewImageProfile | Select -ExpandProperty VibList | sort
- (Optional) Run this command to save the new Image Profile as an offline depot:
C:\ESXi-Depots> Export-EsxImageProfile -ImageProfile NewImageProfile -ExportToBundle -FilePath C:\path\FileName.zip
Updating Auto Deploy rules
To update the Auto Deploy rules:
- Run this command to list the current rules:
C:\> Get-DeployRuleSet
- Run this command to remove the old rule:
C:\> Remove-DeployRule old_rule
Note: This command removes the rule, but does not delete it. -
Create a new rule for the new Image Profile. For example, to create the rule CustomImageRule using the NewImageProfile created earlier and to assign it to all hosts that boot using Auto Deploy, run this command:
C:\> New-DeployRule CustomImageRule -Item NewImageProfile –AllHosts -
Run this command to activate the new rule:
C:\> Add-DeployRule CustomImageRule -
Run these commands to update the existing hosts to use the new rule:
C:\> foreach ($esx in Get-VMHost) {$esx | test-deployrulesetcompliance | Repair-DeployRuleSetCompliance}C:\> foreach ($esx in Get-VMHost) {$esx | test-deployrulesetcompliance}
Note: The changes take affect after the next reboot.
Configuring VXLAN
To prepare the hosts for VXLAN, configure these parameters in the preparation workflow:
- Choose the cluster and the vSphere Distributed Switch (VDS)
- Assign the VLAN for VXLAN transport traffic
- Select the Teaming policy and MTU
Updating the host profile
After configuring VXLAN, you must update the host profile.
To update the host profile:
- Go to the Host Profiles view.
- Right-click the current host profile that is applied to the hosts and click Update Profile from reference host.
After updating the profile, all the VXLAN related configuration is stored in the host profile. When you reboot the hosts the next time, the VXLAN properties are maintained along with other host properties.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

