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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/db281812-5886-4c42-aad6-eeddc9981a7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.