VMware Cloud Community
kalpeer
Contributor
Contributor

How to create VM using kick start file.

Hi All,

I want to create new VM using KickStart file. I have CENTOS ISO and ks.cfg file. I placed kickstart file ks.cfg in ESXi host under the datastore1 (/vmfs/volumes/datastore1). Now how I can access this in while booting the ISO. I tried to provide the below option but it was not able to identify the ks.cfg file.

linux ks=hd:partition[datastore1]/ks.cfg

Thanks,

Kalai

Tags (3)
0 Kudos
2 Replies
zXi_Gamer
Virtuoso
Virtuoso

GOS will never know the datastores present in the ESX. Also, the GOS will never know that it is a running as a VM. So it will NEVER EVER have access to the datastore, it will have only access to its vmdk and the ks file if exported. And of course, it is not recommended running ESXi as a PXE server.

http://drcs.ca/blog/how-to-create-a-centos-5-vmware-virtual-machine-using-pxeboot-and-kickstart/ is an excellent article for your need.

0 Kudos
iw123
Commander
Commander

You would need to make the file available on the network, or on your boot media/iso  as you would when building a physical machine.

Thanks

*Please, don't forget the awarding points for "helpful" and/or "correct" answers
0 Kudos