devopsjourney1 / packer-windows

This repository contains Windows templates that can be used to create boxes for Vagrant using Packer.
MIT License
14 stars 17 forks source link

Builds finished but no artifacts were created error #1

Open gabrielbdornas opened 2 years ago

gabrielbdornas commented 2 years ago

Hello @devopsjourney1,

I'm trying to follow along with your tutorial here and I have two problems. I think the first generates the second.

The first one was "deprecated configuration key iso_ckecksum_type" during the packer build windows_10.json command. So, I've opened the file and removed all iso_ckecksum_type. After that I've run packer build windows_10.json the building didn't complete as shown below:

Build 'virtualbox-iso' errored after 2 hours 29 minutes: Timeout waiting for SSH.

==> Wait completed after 2 hours 29 minutes

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* exec: "vmware": executable file not found in $PATH
* exec: "vmware": executable file not found in $PATH
* exec: "vmplayer": executable file not found in $PATH
* exec: "vmplayer": executable file not found in $PATH

--> virtualbox-iso: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.

I tried another time but now, as suggested here I run packer fix windows_10.json > windows_10_new.json before packer build windows_10.json (removing the old file and renaming the new one), but still not working.

Obs.: I'm using ubuntu 20.04 and packer 1.7.8

unknown00759 commented 1 year ago

Hello @devopsjourney1,

I'm trying to follow along with your tutorial here and I have two problems. I think the first generates the second.

The first one was "deprecated configuration key iso_ckecksum_type" during the packer build windows_10.json command. So, I've opened the file and removed all iso_ckecksum_type. After that I've run packer build windows_10.json the building didn't complete as shown below:

Build 'virtualbox-iso' errored after 2 hours 29 minutes: Timeout waiting for SSH.

==> Wait completed after 2 hours 29 minutes

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors
from each driver are shown below. Please fix at least one driver
to continue:
* exec: "vmware": executable file not found in $PATH
* exec: "vmware": executable file not found in $PATH
* exec: "vmplayer": executable file not found in $PATH
* exec: "vmplayer": executable file not found in $PATH

--> virtualbox-iso: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.

I tried another time but now, as suggested here I run packer fix windows_10.json > windows_10_new.json before packer build windows_10.json (removing the old file and renaming the new one), but still not working.

Obs.: I'm using ubuntu 20.04 and packer 1.7.8

After a I run the following commands:

"packer fix myfile.json > myfile-fixed.json"

"packer validate myfile-fixed.json"

issue resolved