Skip to content

Commit

Permalink
Make sure a unique UUID is set on VMware ESXi
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrager committed May 21, 2021
1 parent 322047c commit f851f90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vmware-esxi/KS.CFG
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ set +e
# Track whether any network configuration failed.
failed=0

# Remove the UUID generated during install and generate a new one
sed -i '/\/system\/uuid\s*=/d' /etc/vmware/esx.conf
esxcli system uuid get >/dev/null

# Apply network configuration
/altbootbank/maas/netplan-esxi -c /altbootbank/maas/curtin.cfg apply || failed=1

Expand Down

0 comments on commit f851f90

Please sign in to comment.