<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set default VLAN ID on OVA/OVF in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833507#M100162</link>
    <description>&lt;P&gt;Which OVA file do you mean?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 08:19:43 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2021-03-03T08:19:43Z</dc:date>
    <item>
      <title>Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833480#M100155</link>
      <description>&lt;P&gt;I am deploying Nested ESX on a group of ESX hosts with DVS switch.&amp;nbsp; I have a portgroup on the DVS that is trunk, the nested ESX OVA will be using the trunk portgroup for all of its vmnic.&amp;nbsp; I am able to do most of its initial configuration (99%) using the following&lt;/P&gt;&lt;P&gt;$ovfconfig = Get-OvfConfiguration $NestedESXiApplianceOVA&lt;BR /&gt;$networkMapLabel = ($ovfconfig.ToHashTable().keys | where {$_ -Match "NetworkMapping"}).replace("NetworkMapping.","").replace("-","_").replace(" ","_")&lt;BR /&gt;$ovfconfig.NetworkMapping.$networkMapLabel.value = $VLANTrunkPortgroup&lt;BR /&gt;$ovfconfig.common.guestinfo.hostname.value = $Nested_Hostname&lt;BR /&gt;$ovfconfig.common.guestinfo.ipaddress.value = $Nested_IP&lt;BR /&gt;$ovfconfig.common.guestinfo.netmask.value = $Nested_Subnet&lt;BR /&gt;$ovfconfig.common.guestinfo.gateway.value = $Nested_GW&lt;BR /&gt;$ovfconfig.common.guestinfo.dns.value = $Nested_DNS1 # $VMDNS&lt;BR /&gt;$ovfconfig.common.guestinfo.domain.value = $Nested_Domain&lt;BR /&gt;$ovfconfig.common.guestinfo.ntp.value = $VMNTP&lt;BR /&gt;$ovfconfig.common.guestinfo.syslog.value = $VMSyslog&lt;BR /&gt;$ovfconfig.common.guestinfo.password.value = $Nested_PW&lt;BR /&gt;$ovfconfig.common.guestinfo.ssh.value = $VCSASSHEnable&lt;/P&gt;&lt;P&gt;$orignalExtraConfig = $vm.ExtensionData.Config.ExtraConfig&lt;BR /&gt;$a = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$a.key = "ethernet2.filter4.name"&lt;BR /&gt;$a.value = "dvfilter-maclearn"&lt;BR /&gt;$b = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$b.key = "ethernet2.filter4.onFailure"&lt;BR /&gt;$b.value = "failOpen"&lt;BR /&gt;$c = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$c.key = "ethernet3.filter4.name"&lt;BR /&gt;$c.value = "dvfilter-maclearn"&lt;BR /&gt;$d = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$d.key = "ethernet3.filter4.onFailure"&lt;BR /&gt;$d.value = "failOpen"&lt;BR /&gt;$e = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$e.key = "DefaultPortConfig.Vlan"&lt;BR /&gt;$e.value = "111"&lt;BR /&gt;$orignalExtraConfig+=$a&lt;BR /&gt;$orignalExtraConfig+=$b&lt;BR /&gt;$orignalExtraConfig+=$c&lt;BR /&gt;$orignalExtraConfig+=$d&lt;BR /&gt;$orignalExtraConfig+=$e&lt;/P&gt;&lt;P&gt;$spec = New-Object VMware.Vim.VirtualMachineConfigSpec&lt;BR /&gt;$spec.ExtraConfig = $orignalExtraConfig&lt;/P&gt;&lt;P&gt;My-Logger "Adding guestinfo customization properties to '$Nested_Hostname' ..."&lt;BR /&gt;$task = $vm.ExtensionData.ReconfigVM_Task($spec)&lt;BR /&gt;$task1 = Get-Task -Id ("Task-$($task.value)")&lt;BR /&gt;$task1 | Wait-Task | Out-Null&lt;/P&gt;&lt;P&gt;However, what is the proper syntax/path using the $ovfconfig method to set my VLAN ID on my management port?&amp;nbsp; I need to set this to 110 as the physical ESX portgroup is trunk&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dwchan_0-1614746263400.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/87297i585E478110E81F24/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="dwchan_0-1614746263400.png" alt="dwchan_0-1614746263400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;$e = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$e.key = "DefaultPortConfig.Vlan"&lt;BR /&gt;$e.value = "111"&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;$e = New-Object VMware.Vim.OptionValue&lt;BR /&gt;$e.key = "DefaultPortConfig.Vlan.VlanID"&lt;BR /&gt;$e.value = "111"&lt;/P&gt;&lt;P&gt;Without success.&amp;nbsp; I know I am close, just not sure what's the proper key/path to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 04:40:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833480#M100155</guid>
      <dc:creator>dwchan</dc:creator>
      <dc:date>2021-03-03T04:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833507#M100162</link>
      <description>&lt;P&gt;Which OVA file do you mean?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 08:19:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833507#M100162</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-03-03T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833587#M100168</link>
      <description>&lt;P&gt;It is an OVA created by William LAM, here are the OVA link&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi6.7u3_Appliance_Template_v1.ova" target="_blank" rel="noopener noreferrer"&gt;ESXi 6.7 Update 3 Virtual Appliance&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Given I have never created an OVA just consume it, the options related to $ovfconfig setting, is this driven by some ovf configuration one created?&amp;nbsp; Or is there a universal standard (setting mapping) that everyone obey by?&lt;/P&gt;&lt;P&gt;dwc&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:10:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833587#M100168</guid>
      <dc:creator>dwchan</dc:creator>
      <dc:date>2021-03-03T14:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833589#M100169</link>
      <description>&lt;P&gt;The one who creates the OVF decides what properties are present and exposed.&lt;BR /&gt;&lt;BR /&gt;Isn't the VlanId in the&amp;nbsp;&lt;STRONG&gt;Common.guestinfo.vlan&lt;/STRONG&gt; property?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:31:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833589#M100169</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-03-03T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833592#M100170</link>
      <description>&lt;P&gt;Let me take a look&amp;nbsp; is "c&lt;STRONG&gt;ommon.guestinfo.vlan" a valid path?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:36:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833592#M100170</guid>
      <dc:creator>dwchan</dc:creator>
      <dc:date>2021-03-03T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833595#M100171</link>
      <description>&lt;P&gt;Sweet, not sure if "common.guestinfo.vlan.value" is a common value that is available with most OVF, but it is enable &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@90D223CDF4C4491D7DFF693BB5C76865/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&amp;nbsp; Once I include this, it works.&amp;nbsp; Is any documentation as to all the possible expose path/value that are set up OVF/OVA?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:48:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833595#M100171</guid>
      <dc:creator>dwchan</dc:creator>
      <dc:date>2021-03-03T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833598#M100172</link>
      <description>&lt;P&gt;The &lt;A href="https://code.vmware.com/web/tool/4.4.0/ovf" target="_blank" rel="noopener"&gt;ovftool documentation&lt;/A&gt; contains quite some info.&lt;BR /&gt;&lt;BR /&gt;And of course the &lt;STRONG&gt;Get-OvfConfiguration&lt;/STRONG&gt; cmdlet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:54:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833598#M100172</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2021-03-03T14:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set default VLAN ID on OVA/OVF</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833600#M100173</link>
      <description>&lt;P&gt;Did review the OVF tools doc awhile back, pretty sparse but is a start.&amp;nbsp; Thank you again for the help&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:04:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Set-default-VLAN-ID-on-OVA-OVF/m-p/2833600#M100173</guid>
      <dc:creator>dwchan</dc:creator>
      <dc:date>2021-03-03T15:04:11Z</dc:date>
    </item>
  </channel>
</rss>

