This message was deleted.
# vsphere
a
This message was deleted.
s
Not sure is this would help but maybe something like this ?
Terraform
Copy code
# Configure VM with disabled DirectPath I/O and no user-data.iso mounting

resource "vmware_virtual_machine" "rke2_vm" {
  name         = "rke2-node"
  folder        = "/Datacenters/DC1/vm"
  resource_pool = var.vm_resource_pool

  # ... other VM configuration options ...

  # Disable DirectPath I/O
  guest_customization {
    delay_script_execution = true  # Optional: Wait for customization before powering on

    identity_change {
      # ... other identity settings ...
    }

    hardware {
      # Disable DirectPath I/O
      direct_path_io = false
    }

    # No user-data.iso mounting (omit iso_file argument)
  }
}
s
I do that with regular VM builds and works fine, RKE2 uses machine config resources to build VMs. https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/machine_config_v2
The vsphere_config within machine config resource doesn't provide a way to set NIC HW . https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/machine_config_v2#vsphere_config