VMware Cloud Community
kri-2
Hot Shot
Hot Shot
Jump to solution

Finding the correct install disk for my kickstart file

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

0 Kudos
1 Solution

Accepted Solutions
kri-2
Hot Shot
Hot Shot
Jump to solution

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

View solution in original post

3 Replies
kri-2
Hot Shot
Hot Shot
Jump to solution

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

DDinu
Enthusiast
Enthusiast
Jump to solution

Am having the same issue.

Can you help understand what does %per and %include do ?

0 Kudos
SilentT
Contributor
Contributor
Jump to solution

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)}'`

 

0 Kudos