Ansible vsphere_guest 模块报告 "Could not clone selected machine: [Task Error]: The operation is not supported on the object."
Ansible vsphere_guest module reports "Could not clone selected machine: [Task Error]: The operation is not supported on the object."
这是我的剧本 -
tasks:
- name: Deploy an instance
vsphere_guest:
vcenter_hostname: 10.171.52.38
username: testuser
password: test
guest: newvm001
from_template: yes
template_src: Ubuntu 14.04
power_on_after_clone: No
resource_pool: "/Resources"
validate_certs: no
根据 VMware 社区,“要能够克隆虚拟机,您必须连接到 vCenter Server。如果直接连接到 ESXi 主机,则无法克隆虚拟机”
所以我们似乎需要 vCenter 访问权限才能克隆它。
这是我的剧本 -
tasks:
- name: Deploy an instance
vsphere_guest:
vcenter_hostname: 10.171.52.38
username: testuser
password: test
guest: newvm001
from_template: yes
template_src: Ubuntu 14.04
power_on_after_clone: No
resource_pool: "/Resources"
validate_certs: no
根据 VMware 社区,“要能够克隆虚拟机,您必须连接到 vCenter Server。如果直接连接到 ESXi 主机,则无法克隆虚拟机” 所以我们似乎需要 vCenter 访问权限才能克隆它。