Vsphere-iso builds fails--unable to locate the folder

18 views
Skip to first unread message

Pietto Vasco

unread,
Jan 30, 2019, 4:35:41 PM1/30/19
to Packer

Packer 1.3.3


I am trying to deploy a template to a remote esxi host using vpshere-iso, but it fails when locating the folder specified in the json

XXXXXX-PACKER2:~/packer$ packer build -debug vmware_remote_test.json                                                            
Debug mode enabled. Builds will not be parallelized.                                                                               
vsphere-iso output will be in this color.                                                                                          
                                                                                                                                   
==> vsphere-iso: Pausing after run of step 'StepConnect'. Press enter to continue.                                                 
==> vsphere-iso: Creating VM...                                                                                                    
==> vsphere-iso: Pausing before cleanup of step 'StepConnect'. Press enter to continue.                                            
Build 'vsphere-iso' errored: folder '/siteid/vm/template' not found                                                                
                                                                                                                                   
==> Some builds didn't complete successfully and had errors:                                                                       
--> vsphere-iso: folder '/siteid/vm/template' not found                                                                            
                                                                                                                                   
==> Builds finished but no artifacts were created.                                                                                 

i have tried multiple different folder locations with no luck. Though regardless of what i put in the folder value...it is appending it to /siteid/vm/

Ive replicated the folder structure still fails

Heres the json for review


  "builders": [
    {
      "type": "vsphere-iso",

      "vcenter_server": "vcenter",
      "insecure_connection": "true",
      "username": "username",
      "password": "password",
     "datacenter": "sitename",
      "cluster": "clustername",
      "host": "hostname",

      "vm_name":  "centos7base",
      "convert_to_template": "true",
      "folder": "template",
      "cpu": "1",
      "ram": "2048",
      "network": "VM Network",
      "network_adapter": "e1000",
      "guest_os_type": "otherGuest",
      "datastore": "datastore name",
      "disk_size": "10000",
      "iso": "ISO/CentOS-7-x86_64-Minimal-1810.iso",
      "iso_datastore": "datastore name"

    }
  ]
}



Reply all
Reply to author
Forward
0 new messages