Open vvlasenko opened 1 month ago
After running build-daily.sh i am getting "insufficient permission to access the file" error back
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
Refere to https://github.com/hashicorp/packer-plugin-vmware/issues/250#issuecomment-2347958088.
After running build-daily.sh i am getting "insufficient permission to access the file" error back
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