I am having some issues getting packer to create VMs on my single ESX 
host.  Everything I have found requires the vsphere appliance.  I have 
enabled all the changes for this to work on the host itself.

Here is my config

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

      "vcenter_server": "10.150.1.35",
      "insecure_connection": "true",
      "username": "root",
      "password": "",
      "host": "10.150.1.35",

      "vm_name":  "centos7base",
      "convert_to_template": "false",
      "cpu": "1",
      "ram": "2048",
      "network": "v10101-prod",
      "network_adapter": "vmxnet3",
      "guest_os_type": "centos7_64Guest",
      "datastore": "datastore-nas",
      "disk_size": "60GB",
      "iso": "/vmfs/volumes/datastore02/ISO/CentOS-7-x86_64-DVD-1810.iso",
      "iso_datastore": "datastore02"

    }
  ]
}


Here is the output I get when I try to run it:
packer build new-centos1.json
vsphere-iso output will be in this color.

==> vsphere-iso: Creating VM...
Build 'vsphere-iso' errored: resource pool 
'/ha-datacenter/host//Resources/' not found

==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: resource pool '/ha-datacenter/host//Resources/' not found

==> Builds finished but no artifacts were created.


What am I doing wrong?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/5167c411-a6e8-4afd-95ab-aba0ed4059b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to