VMware Cloud Community
akreitman
Contributor
Contributor

Installer can't find my ks.cfg file for unattended usb install

I can't get my usb based ESXi 5 install to find the ks.cfg file.  I create a bootable usb with the esxi 5 install bits and copy the ks.cfg file to the root of the usb.  When I modify boot.cfg to say "kernelopt= ks=file://ks.cfg" or "kernelopt= ks=/ks.cfg", the install says it can't find ks.cfg.  If I try "kernelopt= ks=ks.cfg" it simply ignores the entry and proceeds as if it was a standard install.  What's the secret?

Tags (2)
Reply
0 Kudos
2 Replies
john23
Commander
Commander

afalk, you can not provide ks file as kernelopt.

You should directly porvide the ks="location of ks file"

It should work.

Thanks -A Read my blogs: www.openwriteup.com
Reply
0 Kudos
FSvcoe
Enthusiast
Enthusiast

Actually, you can. It can be a bit confusing if you are booting from a CD as you need to specifiy the ks=cdrom option, not ks=file. Try the following approach:

1) Copy your ks.cfg into the root of your iso.

2) Modify your boot.cfg and add the entry ks=cdrom:/ks.cfg, where ks.cfg is your custom kickstart, after the kernelopt=runweasel line, i.e.

kernelopt=runweasel ks=cdrom:/ks.cfg

3) Save changes to your iso and boot.

Keep in mind some of the KS commands have been deprecated so you might want to the check the 5.0 docs for reference.

Reply
0 Kudos