我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的访客虚拟机吗? [英] Can I manage guest VMs in vSphere free using Ansible without vCenter?

查看:25
本文介绍了我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的访客虚拟机吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Seems to me that most of the existing Ansible modules require vCenter. For example guest_module has required parameter vcenter_hostname. The question is - is there an ability to manage 2-3 vSphere hosts using Ansible? I need creating virtual environments(virtual networks, guest VMs, load balancing endpoints).

我也考虑过 Hyper-v,但它没有 Ansible 模块.直接 PowerShell 管理被认为是 Hyper-v 的最后手段.

I also considered Hyper-v but it doesn't have Ansible modules. Direct powershell management considered as a last resort for Hyper-v.

推荐答案

是的,你可以做免费许可允许的事情.

Yes, you can do things that are allowed by free license.

文档中有一个提示:

对于独立的 ESXi 主机,应使用 ha-datacenter 作为数据中心名称

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

我使用 vsphere_guest 与填充以下参数的独立虚拟机管理程序没有任何问题:

I use vsphere_guest without any problems with standalone hypervisors with the following parameters filled in:

- 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 许可的情况下克隆虚拟机.

But keep in mind, that many useful features are blocked in free license. For example, you can't clone VMs without vCenter license.

这篇关于我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的访客虚拟机吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆