ansible - 我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的 guest 虚拟机吗?

标签 ansible vsphere

在我看来,大多数现有的 Ansible 模块都需要 vCenter。 例如guest_module具有必需参数 vcenter_hostname。 问题是 - 是否能够使用 Ansible 管理 2-3 个 vSphere 主机? 我需要创建虚拟环境(虚拟网络、 guest 虚拟机、负载平衡端点)。

我也考虑过 Hyper-v,但它没有 Ansible 模块。直接 powershell 管理被视为 Hyper-v 的最后手段。

最佳答案

是的,您可以执行免费许可证允许的操作。

the docs中有一个提示:

For standalone ESXi hosts, ha-datacenter should be used as the datacenter name

我使用vsphere_guest,在填写以下参数的独立虚拟机管理程序方面没有任何问题:

- vsphere_guest:
    vcenter_hostname: "{{ esxi_ip_or_dns }}" # ip address of hypervisor
    esxi:
      datacenter: ha-datacenter
      hostname: "{{ esxi_hostname }}" # name shown in hypervisor console
    username: "{{ esxi_username }}"
    password: "{{ esxi_password }}"

但请记住,许多有用的功能在免费许可证中被阻止。例如,没有 vCenter 许可证,您无法克隆虚拟机。

关于ansible - 我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的 guest 虚拟机吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43420285/

相关文章:

ansible - 如何在 Ansible 剧本中获取 --limit 参数的值?

ansible - 在 Ansible 中打印调用者角色的角色名称

java - 获取与虚拟机 (VCenter) 相关的所有事件

node.js - nodejs + vmware vsphere sdk SOAP 连接

powershell - 列出 VM 及其集群

ansible - 如何在ansible变量中转义双引号

python - 消息 : ConnectionError(ProtocolError ('Connection aborted.' , 错误 (2, 'No such file or directory' )),)

variables - Ansible - 更新 vars_file 中的变量并在剧本中再次调用它不起作用

java - 有没有办法通过Vsphere SDK with Java获取Vmware ESX中每个vmware的驱动信息?

docker - 带有 Linux 容器的 Docker for Windows 可以在 VMware vSphere Windows 10 虚拟机上运行吗?