【问题标题】:Failed to create a VmWare VM via ansible 2.6, pyvmomi 5.5.0, vsphere 5.5 and ESXI 6无法通过 ansible 2.6、pyvmomi 5.5.0、vsphere 5.5 和 ESXI 6 创建 VmWare 虚拟机
【发布时间】:2018-08-16 16:51:20
【问题描述】:

我使用一个剧本:

- hosts: localhost
  vars_prompt:
    name: passwd
    prompt: "{{ vcenter }} passwd for {{ login }} ? >>> "

  tasks:
  - name: Create a virtual machine "{{ vm_name }}"
    vmware_guest:
      datacenter: '{{ datacenter }}'
      hostname: '{{ vcenter }}'
      username: "{{ login }}"
      password: "{{ passwd }}"
      folder: "{{ folder }}"
      name: "{{ vm_name }}"
      template: '{{ template }}'
      cluster: "{{ cluster }}"
      state: poweredon
      disk:
      - size_gb: "{{ disksizeGB }}"
        autoselect_datastore: yes
        datastore: '{{ datastore }}'
      hardware:
         memory_mb: '{{ ramsizeMB }}'
         num_cpus: '{{ vcpu_num }}'

法语中的错误(抱歉,用LANG=C 尝试没有成功):

TASK [Create a virtual machine "TEST-ANSIBLEBUILD-261"] ***********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to create a virtual machine : La personnalisation du système d'exploitation client 'debian8_64Guest' n’est pas prise en charge dans cette configuration. Les clients Microsoft Vista (TM) et Linux avec Logical Volume Manager (LVM) sont pris en charge uniquement sur la dernière version de l’hôte ESX et la dernière version de VMware Tools. Consulter la documentation du vCenter pour connaître les configurations prises en charge."}

我尝试从 debian9 安装 open-vm-tools,但没有成功(在模板中)。

错误表明操作系统“debian8_64Guest”的配置仅支持最新的 ESX 版本和最后的 VmWare 工具。讲了一个文档,但没有提供任何链接,不够清楚。

有什么线索吗?它适用于 debian9 和 redhat7

【问题讨论】:

  • 如前所述,不支持 x86_64 中的 Debian8,这似乎与您使用 LVM 的事实有关。尝试避免使用 LVM,看看它是否有效。
  • 我不使用 LVM

标签: ansible vmware vsphere pyvmomi


【解决方案1】:

VmWare SDK 有限制,它不能按原样使用 Debian8 创建网卡。 最好试试 ovf 工具和/或 govc。

如果您知道解决方法或技巧,请分享!

但您也可以运行 vmware_shell 模块命令。

Debian9 可以很好地处理所有这些,但未在此处列出:http://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf

【讨论】:

    猜你喜欢
    • 2014-07-26
    • 2020-07-27
    • 1970-01-01
    • 2015-08-06
    • 1970-01-01
    • 2015-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多