# Create VM from ISO on ESXI

**URL:** <https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904>\
**Category:** Ansible Project\
**Created:** [May 11, 2020, 8:27am UTC](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904 "2020-05-11T08:27:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [May 11, 2020, 8:27am UTC](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904/1 "2020-05-11T08:27:47Z")

</div>

Hello Guy !! 😉

I am trying to create an Eyes Of Network virtual machine from an ISO on an ESXI through a vCenter.  
I try to use the task below but it doesn’t work ☹  
Can you tell me if this is the right module to use please?

- name: Create a virtual machine from a template  
vmware\_guest:  
hostname: “172.180.0.134”  
username: “root”  
password: “espoire”  
folder: test\_vm\_0001  
validate\_certs: no  
name: EON\_01  
state: poweredoff  
datacenter: Datacenter  
guest\_id: Eon\_1  
disk:
- size\_gb: 4  
type: thin  
datastore: datastore1  
hardware:  
memory\_mb: 512  
num\_cpus: 6  
num\_cpu\_cores\_per\_socket: 3  
scsi: paravirtual  
memory\_reservation\_lock: True  
mem\_limit: 8096  
mem\_reservation: 4096  
cpu\_limit: 8096  
cpu\_reservation: 4096  
max\_connections: 5  
hotadd\_cpu: True  
hotremove\_cpu: True  
hotadd\_memory: False  
version: 12 # Hardware version of virtual machine  
boot\_firmware: “efi”  
cdrom:  
type: iso  
iso\_path: “[datastore1] EyesOfNetwork-5.3-x86\_64-bin.iso”  
networks:
- name: VM Network  
mac: aa:bb:dd:aa:00:14  
wait\_for\_ip\_address: yes  
esxi\_hostname: “172.180.0.100”  
delegate\_to: localhost  
register: deploy

More, i don’t understand what is parameter “folder”, i want to déploy my vm only from iso…

Can you help me please !! 🙂

Thanks you very much

Best Regards,

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 11, 2020, 10:26am UTC](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904/2 "2020-05-11T10:26:10Z")

</div>

> Hello Guy !! 😉
> 
> I am trying to create an Eyes Of Network virtual machine from an ISO on an ESXI through a vCenter.  
> I try to use the task below but it doesn't work ☹

That can mean many things.  
Please try to be more specific.

> More, i don't understand what is parameter "folder", i want to déploy my vm only from iso...

Look at [https://docs.ansible.com/ansible/latest/modules/vmware\_guest\_module.html#parameter-folder](https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html#parameter-folder)

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [May 11, 2020, 10:36am UTC](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904/3 "2020-05-11T10:36:20Z")

</div>

> Hi,

you could just use the following Folder: /

That will automatically place the Server into the path of Datacenter/vm/

Using Folder would place it into a more specific folder if needed i.e Folder Datacenter/vm/Development/
