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 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/4071302d-8f6b-4cbf-ab0c-f6d5bf0bc842n%40googlegroups.com.

Reply via email to