Hi Guys,
I know you've seen this problem before, however I am having the issue now.
I have tried these settings about a 100 times in the last 2 days but none 
of them work.

Basically  the "vm_data_post" does not work...at least it looks that way:

I tried this:
    "vmx_data_post": {
        "ide1:0.startConnected": "TRUE",
        "ide1:0.clientDevice": "TRUE",
        "ide1:0.fileName": "emptyBackingString"
    },

This:
    "vmx_data_post": {
"ide1:0.deviceType" : "atapi-cdrom",
"ide1:0.fileName" : "emptyBackingString",
"ide1:0.present" : "TRUE",
"ide1:0.clientDevice" : "TRUE"
  },

And also I tried the "inline" in the "post-processor" section with the 
"vmware-cmd" script, that also didn't work.  It "invalidates" the VM.
So before I create the template, I start the VM, try to disconnect the 
"CD/DVD drive 1" and then power off the VM.

  "post-processors": [
     [
       {
        "inline": [
          "/opt/scripts/vmware-perl-sdk/bin/vmware-cmd -U {{ user 
`source_esxi_user` }} -P {{ user `source_esxi_password` }} -H {{ user 
`VCENTER_IP` }} --vihost {{ user `REMOTE_ESXI` }} /vmfs/volumes/{{ user 
`REMOTE_DATASTORE` }}/output-vmware-iso/{{ user `vm_name` }}.vmx start 
soft",
          "/opt/scripts/vmware-perl-sdk/bin/vmware-cmd -U {{ user 
`source_esxi_user` }} -P {{ user `source_esxi_password` }} -H {{ user 
`VCENTER_IP` }} --vihost {{ user `REMOTE_ESXI` }} /vmfs/volumes/{{ user 
`REMOTE_DATASTORE` }}/output-vmware-iso/{{ user `vm_name` }}.vmx 
disconnectdevice \"CD/DVD drive 1\"",
          "/opt/scripts/vmware-perl-sdk/bin/vmware-cmd -U {{ user 
`source_esxi_user` }} -P {{ user `source_esxi_password` }} -H {{ user 
`VCENTER_IP` }} --vihost {{ user `REMOTE_ESXI` }} /vmfs/volumes/{{ user 
`REMOTE_DATASTORE` }}/output-vmware-iso/{{ user `vm_name` }}.vmx suspend 
soft"
        ],
        "type": "shell-local"
       }
     ]

So I am outta luck now.

Please help.

# mukarram

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/7fbceda7-ad74-40d4-b863-57b80a339186%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to