Skip to content

Commit

Permalink
Make vsphere hw version configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
randombenj committed Nov 24, 2022
1 parent 3fdbd52 commit a9a984c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/vsphere.plugin → plugins/ova.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Installed Packages: `cat $WORK_DIR/packages.txt | wc -l`
APT sources:
$APT_SOURCES
"
fi
if [ -z "$VSPHERE_VERSION" ]; then
VSPHERE_VERSION="13"
fi

deployment=$vmname.ova
Expand Down Expand Up @@ -129,7 +132,7 @@ $APT_SOURCES
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemType>vmx-13</vssd:VirtualSystemType>
<vssd:VirtualSystemType>vmx-$VSPHERE_VERSION</vssd:VirtualSystemType>
</System>
<Item>
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
Expand Down

0 comments on commit a9a984c

Please sign in to comment.