Hi,
Goal: I have a simple goal of uploading existing template to Content
Library. (Code snippet is attached below)
I am able to achieve that using vsphere-clone but only problem is I have to
create a VM from template with new name. I want to know if there is anyway
to convert a template to a VM using vsphere-clone? It seems both "vm_name"
and "template" are required variables so both have to be of different name.
{
"builders": [
{
"type": "vsphere-clone",
"vcenter_server": "{{user `VCENTER_URL`}}",
"cluster": "myCluster",
"host": "{{user `ESXI_HOST`}}",
"datastore": "{{user `DATASTORE`}}",
"datacenter": "{{user `DATACENTER`}}",
"folder": "{{user `VM_FOLDER`}}",
"insecure_connection": "true",
"template": "{{user `VM_TEMPLATE`}}",
"username": "{{user `VCENTER_USER`}}",
"password": "{{user `VCENTER_PASS`}}",
"vm_name": "{{user `VM_NAME`}}",
"content_library_destination" : {
"library": "myCL",
"ovf": true
},
"communicator": "none"
}
]
}
Thanks!
Manish G.
--
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/hashicorp/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/1ba21776-e833-48e1-916c-0e23b54b0fffn%40googlegroups.com.