# Create VM from iso file

**URL:** <https://forum.ansible.com/t/create-vm-from-iso-file/34980>\
**Category:** Ansible Project\
**Created:** [April 14, 2021, 2:11pm UTC](https://forum.ansible.com/t/create-vm-from-iso-file/34980 "2021-04-14T14:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bec12317](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bec12317](https://forum.ansible.com/u/bec12317)\
**Post date:** [April 14, 2021, 2:11pm UTC](https://forum.ansible.com/t/create-vm-from-iso-file/34980/1 "2021-04-14T14:11:40Z")

</div>

Please someone help me. I am creating two vms with iso file to be installed but get this error. I dont know what to do again.

failed: [127.0.0.1 → localhost] (item=my\_vm\_01) =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/bin/python”}, “ansible\_loop\_var”: “item”, “changed”: false, “item”: “my\_vm\_01”, “msg”: “Invalid cdrom.controller\_number: 0 or cdrom.unit\_number: none, valid values are 0 or 1 for IDE controller.”}  
failed: [127.0.0.1 → localhost] (item=my\_vm\_02) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: “my\_vm\_02”, “msg”: “Invalid cdrom.controller\_number: 0 or cdrom.unit\_number: none, valid values are 0 or 1 for IDE controller.”}

---

<div class="post-metadata">

**Author:** ![Roberto\_J\_R\_Paz](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Roberto\_J\_R\_Paz](https://forum.ansible.com/u/Roberto_J_R_Paz)\
**Post date:** [April 14, 2021, 2:15pm UTC](https://forum.ansible.com/t/create-vm-from-iso-file/34980/2 "2021-04-14T14:15:48Z")

</div>

It seems “unit\_number” should be “0” or “1”. Try to replace:

unit\_number: “none”

with

unit\_number: “ **0** ”

---

<div class="post-metadata">

**Author:** ![bec12317](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bec12317](https://forum.ansible.com/u/bec12317)\
**Post date:** [April 14, 2021, 2:36pm UTC](https://forum.ansible.com/t/create-vm-from-iso-file/34980/3 "2021-04-14T14:36:29Z")

</div>

Thanks…it is now creating
