本文介绍了是否可以在不使用vCenter的情况下使用Ansible在vSphere Free中管理来宾VM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我看来,大多数现有的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.

文档中有一个提示:

There's a hint in the docs:

我使用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许可证的VM.

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 Free中管理来宾VM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 02:47