I am setting up my packer template file and trying to create a linux template but keep getting “The operation is not supported on the object.” my esix host shows
haTask-ha-folder-vm-vim.Folder.createFolder-2098998511
Description
Creates a new folder
Folder:
State
Failed - The operation is not supported on the object.
Errors
I created a folder called Templates on datastore1 and in my json file I also set the folder like below.
“folder”: “Templates”,
=> Wait completed after 61 milliseconds 12 microseconds
2023/04/12 16:26:12 machine readable: error-count string{“1”}
2023/04/12 16:26:12 ui error:
==> Some builds didn’t complete successfully and had errors:
2023/04/12 16:26:12 machine readable: vsphere-iso,error string{“error creating vm: ServerFaultCode: The operation is not supported on the object.”}
2023/04/12 16:26:12 ui error: → vsphere-iso: error creating vm: ServerFaultCode: The operation is not supported on the object.
2023/04/12 16:26:12 ui:
Can you test the following :
For testing purpose, try to create a folder called RockyLinux (like in example) and set folder to “Templates/RockyLinux” to check if the error is the same or not. Maybe it assumes to have a subfolder within Templates
Corrent I am using the Free version of. I thought I removed the “vcenter_server”: appers not.
I my understanding Is I should still be able to use vsphere-iso builder for a standalone install of esxi. Ill have to research that more. I removed the vcenter_server but it complains it’s required. I am using Esxi 8.0
Yeah, in that case you should probably have a look to vmware-iso, which seems to allow direct connection to ESXi, it seems there’s no limits with 8.0 free version : VMware ISO - Builders | Packer | HashiCorp Developer