wreedMH
Hot Shot
Hot Shot

ks.cfg allow selection of install disk 6.7

Hey guys, just starting to play with Unattended install of ESXi 6.7 with ks.cfg and wondering if its possible for it to ask me one question. Which install disk to use?

Is this possible?

vmaccepteula

rootpw xxxxx!

install --disk=DELLBOSS

network --bootproto=dhcp

reboot --noeject

### Open busybox and launch commands

%firstboot --interpreter=busybox

###  Disable IPv6 support (reboot is required)

esxcli network ip set --ipv6-enabled=false

### Add NTP Server addresses

echo "server ntp.mhhs.org" >> /etc/ntp.conf;

### Allow NTP through firewall

esxcfg-firewall -e ntpClient

### Enable NTP autostartup

/sbin/chkconfig ntpd on;

0 Kudos
2 Replies
sudeshnas
VMware Employee
VMware Employee

Hi wreedMH,

If you are trying to install esxi using the ks.cfg script then by default the script performs a standard installation to the first disk detected.

# Install on the first local disk available on machine

install --firstdisk --overwritevmfs

Regards,

Sudeshna Sarkar

Install-Upgrade Specialist

0 Kudos
bmrkmr
Enthusiast
Enthusiast

see

Installation and Upgrade Script Commands ...

--disk= or --drive=Specifies the disk to partition. In the command --disk=diskname

, the diskname

can be in any of the forms shown in the following examples:

  • Path: --disk=/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0
  • MPX name: --disk=mpx.vmhba1:C0:T0:L0
  • VML name: --disk=vml.000000034211234
  • vmkLUN UID: --disk=vmkLUN_UID

For accepted disk name formats, see Disk Device Names.

0 Kudos