Hi all. I am trying to create a host using a vmware compute resource. When I create the host with interfaces_attributes → compute_attributes → type: “VirtualVmxnet3”, the VM is created with “DirectPath I/O” enabled on the NIC. That is a problem for me. I cannot figure out with which compute_attribute I can disable this “DirectPath I/O”. Do you know?
I am using ansible:
- name: "Create a VM - Kickstart {{ server_name }} on vcenter {{ compute_resource }}"
theforeman.foreman.host:
name: "{{ server_name }}"
ip: "{{ ip }}"
compute_resource: "{{ compute_resource }}"
location: "{{ location }}"
subnet: "{{ subnet }}"
state: present
build: true
interfaces_attributes:
- type: "interface"
compute_attributes:
type: "VirtualVmxnet3"
network: "{{ vmware_network }}"
compute_attributes:
volumes_attributes:
0:
thin: true
name: "Hard disk"
mode: "persistent"
size_gb: "{{ disk_gb }}"
datastore: "{{ vmware_datastore }}"
scsi_controllers:
- type: "ParaVirtualSCSIController"
key: 1000
cluster: "{{ vmware_cluster }}"
path: "/Datacenters/{{ vmware_datacenter }}/{{ vmware_folder }}"
guest_id: "rhel8_64Guest"
corespersocket: 1
start: "1"
cpus: "{{ cpus }}"
memory_mb: "{{ memory_mb }}"
cpuHotAddEnabled: 1
memoryHotAddEnabled: 1
firmware: "bios"
add_cdrom: 1
provision_method: "bootdisk"
ptable: "Kickstart default GITO"
pxe_loader: "PXELinux BIOS"
operatingsystem: "{{ operatingsystem }}"
kickstart_repository: "Red Hat Enterprise Linux 8 for x86_64 - BaseOS Kickstart {{ operatingsystem.split(' ')[1] }}"
root_pass: "{{ root_pass }}"