Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-30 Thread Pearl D'Silva




Please find attached the scripts, template, preseed and packer logs for 
both the failing scenarios:
1. When disk_type_id is set to "4" // or any valid type id
2. When disk_type_id is set to "thin" (Following the given link: 
https://github.com/hashicorp/packer/issues/674)

[image: disk_provisioning.PNG]


As seen in the above image, despite setting disk_type_id to "thin" , I see 
the disk provisioning type to be "Thick Provision Eager Zero" on vcenter.

On Friday, August 30, 2019 at 10:30:05 AM UTC+5:30, Pearl D'Silva 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  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": "68",
>>>   "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  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  
> 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  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 18 18 ext4   \
>>>   lv_name{ root } \
>>>   method{ lvm } format{ } \
>>>   use_filesystem{ } filesystem{ ext4 }\
>>>   mountpoint{ / } \
>>>   $lvmok{ }   \
>>>   .   \
>>>   500 50 50 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 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-30 Thread Rickard von Essen
Provide your complete template, all scripts etc and the full output of a
build with PACKER_LOG=1 set. Also what the output of whatever command you
run to inspect the result and what exact version of ESXi you are using.

On Fri, Aug 30, 2019, 07:39 Pearl Dsilva  wrote:

> I am giving the disk_type_id as a string, but still am facing the issue.
>
> On Fri, Aug 30, 2019, 10:40 AM Rickard von Essen <
> rickard.von.es...@gmail.com> wrote:
>
>> 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  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  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": "68",
>   "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  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 <
>>> rickard...@gmail.com> 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 
 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 18 18 ext4   \
>   lv_name{ root } \
>   method{ lvm } format{ } \
>   use_filesystem{ } filesystem{ ext4 }\
>   mountpoint{ / } \
>   $lvmok{ }   \
>   .   \
>   500 50 50 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: 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl Dsilva
I am giving the disk_type_id as a string, but still am facing the issue.

On Fri, Aug 30, 2019, 10:40 AM Rickard von Essen <
rickard.von.es...@gmail.com> wrote:

> 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  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  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": "68",
   "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  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 
>> 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  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 18 18 ext4   \
   lv_name{ root } \
   method{ lvm } format{ } \
   use_filesystem{ } filesystem{ ext4 }\
   mountpoint{ / } \
   $lvmok{ }   \
   .   \
   500 50 50 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 packe...@googlegroups.com.
 To view this discussion on the web visit
 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Rickard von Essen
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  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  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": "68",
>>>   "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  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 
> 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  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 18 18 ext4   \
>>>   lv_name{ root } \
>>>   method{ lvm } format{ } \
>>>   use_filesystem{ } filesystem{ ext4 }\
>>>   mountpoint{ / } \
>>>   $lvmok{ }   \
>>>   .   \
>>>   500 50 50 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 packe...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> This mailing list is governed 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl D'Silva
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 > 
> 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": "68",
>>   "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  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  
 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  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 18 18 ext4   \
>>   lv_name{ root } \
>>   method{ lvm } format{ } \
>>   use_filesystem{ } filesystem{ ext4 }\
>>   mountpoint{ / } \
>>   $lvmok{ }   \
>>   .   \
>>   500 50 50 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 packe...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
> 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: 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Rickard von Essen
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  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": "68",
>   "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  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 
>>> 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  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 18 18 ext4   \
>   lv_name{ root } \
>   method{ lvm } format{ } \
>   use_filesystem{ } filesystem{ ext4 }\
>   mountpoint{ / } \
>   $lvmok{ }   \
>   .   \
>   500 50 50 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 packe...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
> 
> .
>
 --
 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 packe...@googlegroups.com.
 To view 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl D'Silva
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": "68",
  "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  > 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 > > 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 >> > 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 18 18 ext4   \
   lv_name{ root } \
   method{ lvm } format{ } \
   use_filesystem{ } filesystem{ ext4 }\
   mountpoint{ / } \
   $lvmok{ }   \
   .   \
   500 50 50 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 packe...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
  
 
 .

>>> -- 
>>> 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 packe...@googlegroups.com .
>>> 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
>>>  
>>> 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl D'Silva


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": "68",
  "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  > 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 > > 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 >> > 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 18 18 ext4   \
   lv_name{ root } \
   method{ lvm } format{ } \
   use_filesystem{ } filesystem{ ext4 }\
   mountpoint{ / } \
   $lvmok{ }   \
   .   \
   500 50 50 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 packe...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
  
 
 .

>>> -- 
>>> 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 packe...@googlegroups.com .
>>> 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
>>>  
>>> 

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Rickard von Essen
Post your template and a debug output from running Packer with PACKER_LOG=1.

On Thu, Aug 29, 2019, 12:48 Pearl Dsilva  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 <
> rickard.von.es...@gmail.com> 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  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 18 18 ext4   \
>>>   lv_name{ root } \
>>>   method{ lvm } format{ } \
>>>   use_filesystem{ } filesystem{ ext4 }\
>>>   mountpoint{ / } \
>>>   $lvmok{ }   \
>>>   .   \
>>>   500 50 50 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 packer-tool+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 packer-tool+unsubscr...@googlegroups.com.
>> 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
>> 
>> .
>>
> --
> 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 packer-tool+unsubscr...@googlegroups.com.
> 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

Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl Dsilva
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 
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  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 18 18 ext4   \
>>   lv_name{ root } \
>>   method{ lvm } format{ } \
>>   use_filesystem{ } filesystem{ ext4 }\
>>   mountpoint{ / } \
>>   $lvmok{ }   \
>>   .   \
>>   500 50 50 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 packer-tool+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
>> 
>> .
>>
> --
> 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 packer-tool+unsubscr...@googlegroups.com.
> 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
> 
> .
>

-- 
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 packer-tool+unsubscr...@googlegroups.com.
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.


Re: [packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Rickard von Essen
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  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 18 18 ext4   \
>   lv_name{ root } \
>   method{ lvm } format{ } \
>   use_filesystem{ } filesystem{ ext4 }\
>   mountpoint{ / } \
>   $lvmok{ }   \
>   .   \
>   500 50 50 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 packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com
> 
> .
>

-- 
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 packer-tool+unsubscr...@googlegroups.com.
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.


[packer] VMWare-iso provisioner - disk thin provisioning

2019-08-29 Thread Pearl D'Silva
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 18 18 ext4   \
  lv_name{ root } \
  method{ lvm } format{ } \
  use_filesystem{ } filesystem{ ext4 }\
  mountpoint{ / } \
  $lvmok{ }   \
  .   \
  500 50 50 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 packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/0f5b9b82-4cba-4e8c-81c9-5bfa2e803119%40googlegroups.com.