Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Execution of "./bin/build" finishes but no "ova" file has been generated. #229

@ivandavidov

Description

@ivandavidov

I decided to generate my own pcf-dev ova for no particular reason (I am developer and I am experimenting) and I followed the instructions provided here. I installed all dependencies and after that I executed the following command from the repo's root folder:

./bin/build -only=virtualbox-iso

Unfortunately, in the very end of the process I was surprised with the following message:

==> Builds finished but no artifacts were created.

I reverse engineered the build execution and I found out that this message is produced when the following command has been executed from within the output directory:

packer build -only=virtualbox-iso -var 'distro=oss' -var 'source_ami=ami-564cca40' -var 'source_ova_path=/home/ivan/projects/pcfdev/pcfdev-base/pcfdev-base.ova' /home/ivan/projects/pcfdev/pcfdev.json

I tried to to enable the -debug option (as mention ind the comments in the development readme document) but the only message that I got in addition is this:

ivan@ubuntu:~/projects/pcfdev/output$ packer build -only=virtualbox-iso -debug -var 'distro=oss' -var 'source_ami=ami-564cca40' -var 'source_ova_path=/home/ivan/projects/pcfdev/pcfdev-base/pcfdev-base.ova' /home/ivan/projects/pcfdev/pcfdev.json
Debug mode enabled. Builds will not be parallelized.

==> Builds finished but no artifacts were created.
ivan@ubuntu:~/projects/pcfdev/output$ 

I believe all my output artifacts have been downloaded/generated successfully since there were no other error messages and the build script didn't exit (due to set -e), which means that all commands exited with 0 status, including the last packer command.

I googled the message and found out that this issue happens when there are errors during the ova generation process but I didn't see any error messages, nor the -debug option shows any useful logs (see above). In fact the packer command exits very fast (less than one second) which makes me think there is no attempt whatsoever to generate ova file which should be several GB in size and therefore the actual "packaging" should take considerable time.

My questions:

  • Am I missing something? Are there additional dependencies that I need to satisfy? I am using VirtualBox 5.0.36 on Ubuntu 16.04 with N3700 CPU and 5G RAM, and prior to running the build script I installed the dependencies described in the development readme document.
  • How/where can I check the output from the command/executable which is used in order to generate the ova file?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions