ESXi connection is right, only issue is packer connecting to the guest VM. 
Checked here and my vm it getting an ipv4, even  when I mannually created 
it. As soon I solve this, I think thr build will run without an issue.

Em sexta-feira, 5 de fevereiro de 2021 às 09:50:22 UTC-3, Marc Pires 
escreveu:

> Thanks, I will take a look
>
> Em quinta-feira, 4 de fevereiro de 2021 às 15:57:54 UTC-3, 
> [email protected] escreveu:
>
>> I see you have 2 mote access 
>>
>> 1. to connect to the ESXi 
>> 2. To connect to the VM once created
>>
>> Seems your ESXi access is sorted, I did a bit of google and noticed the 
>> error you are getting, it is likely that is because of a corrupted VM 
>> Definition
>>
>> So would recommend you to look first into the definition of your 
>> vmx_data,   In regards this,  I did create one a long time ago, you can use 
>> that as a baseline, if helps
>>
>> https://github.com/macgahe/packer/blob/master/Vm-Template.vmx
>>
>> But to avoid getting into too much trouble.. will start with a working 
>> Packer JSON file . CHEF in their github repo have some working templates 
>> you may want to use as a baseline
>>
>> https://github.com/chef/bento/tree/master/packer_templates
>>
>> On Thursday, February 4, 2021 at 2:30:02 PM UTC+1 [email protected] 
>> wrote:
>>
>>> But as the VM gets its from DHCP, I will try to set a static ip address 
>>> for it. Just need to check if I can do it via vmx_data and the correct 
>>> property to use. (ESXi novice here)
>>>
>>> On Thu, Feb 4, 2021 at 8:18 AM Marc Pires <[email protected]> wrote:
>>>
>>>> Checked and  packer is connecting to the ESXi not be VM I am creating, 
>>>> because I have two shell provisioners one  to copy a config file and the 
>>>> second to set the OS packages. And the config file was copied to the ESXi 
>>>> host not the VM.
>>>>
>>>>
>>>> On Thu, Feb 4, 2021 at 7:42 AM Marc Pires <[email protected]> wrote:
>>>>
>>>>> Hi Gabo, yes I can login to ESXi using the ssh_password and 
>>>>> ssh_username values. My password has an @ sign, not sure if it can be a 
>>>>> problem. Checking
>>>>>
>>>>> On Wed, Feb 3, 2021 at 5:00 PM Gabo Kete <[email protected]> wrote:
>>>>>
>>>>>> looks like you access is being rejected when it tries to ssh into the 
>>>>>> vmware... can you look into your json file and find the *ssh_username 
>>>>>> *and* ssh_password  entries *and try to logging into your vmware 
>>>>>> with those values and check if it works
>>>>>>
>>>>>> On Tuesday, February 2, 2021 at 8:51:13 PM UTC+1 [email protected] 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi everyone, I am building an image and during the build I have the 
>>>>>>> following error below. Any clue of what it can be ?
>>>>>>>
>>>>>>> 2021/02/02 16:44:57 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> 2021/02/02 16:44:57 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: vim-cmd vmsvc/power.on 221
>>>>>>> 2021/02/02 16:44:58 packer-builder-vmware-iso plugin: [ERROR] Remote 
>>>>>>> command exited with '1': vim-cmd vmsvc/power.on 221
>>>>>>> 2021/02/02 16:45:17 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> 2021/02/02 16:45:17 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: vim-cmd vmsvc/power.getstate 221
>>>>>>> 2021/02/02 16:45:18 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> ==> vmware-iso: Error starting VM: Retry limit exceeded
>>>>>>> 2021/02/02 16:45:18 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: vim-cmd vmsvc/power.getstate 221
>>>>>>> ==> vmware-iso: Destroying virtual machine...
>>>>>>> 2021/02/02 16:45:18 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> 2021/02/02 16:45:18 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: vim-cmd vmsvc/destroy 221
>>>>>>> 2021/02/02 16:45:19 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> 2021/02/02 16:45:19 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: test ! -e 
>>>>>>> "/vmfs/volumes/DataStorage/Appliance2_dev"
>>>>>>> 2021/02/02 16:45:19 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> Opening new ssh session
>>>>>>> 2021/02/02 16:45:19 packer-builder-vmware-iso plugin: [DEBUG] 
>>>>>>> starting remote command: test -e 
>>>>>>> "/vmfs/volumes/DataStorage/Appliance2_dev"
>>>>>>> 2021/02/02 16:45:19 packer-builder-vmware-iso plugin: [ERROR] Remote 
>>>>>>> command exited with '1': test -e 
>>>>>>> "/vmfs/volumes/DataStorage/Appliance2_dev"
>>>>>>> 2021/02/02 16:45:19 [INFO] (telemetry) ending vmware-iso
>>>>>>> ==> Wait completed after 3 minutes 44 seconds
>>>>>>> 2021/02/02 16:45:19 machine readable: error-count []string{"1"}
>>>>>>> ==> Some builds didn't complete successfully and had errors:
>>>>>>> 2021/02/02 16:45:19 machine readable: vmware-iso,error 
>>>>>>> []string{"Error starting VM: Retry limit exceeded"}
>>>>>>> ==> Builds finished but no artifacts were created.
>>>>>>> 2021/02/02 16:45:19 [INFO] (telemetry) Finalizing.
>>>>>>> Build 'vmware-iso' errored after 3 minutes 44 seconds: Error 
>>>>>>> starting VM: Retry limit exceeded
>>>>>>>
>>>>>> -- 
>>>>>> 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/hashicorp/packer/issues
>>>>>> IRC: #packer-tool on Freenode
>>>>>> --- 
>>>>>> You received this message because you are subscribed to a topic in 
>>>>>> the Google Groups "Packer" group.
>>>>>> To unsubscribe from this topic, visit 
>>>>>> https://groups.google.com/d/topic/packer-tool/2UxaWvpjbCs/unsubscribe
>>>>>> .
>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>> [email protected].
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/packer-tool/4071302d-8f6b-4cbf-ab0c-f6d5bf0bc842n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/packer-tool/4071302d-8f6b-4cbf-ab0c-f6d5bf0bc842n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Desenvolvedor/DevOps practitioner
>>>>>
>>>>> https://www.credential.net/5yi8wpmv
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Desenvolvedor/DevOps practitioner
>>>>
>>>> https://www.credential.net/5yi8wpmv
>>>>
>>>
>>>
>>> -- 
>>> Desenvolvedor/DevOps practitioner
>>>
>>> https://www.credential.net/5yi8wpmv
>>>
>>

-- 
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/hashicorp/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/5e86f9cc-a16a-42cb-98f6-f9335b26590bn%40googlegroups.com.

Reply via email to