# PXE booting and kickstarting bare-metal servers or VMs

**URL:** <https://forum.ansible.com/t/pxe-booting-and-kickstarting-bare-metal-servers-or-vms/21225>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [April 21, 2016, 6:31am UTC](https://forum.ansible.com/t/pxe-booting-and-kickstarting-bare-metal-servers-or-vms/21225 "2016-04-21T06:31:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibyendu\_Paul](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Dibyendu\_Paul](https://forum.ansible.com/u/Dibyendu_Paul)\
**Post date:** [April 21, 2016, 6:31am UTC](https://forum.ansible.com/t/pxe-booting-and-kickstarting-bare-metal-servers-or-vms/21225/1 "2016-04-21T06:31:39Z")

</div>

Hi  
I am very New to Ansible. hence please forgive if it is stupid on my part.

Now I would like to outline the requirement I am working on for last few days:

1. Deploy ESXi on a HP server and vCenter on top of it
2. Spin up some VMs and once these VMs boots up after deployment They should be able to pick the PXE boot in a form of Kickstart. The targeted OS is RHEL

Now I am facing major difficulties here.  
First of all Ansible doesnt support vCenter deployment. I have installed ESXi with PXE boot from a control server that I created. and deployed vcenter manually with the help of some scripts I found online.  
Doesnt anyone know if Ansible supports vCenter Deployment or the pre-requisite is that vCenter should be pre-deployed?

Now come the easiest part. I created a playbook and passed on a host file and spun up some VMs.  
Now these VMs are empty, has nothing.

These VMs should be able to pick the PXE boot in a form of Kickstart.

Not sure how to achieve this. Could anybody help?
