whatever you've set as output_directory in your template, or a directory in
your current working directory named "output-" + the name of your build.
https://www.packer.io/docs/builders/vmware-iso.html#output-configuration

On Tue, Oct 1, 2019 at 12:56 PM Mauricio Tavares <[email protected]>
wrote:

>
>
> On Tuesday, October 1, 2019 at 3:07:54 PM UTC-4, Megan Marsh wrote:
>>
>> Yes, the purpose of Packer is to get a vm image that you can deploy
>> later.  The VM that is created is only transient, and the true artifact of
>> the build is an image that contains all the changes made while the image
>> was running. You should see log output that says what files were created by
>> the build.
>>
>>
>       Thank you for the reply!
> https://www.packer.io/docs/builders/vmware-iso.html says I should end up
> with "a directory containing all the files necessary to run the virtual
> machine." Where should this directory be hiding at?
>
>
>
>> On Tue, Oct 1, 2019 at 10:25 AM Mauricio Tavares <[email protected]>
>> wrote:
>>
>>> Stupid question: my test template
>>>
>>> {
>>>   "variables": {
>>>       "ssh_name" : "bubba",
>>>       "ssh_pass" : "supersecret",
>>>       "hostname": "testcentos",
>>> [...]
>>>   },
>>>
>>>   "builders": [
>>>     {
>>>       "type": "vmware-iso",
>>>       "guest_os_type" : "{{user `guest_os`}}",
>>>       "iso_url": "{{user `iso_url`}}",
>>>       "iso_checksum_url": "{{user `iso_checksum_url`}}",
>>>       "ssh_username" : "{{user `ssh_name`}}",
>>>       "ssh_password" : "{{user `ssh_pass`}}",
>>>       "ssh_port": 22,
>>>       "ssh_timeout": "1000s",
>>>       "headless": "TRUE",
>>>       "disk_size": "10240",
>>>       "disk_type_id": "thin",
>>>       "vmdk_name": "test",
>>>       "vmx_data" : {
>>>         "memsize": "1024",
>>>         "cpuid.coresPerSocket": "1",
>>>         "numvcpus": "1",
>>>         "ethernet0.networkName": "LAN",
>>>         "ethernet0.present": "TRUE",
>>>         "ethernet0.startConnected": "TRUE",
>>>         "ethernet0.virtualDev": "e1000",
>>>         "ethernet0.addressType": "generated",
>>>         "ethernet0.generatedAddressOffset": "0",
>>>         "ethernet0.wakeOnPcktRcv": "FALSE"
>>>       },
>>>       "vnc_port_min": 5900,
>>>       "vnc_port_max": 5999,
>>>       "vnc_disable_password": true,
>>>       "remote_type": "esx5",
>>>       "remote_host": "{{user `vm_hostname`}}",
>>>       "remote_datastore": "{{user `vm_disk`}}",
>>>       "remote_username": "{{user `vm_admin`}}",
>>>       "remote_password": "{{user `vm_pw`}}",
>>>       "boot_command": [
>>>         "<tab> text ks=http://{{ user `kickstart_ip` }}:{{ user
>>> `kickstart_port` }}/ks.cfg  <enter><return><wait5>"
>>>       ],
>>>       "boot_wait": "8s",
>>>       "shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown
>>> -P -h now"
>>>     }
>>>   ]
>>> }
>>>
>>> which is nothing special. When I unleash it, vm is created and run. I
>>> can even login to it from console. And then it destroys itself. Why?
>>> Because I have a shutdown command on it? I am trying to understand what I
>>> can get out of packer: a running machine and/or a vm image I can then
>>> deploy later?
>>>
>>> --
>>> 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/7ac2dfb4-91cc-4391-b3b0-7d6edef24ba7%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/7ac2dfb4-91cc-4391-b3b0-7d6edef24ba7%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/d7f4c25f-fd53-4b14-8911-324900689fbf%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/d7f4c25f-fd53-4b14-8911-324900689fbf%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/CAGPV1uqvNKsRfgP6ksGDfOooPqZNcRjC15vgpmrpXef_N8yP3g%40mail.gmail.com.

Reply via email to