Hi,
we are going to install some Dell T330 which have internal harddisk and a SD Card module. Our goal is to install ESXi6.5 on the SD Card with a pxe installation and a ks.cfg file.
One big problem is to define the target installation disk in the kickstart file:
The "install --firstdisk=local --overwritevmfs" option in the ks file does not work since firstdisk=local is interprated as the local harddisk.
I also tried "install --firstdisk=usb-storage --overwritevmfs", but this one fails with the error, that such disk does not exist.
So what would be the right parameter for the "install..." option?
I did a manual install and took a screenshot that shows how esx intereprets the storage.
See the screenshot attached.
Any help would be appreciated,
Chris
Ok I solved it myself now using the %pre and %include sections:
%include /tmp/DiskConfig
network --bootproto=dhcp --device=vmnic0
reboot
%pre --interpreter=busybox
DISK=`ls /vmfs/devices/disks|grep Internal_Dual_SD|grep -v :`
echo "install --disk=$DISK --overwritevmfs --novmfsondisk">/tmp/DiskConfig
Ok I solved it myself now using the %pre and %include sections:
%include /tmp/DiskConfig
network --bootproto=dhcp --device=vmnic0
reboot
%pre --interpreter=busybox
DISK=`ls /vmfs/devices/disks|grep Internal_Dual_SD|grep -v :`
echo "install --disk=$DISK --overwritevmfs --novmfsondisk">/tmp/DiskConfig
Am having the same issue.
Can you help understand what does %per and %include do ?
Thanks for this help, im not used the same filter for me but i search the smaller disk
disk=`du /vmfs/devices/disks/* | grep -v : | grep -v "^0" | sort -n | head -n 1 | awk -F/ '{print $(NF)}'`