Skip to content

Commit

Permalink
Remove settings that will cause warnings on ESXi < 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieF committed Jun 2, 2019
1 parent 52a183e commit d4544bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions notes/vm/ova-create
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ cd $tmpdir/ova-working
tar -xf ../NEMS.ova

# Remove UEFI NVRAM, as it is only supported in ESXi 6.7+
# This one is critical: will cause OVA to not import on older versions
sed -i -E "/nvram/d" *.ovf

# Purge other settings from 6.7 that will cause warnings in older versions of ESXi
# These won't halt the deployment of an OVA, but will cause misleading warnings
sed -i -E "/vbsEnabled/d" *.ovf
sed -i -E "/vvtdEnabled/d" *.ovf
sed -i -E "/efiSecureBootEnabled/d" *.ovf

# Update the manifest
sed -i "/\.ovf/s/= .*/= $(sha1sum *.ovf |cut -d " " -f 1)/;/nvram/d" *.mf

Expand Down

0 comments on commit d4544bc

Please sign in to comment.