-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware_host_passthrough by id #1364
Comments
Thanks, @holmesb for requesting the feature! |
resolved_by_pr #1365 |
Hi @holmesb I made a patch(#1365) to fix the issue. You can test by the below procedure.
playbook.yml ---
- hosts: localhost
gather_facts: false
tasks:
- name: Enable passthrough of PCI device with ID
community.vmware.vmware_host_passthrough:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: false
esxi_hostname: "{{ esxi1 }}"
devices:
- device: "{{ target_pci_device }}" |
…ces parameter (#1365) vmware_host_passthrough: Fix to be able to specify PCI id in the devices parameter Depends-On: ansible/ansible-zuul-jobs#1579 SUMMARY If ESXi has multiple PCI devices and they are the same name, and you want to enable the passthrough, you need to specify the PCI id. But the module hasn't been able to specify the PCI id of the PCI device. This PR is to be able to specify the id in the devices parameter the module has. fixes: #1364 ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/modules/vmware_host_passthrough.py ADDITIONAL INFORMATION tested in vCenter/ESXi 7.0.0 Reviewed-by: Mario Lenz <m@riolenz.de>
@mariolenz @sky-joker sorry, but I got this working in Terraform instead, and haven't found any time to test since. Glad it's added anyway. |
So, after enabling passthrought for a device, how can it be mapped to a guest with ansible? On my particular case, a NIC. |
SUMMARY
Hi,
Currently if multiple PCI devices exist of the same name, can only passthrough all or none. vmware_host_passthrough only supports device name, not ID. So if only some NICs\GPUs need to be passedthrough, can't be done.
Cheers.
ISSUE TYPE
COMPONENT NAME
module: vmware_host_passthrough
The text was updated successfully, but these errors were encountered: