我需要在vyOS VM的网络部分定义静态MAC绑定。我使用这个剧本,它适用于Cento或其他虚拟机,但不适用于vyOS:
- name: "Deploy vyOS VM"
hosts: vyos
gather_facts: no
tasks:
- name: Deploy vyOS VM from template
ignore_errors: yes
community.vmware.vmware_guest:
hostname: '{{ vsphere_host }}'
username: '{{ vsphere_user }}'
password: '{{ vsphere_password }}'
validate_certs: false
datacenter: 'OVH'
state: present
folder: '/OVH/vm'
name: Test
networks:
- name: Management
mac: "00:50:56:8d:d0:01"
- name: Management
mac: "00:50:56:8d:d0:02"
- name: Management
mac: "00:50:56:8d:d0:03"
- name: Management
mac: "00:50:56:8d:d0:04"
template: vyOS_Template
wait_for_ip_address: true
delegate_to: localhost
register: vm我总是得到这样的错误:
TASK [Deploy vyOS VM from template] *****************************************************************************************************************************************************************************************************************
fatal: [1-INET-backbone-vyOS]: FAILED! => changed=false
msg: 'Failed to create a virtual machine : Customization of the guest operating system ''debian6_64Guest'' is not supported in this configuration. Microsoft Vista (TM) and Linux guests with Logical Volume Manager are supported only for recent ESX host and VMware Tools versions. Refer to vCenter documentation for supported configurations.'
...ignoring当我将类型更改为Centos4/5 64bit时,我可以分配MAC,但网卡未连接。
问:谁能给我举个例子,这是如何工作的?
发布于 2020-11-05 18:03:07
我解决了它,我移动到一个更新的vyOS版本,现在它又可以工作了
https://stackoverflow.com/questions/64663670
复制相似问题