Skip to content

[Bug]: Error occured while getting trunk port groups #116

@baprev

Description

@baprev

Holorouter Version

9.0.2

VCF Version

VCF 9.0.2.0

Target Type

vCenter Cluster

Describe the bug

Hello,

when trying to deploy using a vcenter, I got this error repeteadly:

12-04-2026 00:43:53 PreChecks[3177]: [SUCCESS] Storage capacity on the target host is compliant with the minimum requirement.
12-04-2026 00:43:53 PreChecks[3177]: [ERROR] Error occurred while getting trunk port groups.
12-04-2026 00:43:53 PreChecks[3177]: [ERROR] Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
12-04-2026 00:43:53 PreChecks[3177]: [ERROR] Failed to complete Pre-Checks.
12-04-2026 00:43:53 Unknown[3177]: [ERROR] Terminating error trapped: Exiting Function Start-HoloDeckPrecheck

I tried many things, creating additional port groups with trunk etc. I couldn't find a way to make it work.

I made a small change to this file: /root/.local/share/powershell/Modules/HoloDeck/Modules/PreCheck.psm1

Line 1203, the line is now:

$trunk_port_groups = @(Get-VDPortgroup |

instead of : $trunk_port_groups = Get-VDPortgroup |

and I closed it like:

Select-Object Name, @{N='Switch';E={$.VDSwitch.Name}}, @{N='VLANConfig';E={if ($.VlanConfiguration) { $.VlanConfiguration.ToString() } else { "N/A" }}}, @{N='PortGroupType';E={if ($.ExtensionData.Config.BackingType -eq 'nsx') { "NSX-backed" } else { "vSphere-backed" }}}, @{N='SwitchType';E={"VDS"}} |
Sort-Object Name)

I didn't finish the entire deployment yet but it seems to continue without issue for now.

Reproduction steps

1.PS /root> Import-HoloDeckConfig -ConfigID 'p98l'

Title : HoloDeck 9.0 Config File
Name :
ConfigId : p98l
InstanceId :
description : test
ConfigPath : /holodeck-runtime/config/p98l.json
masterPassword : VMware123!VMware123!
vSANMode : OSA
rootFolderPath : /holodeck-runtime
rootFolderName : holodeck-runtime
output : output
logs : /holodeck-runtime/logs/holodeck-runtime-log_12Apr2026_12_37.log
errorLogs :
state : /holodeck-runtime/state/holodeck-runtime-state_12Apr2026_12_37_03.json
bin : bin
templates : templates
holorouterStatus :
isPreCheckCompleted-a :
isPreCheckCompleted-b :
Target : @{hostname=vcenter.lab.local; username=administrator@vsphere.local; password=xxxx; targetHostApiType=VirtualCenter; datacenter=; cluster=; datastore=; networkPortGroup-a=;
networkPortGroup-b=; isDeprecatedCPU=True}
holodeck-sddc : @{Site-A=; Site-B=}

  1. New-HoloDeckInstance -Version 9.0.2.0 -InstanceID 1 -DepotType Online -vSANMode ESA -ManagementOnly -LogLevel DEBUG

Expected behavior

Portgroup exist, it should be used.

Relevant logs

Additional context

No response

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions