Hi Experts,
I'd like to know if it is possible to clone a VM from one VMware vDC to another vDC?
I know that I can clone a VM from a template within the same vDC but wanted to know if it was possible to clone between vDCs?
admin@cso-1:~$ cat Test.yaml
---
- name: Login to vCenter
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Clone
vmware_guest:
hostname: 10.53.232.168
datacenter: NFV-vDC1
username: ansible
password: ansible123
esxi_hostname: 10.53.232.180
validate_certs: False
name: "myvm"
state: poweredoff
disk:
- size_gb: 150
type: thin
datastore: "datastore1"
hardware:
memory_mb: 2048
num_cpus: 2
osid: ubuntu64guest
scsi: paravirtual
template: CSO-1-Template
The template is located in a vDC called NFV-MGMT but I'd like to clone to NFV-vDC1 if possible.
I get the following error:
"msg": "A specified parameter was not correct: spec.location.host"
Could anyone help please?
Regards,
Lewis