packer error while creating images

50 views
Skip to first unread message

Enbanathan Elangovan

unread,
Oct 23, 2018, 8:21:53 AM10/23/18
to Packer
Hi,

 When i run the command ./packer build -var-file=myenv_conf.json vmware/local/centos_base.json. I get the following error.

==> pnda_template_base: Downloading or copying ISO
    pnda_template_base: Downloading or copying: file:///root/pnda/packer/iso/CentOS-7-x86_64-Minimal-1804.iso
==> pnda_template_base: Creating virtual machine disk
==> pnda_template_base: Building and writing VMX file
==> pnda_template_base: Starting HTTP server on port 8850
==> pnda_template_base: Starting virtual machine...
    pnda_template_base: The VM will be run headless, without a GUI. If you want to
    pnda_template_base: view the screen of the VM, connect via VNC with the password "" to
    pnda_template_base: vnc://127.0.0.1:5982
==> pnda_template_base: Error starting VM: VMware error: Error: The operation was canceled
==> pnda_template_base: Waiting 4.421432709s to give VMware time to clean up...
==> pnda_template_base: Deleting output directory...
Build 'pnda_template_base' errored: Error starting VM: VMware error: Error: The operation was canceled

==> Some builds didn't complete successfully and had errors:
--> pnda_template_base: Error starting VM: VMware error: Error: The operation was canceled

==> Builds finished but no artifacts were created.

Can anyone help me on this. I'm attaching the log file.

Regards
Enbanathan.E
centos_base.log

Rickard von Essen

unread,
Oct 23, 2018, 8:26:49 AM10/23/18
to packe...@googlegroups.com
And what do you see if you set headless: false ?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a2133f07-ca71-435b-b5fb-07a2567a7741%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Enbanathan Elangovan

unread,
Oct 23, 2018, 8:30:49 AM10/23/18
to Packer
sorry i'm new to packer.can you please let me know how to do that.

Regards
Enbanathan.E

Rickard von Essen

unread,
Oct 23, 2018, 8:34:36 AM10/23/18
to packe...@googlegroups.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...@googlegroups.com.

Enbanathan Elangovan

unread,
Oct 23, 2018, 8:52:14 AM10/23/18
to Packer
When i run headless i get the following

==> pnda_template_base: Downloading or copying ISO
    pnda_template_base: Downloading or copying: file:///root/pnda/packer/iso/CentOS-7-x86_64-Minimal-1804.iso
==> pnda_template_base: Creating virtual machine disk
==> pnda_template_base: Building and writing VMX file
==> pnda_template_base: Starting HTTP server on port 8850
==> pnda_template_base: Starting virtual machine...
    pnda_template_base: The VM will be run headless, without a GUI. If you want to
    pnda_template_base: view the screen of the VM, connect via VNC with the password "" to
    pnda_template_base: vnc://127.0.0.1:5982
==> pnda_template_base: Error starting VM: VMware error: Error: The operation was canceled
==> pnda_template_base: Waiting 4.421432709s to give VMware time to clean up...
==> pnda_template_base: Deleting output directory...
Build 'pnda_template_base' errored: Error starting VM: VMware error: Error: The operation was canceled

==> Some builds didn't complete successfully and had errors:
--> pnda_template_base: Error starting VM: VMware error: Error: The operation was canceled

==> Builds finished but no artifacts were created.


Regards
Enbanathan.E

On Tuesday, October 23, 2018 at 5:51:53 PM UTC+5:30, Enbanathan Elangovan wrote:

Rickard von Essen

unread,
Oct 23, 2018, 9:00:00 AM10/23/18
to packe...@googlegroups.com
You should run with headless false, and add the flag - on-error=ask to your command line. Then you can look in the VM console what is going wrong.

If you are new to packer I recommend that you start with a known working template and adjust it to your needs. 

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages