You are supposed to use the strings and not the numbers. See
https://packer.io/docs/builders/vmware-iso.html#disk_type_id

On Fri, Aug 30, 2019, 07:00 Pearl D'Silva <[email protected]> wrote:

> Yes, I have used vmware-iso builder on a remote host.
>
> On Friday, August 30, 2019 at 10:09:24 AM UTC+5:30, Rickard von Essen
> wrote:
>>
>> I'm a bit confused here, do you use the vmware-iso builder on a remote
>> host (ESXi)?
>>
>> On Fri, Aug 30, 2019, 05:15 Pearl D'Silva <[email protected]> wrote:
>>
>>> Setting the "disk_type_id" to "5" leads the the following error:
>>>
>>> [image: packer_error.PNG]
>>>
>>> Following is the snippet of my packer configuration:
>>>
>>>  "builders": [
>>>     {
>>>       "type": "vmware-iso",
>>>       "format": "ovf",
>>>   "skip_export": true,
>>>       "iso_url": "{{user `url`}}",
>>>       "iso_checksum": "{{user `checksum`}}",
>>>       "iso_checksum_type": "sha256",
>>>       "ssh_username": "{{user `ssh_username`}}",
>>>       "ssh_password": "{{user `ssh_password`}}",
>>>       "ssh_wait_timeout": "30m",
>>>   "cpus": "4",
>>>   "memory": "32000",
>>>       "disk_size": "680000",
>>>   "disk_type_id": "5",
>>>       "headless": false,
>>>  . . .
>>>  . . .
>>> } ],
>>>
>>>
>>>     Any pointers as to where I am going wrong?
>>>
>>> On Thursday, August 29, 2019 at 4:29:02 PM UTC+5:30, Rickard von Essen
>>> wrote:
>>>>
>>>> Post your template and a debug output from running Packer with
>>>> PACKER_LOG=1.
>>>>
>>>> On Thu, Aug 29, 2019, 12:48 Pearl Dsilva <[email protected]> wrote:
>>>>
>>>>> Yes I did, setting disk_type_id to the numeric values causes the
>>>>> packer build to fail. However, setting it to "thin" lead to the build to
>>>>> proceed, however the disk is thick provisioned eager zeroed
>>>>>
>>>>> On Thu, Aug 29, 2019, 4:14 PM Rickard von Essen <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Have you looked at
>>>>>> https://packer.io/docs/builders/vmware-iso.html#disk_type_id ?
>>>>>>
>>>>>> On Thu, Aug 29, 2019, 11:33 Pearl D'Silva <[email protected]> wrote:
>>>>>>
>>>>>>> I am trying to enable thin provisioning for the disk by using the
>>>>>>> following: "disk_type_id": "thin", However, on vCenter, when the VM is
>>>>>>> being provisioned, I notice that the hard disk type is set to "Thick
>>>>>>> Provision Eager Zeroed". Any pointers on what could be causing this 
>>>>>>> issue
>>>>>>> would be really helpful.
>>>>>>>
>>>>>>> The partitioning recipe in the preseed file is as follows:
>>>>>>> d-i partman-auto/expert_recipe string                         \
>>>>>>>       boot-root ::                                            \
>>>>>>>               1 1 1 free method{ biosgrub } .                 \
>>>>>>>               250 250 250 ext2                                \
>>>>>>>                       $primary{ } $bootable{ }                \
>>>>>>>                       method{ format } format{ }              \
>>>>>>>                       use_filesystem{ } filesystem{ ext2 }    \
>>>>>>>                       mountpoint{ /boot }                     \
>>>>>>>               .                                               \
>>>>>>>               500 180000 180000 ext4                       \
>>>>>>>                       lv_name{ root }                         \
>>>>>>>                       method{ lvm } format{ }                 \
>>>>>>>                       use_filesystem{ } filesystem{ ext4 }    \
>>>>>>>                       mountpoint{ / }                         \
>>>>>>>                       $lvmok{ }                               \
>>>>>>>               .                                               \
>>>>>>>               500 500000 500000 xfs                            \
>>>>>>>                       lv_name{ data }                         \
>>>>>>>                       method{ lvm } format{ }                 \
>>>>>>>                       use_filesystem{ } filesystem{ xfs }     \
>>>>>>>                       mountpoint{ /data }                     \
>>>>>>>                       $lvmok{ }                               \
>>>>>>>               .
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> 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/CALz9Rt_4_KL_L%2BaR%3DwEz3magJ5tLwouwmt%2Bt1Z%2ByWBcy1W3%2B2Q%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt_4_KL_L%2BaR%3DwEz3magJ5tLwouwmt%2Bt1Z%2ByWBcy1W3%2B2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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/CAA5LV_ayh%2BCaFOvxq1Cn2shT-SxeiQVk1coazLYPBVr%2BABc%3D9g%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/packer-tool/CAA5LV_ayh%2BCaFOvxq1Cn2shT-SxeiQVk1coazLYPBVr%2BABc%3D9g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/4e4452dc-967a-4492-b866-581aae2fac41%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/4e4452dc-967a-4492-b866-581aae2fac41%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/3025da74-dfb7-4e5d-9dbc-99c91878d038%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/3025da74-dfb7-4e5d-9dbc-99c91878d038%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CALz9Rt8ZO1%3DFCx9HSJyPb2aDAnu25_T2JN7KUmpO2QZ6zZ0h9g%40mail.gmail.com.

Reply via email to