you have  "skip_export": true

On Tue, Aug 20, 2019 at 11:14 AM Pearl Dsilva <[email protected]>
wrote:

> This is the template that I am currently using, which creates vmx and vmdk
> files.
>
> ```
> {
>   "builders": [
>     {
>       "type": "vmware-iso",
>       "format": "ovf",
>       "iso_url": "{{user `url`}}",
>       "iso_checksum": "{{user `checksum`}}",
>       "iso_checksum_type": "sha256",
>       "ssh_username": "ubuntu",
>       "ssh_password": "xxxxxxxxxx",
>       "ssh_wait_timeout": "30m",
>       "disk_size": "20480",
>       "headless": false,
>       "shutdown_command": "echo 'xxxxxxxx'|sudo -S /sbin/halt -h -p",
>       "http_directory": "http",
>   "http_port_min":9001,
>   "http_port_max":9001,
>   "vnc_bind_address": "0.0.0.0",
>   "vnc_disable_password":true,
>   "vnc_port_min": 5902,
>   "vnc_port_max": 5902,
>   "vm_name": "example",
>   "network":"hostonly",
>   "remote_type": "esx5",
>   "remote_host": "x.x.x.x",
>   "remote_username": "abc",
>   "remote_password": "yyyyyyyyyy",
>   "remote_datastore": "xxxxxxx",
>   "remote_cache_datastore": "xxxxxxx",
>   "remote_cache_directory": "packer_test",
>   "skip_compaction": true,
>   "skip_export": true,
>   "boot_wait": "0s",
>       "boot_command": [
>
> "<esc><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>",
>         "/install/vmlinuz noapic<wait>",
>         " auto<wait>",
>         " console-setup/ask_detect=false<wait>",
>         " console-setup/layoutcode=us<wait>",
>         " console-setup/modelcode=pc105<wait>",
>         " debconf/frontend=noninteractive<wait>",
> " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
>         " debian-installer=en_US<wait>",
>         " fb=false<wait>",
>         " initrd=/install/initrd.gz<wait>",
>         " kbd-chooser/method=us<wait>",
>         " keyboard-configuration/layout=USA<wait>",
>         " keyboard-configuration/variant=USA<wait>",
>         " locale=en_US<wait>",
>         " netcfg/get_domain=vm<wait>",
>         " netcfg/get_hostname=ubuntu<wait>",
>         " grub-installer/bootdev=/dev/sda<wait>",
>         " -- <wait>",
>         "<enter><wait>"
>       ],
>
>       "vmx_data": {
> "ethernet0.present": true,
> "ethernet0.networkName": "VM Network"
>       },
>       "vmx_data_post": {
>         "floppy0.present": false
>       }
>     }
>   ],
>   "provisioners": [
> {
> "type": "shell",
> "script": "scripts/prepenv_ubuntu.sh"
> }
>   ]
> }
> ```
>
> On Tuesday, August 20, 2019 at 12:44:37 PM UTC+5:30, Rickard von Essen
> wrote:
>>
>> It should. Can you please give some more details, your template, what you
>> saw, what you expected, etc.
>>
>> On Tue, Aug 20, 2019, 08:53 Pearl Dsilva <[email protected]> wrote:
>>
>>> I am trying to build an image using vmware-iso and want the image to be
>>> finally exported as an ovf image. Setting the "format" configuration option
>>> to "ovf" in vmware-iso builder doesn't seem to create an ovf image. Is
>>> there a way to achieve it.
>>>
>>> --
>>> 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/daf1c35f-2a73-424a-afc8-be80725790b1%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/daf1c35f-2a73-424a-afc8-be80725790b1%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/c2df6d05-380a-47ef-8625-087a3c59eab0%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/c2df6d05-380a-47ef-8625-087a3c59eab0%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/CALz9Rt9vca_vmupVD_BzTeDV9%3DCyAS_7-mS2jk2MXCiVHj7-mg%40mail.gmail.com.

Reply via email to