Hi All,
I'm getting an odd issue when I try to clone a VM from an existing VM Template file:
template = server.get_vm_by_name("my_template")
# Select my only resource pool
respool = server.get_resource_poolss().keys()[[0]
# Clone the VM
new_server = template.clone("new-server",resourcepool=
"VIException: [Task Error]: Unable to access the virtual machine configuration: Unable to access file [DATASTORE-1] my_template/my_template.vmtx"
From reading the .clone() docstring I can see that it will default to the same folder as the source if I don't specify a "folder", but surely it would not be trying to create the new clone under "[DATASTORE-1] my_template/*" right?
I can't see any methods for creating destination folders in the docs, so I was wondering if anyone has any snippets for performing this operation without nice wrapper-functions?
Cheers,
David.