eaksel / packer-Debian10

Packer configuration files for Debian 10
MIT License
10 stars 14 forks source link

Cannot build two VM's simultaneously #8

Closed Erriez closed 2 years ago

Erriez commented 2 years ago

Default build directory is output-BUILDNAME. Starting to concurrent builds results in an error message:
Build 'virtualbox-iso' errored after 831 milliseconds 807 microseconds: Output directory exists: output-virtualbox-iso.

I can provide a MR to address this, but previous reported issues and pull requests needs to be merged first.

eaksel commented 2 years ago

Hi @Erriez,

That'd be great, I'd gladly merge it.

Erriez commented 2 years ago

I've added "output_directory": "output-{{ uservm_name}}" to the VirtualBox builders section and solved the problem to build debian10 and debian11 simultaneously. Then it creates separate output directories. Thanks!

Erriez commented 2 years ago

No longer an issue when using separate repositories as mentioned in #9.