-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfirstboot-scripts.txt
More file actions
24 lines (18 loc) · 903 Bytes
/
firstboot-scripts.txt
File metadata and controls
24 lines (18 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2024 Broadcom. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
# Enable the SSH service.
vim-cmd hostsvc/enable_ssh
vim-cmd hostsvc/start_ssh
# Enable the ESXi Shell.
vim-cmd hostsvc/enable_esx_shell
vim-cmd hostsvc/start_esx_shell
# Uncomment the line below and update the parameter to configure the NTP settings.
# esxcli system ntp set --enabled=true --server=pool.ntp.org
# Uncomment the line below to suppress shell warnings.
# esxcli system settings advanced set -i 1 -o /UserVars/SuppressShellWarning
# Uncomment the line below and update the parameter to configure the vlan settings for VM Network.
# esxcli network vswitch standard portgroup set --portgroup-name "VM Network" --vlan-id 3061
# Generate a self-signed certificate and restart the hostd and vpxa services.
/sbin/generate-certificates
/etc/init.d/hostd restart && /etc/init.d/vpxa restart
sleep 60