# Can not attach CM rom in Vmware

**URL:** <https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [October 16, 2015, 3:52pm UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525 "2015-10-16T15:52:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Vanadium](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Nick\_Vanadium](https://forum.ansible.com/u/Nick_Vanadium)\
**Post date:** [October 16, 2015, 3:52pm UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/1 "2015-10-16T15:52:01Z")

</div>

Greetings all. Apologies if this is not the correct place to post this but I wasn’t able to find anything related to this.

So I have recently began playing with Ansible and I am trying to build some VMs in Vmware Sphere using the Ansible module. However I can’t seem to be able to attach the CD rom to the VM with VMware. Below is the error I receive along with the syntax of my playbook. Any assistance would be much appreciated.

**My error:**

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [vsphere\_guest] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [EXAMPLE-Web01] =\> {“failed”: true}  
msg: unsupported parameter for module: vm\_cdrom

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/home/ansible/create\_vm.retry

EXAMPLE-Web01 : ok=0 changed=0 unreachable=0 failed=1

---

<div class="post-metadata">

**Author:** ![Markus\_Ellers](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Markus\_Ellers](https://forum.ansible.com/u/Markus_Ellers)\
**Post date:** [October 18, 2015, 8:30am UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/2 "2015-10-18T08:30:15Z")

</div>

hi,

try making vm\_cdrom a parameter under vm\_hardware

vm\_hardware:  
memory\_mb: “{{ memory }}”  
num\_cpus: “{{ cpucount }}”  
osid: “{{ osid }}”  
scsi: paravirtua  
vm\_cdrom:  
type: “iso”  
iso\_path: “datastore1/iso/ansible-ks.iso”

---

<div class="post-metadata">

**Author:** ![Nick\_Vanadium](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Nick\_Vanadium](https://forum.ansible.com/u/Nick_Vanadium)\
**Post date:** [October 20, 2015, 2:46pm UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/3 "2015-10-20T14:46:50Z")

</div>

Dude, thank you so much. It worked! Of course I tried moving the entry everywhere else other than what you suggested lol. But yeah man you finally gave me some peace.

---

<div class="post-metadata">

**Author:** ![Markus\_Ellers](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Markus\_Ellers](https://forum.ansible.com/u/Markus_Ellers)\
**Post date:** [October 20, 2015, 8:00pm UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/4 "2015-10-20T20:00:01Z")

</div>

You’re welcome. Sometimes all it takes is a fresh pair of eyes.

---

<div class="post-metadata">

**Author:** ![Asaf\_Moalem](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@Asaf\_Moalem](https://forum.ansible.com/u/Asaf_Moalem)\
**Post date:** [February 11, 2016, 10:12am UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/5 "2016-02-11T10:12:40Z")

</div>

Hi,  
Were you able to connect the cdrom?  
I get the cdrom mounted with the ISO, but not connected.

Thanks.  
Asaf.

---

<div class="post-metadata">

**Author:** ![kesten\_broughton1](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kesten\_broughton1](https://forum.ansible.com/u/kesten_broughton1)\
**Post date:** [February 11, 2016, 11:23pm UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/6 "2016-02-11T23:23:39Z")

</div>

I saw the same problem and have not found a fix for it yet.

---

<div class="post-metadata">

**Author:** ![David\_P](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@David\_P](https://forum.ansible.com/u/David_P)\
**Post date:** [June 19, 2017, 10:08am UTC](https://forum.ansible.com/t/can-not-attach-cm-rom-in-vmware/19525/7 "2017-06-19T10:08:58Z")

</div>

Me too - Still looking for a solution. If anyone knows how to connect it that would be really helpful, thanks!
