Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Deploying VXLAN through Auto Deploy (2041972)

Purpose

This article provides steps to deploy VXLAN as a part of the Auto Deploy configurations on ESXi hosts.

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:
  1. Creating a new image profile
  2. Updating Auto Deploy rules
  3. Configuring VXLAN
  4. Updating host profiles

Creating a new image profile

To create a new image profile:

  1. Start PowerCLI and connect to vCenter Server using this command:

    Connect-VIServer x.x.x.x –User user -Password password

  2. 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

  3. 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 

  4. 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

  5. Run this command to add VIBs to the new Image Profile, such as esx-vlan:

    C:\Add-EsxSoftwarePackage -ImageProfile NewImageProfile -SoftwarePackage esx-vxlan

  6. Run this command to list all VIBs in the new Image Profile:

    C:\Get-EsxImageProfile NewImageProfile | Select -ExpandProperty VibList | sort

  7. (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:
  1. Run this command to list the current rules:

    C:\> Get-DeployRuleSet

  2. Run this command to remove the old rule:

    C:\> Remove-DeployRule old_rule

    Note: This command removes the rule, but does not delete it.

  3. 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

  4. Run this command to activate the new rule:

    C:\> Add-DeployRule CustomImageRule 

  5. 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:
  1. Go to the Host Profiles view.
  2. 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.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 0 Ratings
Actions
KB: