burkeazbill / ubuntu-22-04-packer-fusion-workstation

Packer Config and Build Script for Ubuntu 22.04 Jammy Jellyfish
19 stars 7 forks source link

insufficient permission to access the file #2

Open vvlasenko opened 2 weeks ago

vvlasenko commented 2 weeks ago

After running build-daily.sh i am getting "insufficient permission to access the file" error back

Screenshot 2024-09-12 at 01 03 50

It looks like build user do not have permissions needed to start the VM.

2024/09/12 01:05:06 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:06 stdout: Error: Cannot connect to the virtual machine 2024/09/12 01:05:06 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:06 stderr: ==> vmware-iso.jammy-daily: error starting virtual machine: VMware error: Error: Cannot connect to the virtual machine 2024/09/12 01:05:06 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:06 Executing: /Applications/VMware Fusion.app/Contents/Library/vmrun -T fusion list 2024/09/12 01:05:07 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:07 stdout: Total running VMs: 0 2024/09/12 01:05:07 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:07 stderr: 2024/09/12 01:05:07 packer-plugin-vmware_v1.1.0_x5.0_darwin_amd64 plugin: 2024/09/12 01:05:07 failed to unlock port lockfile: close tcp 127.0.0.1:5949: use of closed network connection ==> vmware-iso.jammy-daily: Deleting output directory... 2024/09/12 01:05:07 [INFO] (telemetry) ending vmware-iso.jammy-daily ==> Wait completed after 1 minute 41 seconds 2024/09/12 01:05:07 machine readable: error-count []string{"1"} ==> Some builds didn't complete successfully and had errors: 2024/09/12 01:05:07 machine readable: vmware-iso.jammy-daily,error []string{"error starting virtual machine: VMware error: Error: Cannot connect to the virtual machine"} ==> Builds finished but no artifacts were created. 2024/09/12 01:05:07 [INFO] (telemetry) Finalizing. Build 'vmware-iso.jammy-daily' errored after 1 minute 41 seconds: error starting virtual machine: VMware error: Error: Cannot connect to the virtual machine

Do you have any idea how to fix it?

Thanks vad

tenthirtyam commented 2 weeks ago

Refere to https://github.com/hashicorp/packer-plugin-vmware/issues/250#issuecomment-2347958088.