【问题标题】:*Customization of the guest operating system 'freebsd64Guest' is not supported**不支持自定义客户操作系统“freebsd64Guest”*
【发布时间】:2018-07-19 07:52:26
【问题描述】:

在尝试使用 vmware_guest 模块通过 ansible 克隆虚拟机时,会使用旧主机名创建新虚拟机。自定义选项未生效。我在日志以及 V-center 中看到的错误消息是

不支持自定义客户操作系统“freebsd64Guest”

操作系统是 FreeBSD OS。请注意,我已经在源虚拟机中安装了 openvm 工具,然后我才拿了一个模板。所以,我一直在尝试从已经有 openvm 工具的模板创建虚拟机。

---
- name: Create a VM from a template
  vmware_guest:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    validate_certs: '{{ validate_certs }}'
    name: '{{ vm_name }}'
    state: '{{ state }}'
    template: '{{ vm_template }}'
    datacenter: '{{ cluster_name }}'
    folder: '{{ folder_name }}'
    cluster: '{{ cluster }}'
    hardware:
      memory_mb: '{{ ram }}'
      num_cpus: '{{ cpu }}'
      scsi: '{{ scsi }}'
    customization:
      hostname: '{{ vm_name }}'
    networks:
    - name: VM-NETWORK
      ip: '{{ ip_address }}'
      netmask: '{{ netmask }}'
      gateway: '{{ gateway }}'
      type: '{{ type }}'
    wait_for_ip_address: yes
  delegate_to: localhost
  register: deploy
~

【问题讨论】:

  • 什么版本的 vSphere?而且,您是否尝试过手动进行克隆?
  • 嗨凯尔,感谢您的 cmets。我使用的是 vcenter 6.x 版本。如前所述,克隆 VM 也可以使用 Ansible 手动工作。唯一的问题是,当我尝试通过为主机设置新主机名来使用自定义时,它不会反映。现在,我不得不关闭源主机,ssh 到新主机并将 ip 和主机名更改为新主机并重新启动它。
  • 在 Ansible 中引发错误 - github.com/ansible/ansible/issues/43189

标签: ansible vmware freebsd


【解决方案1】:

看起来,这是一个错误/功能,目前 Vmware 本身对于 FreeBSD 不可用。请查看可用的矩阵 -

http://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf

我收到了这个信息,在提出错误之后

https://github.com/ansible/ansible/issues/43189#issuecomment-407339134

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-03
    • 1970-01-01
    • 1970-01-01
    • 2018-03-20
    • 1970-01-01
    • 2013-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多